On the denotational semantics of Linear Logic with least and greatest fixed points of formulas
Thomas Ehrhard (IRIF), Farzad Jafar-Rahmani

TL;DR
This paper develops a denotational semantics for Linear Logic with fixed points across various models, and demonstrates how G{"o}del System T can be embedded into it, highlighting its expressive power.
Contribution
It introduces a unified denotational semantics for Linear Logic with fixed points and embeds G{"o}del System T, enhancing understanding of their expressive capabilities.
Findings
Denotational semantics for LL with fixed points in coherence spaces and totality models.
Embedding of G{"o}del System T into LL with fixed points.
Demonstrates expressive power and normalization properties of the system.
Abstract
We develop a denotational semantics of Linear Logic with least and greatest fixed points in coherence spaces (where both fixed points are interpreted in the same way) and in coherence spaces with totality (where they have different interpretations). These constructions can be carried out in many different denotational models of LL (hypercoherences, Scott semantics, finiteness spaces etc). We also present a natural embedding of G{\"o}del System T in LL with fixed points thus enforcing the expressive power of this system as a programming language featuring both normalization and a huge expressive power in terms of data types.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Semantic Web and Ontologies · Logic, Reasoning, and Knowledge
On the denotational
semantics of Linear Logic with least and greatest fixed points of formulas
Thomas Ehrhard
CNRS, IRIF, Université de Paris, France
and
Farzad Jafar-Rahmani
Université de Paris, IRIF, CNRS, France
Abstract.
We develop a denotational semantics of Linear Logic with least and greatest fixed points in coherence spaces (where both fixed points are interpreted in the same way) and in coherence spaces with totality (where they have different interpretations). These constructions can be carried out in many different denotational models of (hypercoherences, Scott semantics, finiteness spaces etc). We also present a natural embedding of Gödel System in with fixed points thus enforcing the expressive power of this system as a programming language featuring both normalization and a huge expressive power in terms of data types.
1. Introduction
Propositional Linear Logic is a well-established logical system introduced by Girard in [Girard87]. It provides a fine-grain analysis of proofs in intuitionistic and classical logic, and more specifically of their cut-elimination. features indeed a well-behaved logical account of the structural rules (weakening, contraction) which are handled implicitly in intuitionistic and classical logic. For this reason, has many useful outcomes in the Curry-Howard based approach to the theory of programming: logical understanding of evaluation strategies (CBN and CBV correspond to two different translations from the lambda-calculus into , and such translations extend naturally to abstract machines), new presentation of proofs/programs (proof-nets), connections with other branches of mathematics (linear algebra, differential calculus etc), new operational semantics (geometry of interaction)…
However, just as the simply typed lambda-calculus, propositional is not a reasonable programming language, by lack of data-types and iteration or recursion principles. This is usually remedied by extending propositional to the order, thus defining a logical system in which Girard’s System [Girard89] can be embedded. As explained in [Girard89] for System , this extension allows to represent many data-types, for instance the type of natural numbers can be written as , and then integers are represented as Church numerals. The resulting logical system is extremely expressive in terms of representable computable functions: all functions whose totality can be proven in second order arithmetics are representable. In contrast, its algorithmic expressiveness seems quite poor: as is well-known it is not possible to write a term which computes the predecessor function in one (or a uniformly bounded) number of reduction steps.
Another option to turn propositional into a programming language is to extend it with least and greatest fixed points of formulas. The kind of extension has early been suggested by Girard in an unpublished note [Girard92], though the first comprehensive proof-theoretic investigation of such an extension of is rather recent [Baelde12]: Baelde considers an extension of Multiplicative Additive sequent calculus with least and greatest fixed points, axiomatized by means of two deduction rules. His main motivation for introducing this extension of comes from the need of powerful logical systems for formal verification of programs and the investigations on were carried out mainly from a proof-search perspectives (cut-elimination, focusing etc). However from a Curry-Howard viewpoint, fixed points allow to define inductive data-types (integers, lists, trees) and coinductive types (streams and other infinite structures). So can also be considered as a programming language and it is this approach that we develop in this paper. Admittedly the rules associated with fixed points are complex (this is especially true of the -introduction rule, the Park’s rule) and lead to subtle cut-elimination proof rewrite rules for which Baelde could prove a restricted form of cut-elimination, sufficient for establishing for instance that a proof of the type of integers necessarily reduces to an integer. There are also alternative proof-systems for the same logic, involving infinite or cyclic proofs, see [BaeldeDoumaneSaurin16], whose connections with the aforementioned finitary proof-system are not completely clear.
Since the proof-theory (and hence the “operational semantics”) of is sophisticated and still under development, it is particularly important to investigate its denotational semantics, whose definition does not rely on the rewrite system is equipped with. We develop here a semantics of using coherence spaces [Girard87] equipped with a notion of totality: our model accounts for the termination of computations in and interprets least and greatest fixed points in different ways. It presents some similarities with the game-theoretic model of Clairambault [Clairambault09, Clairambault13] of intuitionistic logic with least and greatest fixed points (see below).
Girard introduced coherence spaces in [Girard86] in his denotational study of System . In this model, types (with free variables) are interpreted as continuous (actually, stable) functors on a category of coherence spaces and embedding-retraction pairs. Our basic observation is that such functors admit “least fixed points” in a categorical sense. In the case of we have to depart from Girard’s setting because formulas must act on proofs and not only on embedding-retraction pairs: given a formula and a proof of , uses crucially a proof of defined by induction on (syntactic functoriality). This means that the functors interpreting formulas must act on all stable morphisms, and not only on embedding-retraction pairs. This is made possible by the fact that, in , type variables have only positive occurrences in formulas.
has a construction for least fixed points and a dual construction for greatest fixed points. The logical rule for introducing allows to deduce from (Park’s Rule). We prefer to consider a slightly generalized version of this rule: deduce from (which does not increase expressiveness but makes the embedding of functional formalisms such as Gödel’s System in much more natural). We need therefore a version of syntactic functoriality which accommodates these additional contexts . The denotational counterpart is that our functors interpreting types are equipped with a strength (as in [Clairambault09, Clairambault13], and essentially for the same reason). All together, these requirements lead to the definition of a variable coherence space (VCS). Such a functor has a fixed point which is at the same time an initial algebra and a final coalgebra, meaning that and have the same interpretation.
This first model, based on coherence spaces, admits morphisms which are not total (for instance the interpretation of , where is the type of integers, contains non total functions ). Following [Girard86] we equip our coherence spaces with a semantic notion of totality. We introduce accordingly variable coherence spaces with totality which are VCS’s equipped with a functorial notion of totality. Using Knaster-Tarski Theorem, we show that these functors have least and greatest fixed points, which now are distinct in general. The benefit of such models is that they give an abstract and compositional account of normalization: the interpretation of any proof of is an integer, which is the normal form of : the model “computes” this integer without reducing the proof.
Contents
In Section 2 we recall basic categorical notions essential in the paper: Seely categories, Eilenberg-Moore and Kleisli categories of the exponential, strong functors and their extension to categories of comodules and, last, initial algebras (least fixed points) and final coalgebras (greatest fixed points) of (strong) functors. Section LABEL:sec:coherence-spaces is devoted to a general presentation of coherence spaces and to a well behaved notion of strong functors on coherence spaces admitting fixed points (Variable Coherence Spaces, VCSs). In this setting, there is no distinction between least fixed points and greatest fixed points, due to the presence of partial computations in the model. Section LABEL:sec:coh-tot endows coherence spaces with a notion of totality rejecting such partial morphisms and introduces an adapted notion of variables types (VCSTs), giving rise to a clear distinction between least and greatest fixed points in this model . In Section LABEL:sec:MULL we present and various associated concepts: functorial extension of formulas, cut elimination, interpretation of formulas and proofs in the model . The idea that a semantic notion of totality enforces a distinction between least and greatest fixed points is of course not new, it is essential for instance in [Clairambault09, Clairambault13]. In Section LABEL:sec:examples we present various examples, stressing in particular that Gödel’s System can be embedded in (following Clairambault [Clairambault13]) and hence showing that this system has a significant expressive power from the viewpoint of the Curry-Howard correspondence. We also analyze in our model the encoding of exponentials using least and greatest fixed points proposed in [Baelde12]; we show in particular that these exponentials do not give rise to a Seely category, thus justifying our choice of considering the whole system , with exponentials. As an outcome of the paper, Section LABEL:sec:generalizations introduces a quite simple and general notion of categorical model of classical , of which the model is an instance.
Related work
Most importantly, we want to mention again the work of Pierre Clairambault (see [Clairambault09] and the long version [Clairambault13]) who investigates the denotational semantics of an extension of intuitionistic logic with least and greatest fixed points. Our categorical notion of model of classical of Definition LABEL:def:categorical-muLL-models can probably be seen as a “linearized version” of his notion of -closed category (an extension of the notion of cartesian closed categories with least and greatest fixed points) — perhaps through some kind of Kleisli construction — though our setting seems simpler as we do not need contravariant strong functors, only covariant ones. The concrete model considered by Clairambault is based on games and features a notion of totality guaranteeing that all computations terminate and enforcing the distinction between least and greatest fixed points, just as in the present work. Due to technical limitations intrinsically related to game semantics, Clairambault’s model is restricted to the pseudo-polynomial fragment where free variables never appear at the right hand side of an implication. No such limitations are necessary in our coherence space interpretation.
Remark 1*.*
We use the following notational conventions: stands for a list . When we write natural transformations, we very often omit the objects where they are taken and prefer to keep these objects implicit for the sake of readability, because they can easily be retrieved from the context. If is a functor and is an object of (notation ) then is the functor defined by and .
2. Categorical models of
A model of consists of the following data (our main reference is the notion of a Seely category as presented in [Mellies09]. We refer to that survey for all the technical material that we do not record here).
A symmetric monoidal closed category where , , and are natural isomorphisms satisfying coherence diagrams that we do not record here. We use for the object of linear morphisms from to , for the evaluation morphism and for the linear curryfication map . We assume this SMCC to be -autonomous with dualizing object . We use for the object of (the dual, or linear negation, of ).
is cartesian with final object , product . By -autonomy is cocartesian with initial object [math], coproduct and injections .
We are given a comonad with counit (dereliction) and comultiplication (digging) together with a strong symmetric monoidal structure (Seely natural isos and with , we use and for the inverses of these isos) for the functor , from the symmetric monoidal category to the symmetric monoidal category satisfying an additional coherence condition wrt. . It is also important to remember that this strong monoidal structure allows to define a weak monoidal structure of “” from to itself. More precisely and are defined using and . Also, for each object of , there is a canonical structure of commutative -comonoid on given by and . The definition of these morphisms involves all the structure of “” explained above, and in particular the Seely isos. In Section LABEL:sec:exclmu, we will use the fact that the following equation holds
[TABLE]
and also, as a consequence:
[TABLE]
We use for the “De Morgan dual” of : and similarly for morphisms. It is a monad on .
2.1. Eilenberg-Moore category and free comodules
It is then standard to define the category of -coalgebras. An object of this category is a pair where and is such that and . Then iff such that . The functor can be seen as a functor from to mapping to and to . It is right adjoint to the forgetful functor . Given , we use for the morphism associated with by this adjunction, one has . If , we have .
Then is cartesian (with product of shape and final object , still denoted as ). Here is the definition of :
{\underline{P}}\otimes{\underline{Q}}$${\oc{\underline{P}}}\otimes{\oc{\underline{Q}}}$$\oc({{\underline{P}}\otimes{\underline{Q}}})\,.$${h_{P}}\otimes{h_{Q}}$$\mu^{2}_{\underline{P},\underline{Q}}
This category is also cocartesian with coproduct of shape and initial object still denoted as [math]. Here is the definition of . One first defines as
\underline{P}$$\oc{\underline{P}}$$\oc({{\underline{P}}\oplus{\underline{Q}}})$$h_{P}$$\oc{\overline{\pi}_{1}}
and similarly one defines and then is defined as the unique morphism such that for .
More details can be found in [Ehrhard16a]. We use (contraction) for the diagonal and (weakening) for the unique morphism to the final object. These morphisms turn into a commutative -comonoid, and are defined as
\underline{P}$$\oc{\underline{P}}$$\oc({{\underline{P}}\mathrel{\&}{\underline{P}}})$${\oc{\underline{P}}}\otimes{\oc{\underline{P}}}$${\underline{P}}\otimes{\underline{P}}$$h_{P}$$\oc{\langle{\operatorname{\mathsf{Id}}},{\operatorname{\mathsf{Id}}}\rangle}$$(\mathsf{m}^{2})^{-1}$${\operatorname{\mathsf{der}}_{\underline{P}}}\otimes{\operatorname{\mathsf{der}}_{\underline{P}}}
and
\underline{P}$$\oc{\underline{P}}$$\oc({\top})$$1$$h_{P}$$\oc{\tau_{\underline{P}}}$$(\mathsf{m}^{0})^{-1} .
2.1.1. The model of free comodules on a given
coalgebra.
Given an object of , we can define a functor which maps an object to and a morphism to . This functor is clearly a comonad (with structure maps defined using , and the monoidal structure of ). A coalgebra for this comonad is a -comodule111This is just the dual notion of the standard algebraic notion of an -module which can be defined as soon as a commutative -monoid is given.. It was observed by Girard in [Girard98c] that the Kleisli category of this comonad (that is, the category of free -comodules) is in turn a model of with operations on objects defined in the same way as in , and using the coalgebra structure of on morphisms. Let us summarize this construction which will be used in the sequel. First let for . Then we define as
\underline{P}\otimes X_{1}\otimes X_{2}$$\underline{P}\otimes\underline{P}\otimes X_{1}\otimes X_{2}$$\underline{P}\otimes X_{1}\otimes\underline{P}\otimes X_{2}$${Y_{1}}\otimes{Y_{2}}\,.$$\operatorname{\mathsf{contr}}_{\underline{P}}\otimes\operatorname{\mathsf{Id}}$$\sim$${f_{1}}\otimes{f_{2}}
The object of linear morphisms from to in is , and the evaluation morphism is simply (keeping implicit the -monoidality isos)
\underline{P}\otimes({X}\multimap{Y})\otimes X$$({X}\multimap{Y})\otimes X$$Y$$\operatorname{\mathsf{w}}_{P}\otimes Id$$\operatorname{\mathsf{ev}} . Then it is easy to check that if , that is , the morphism satisfies the required monoidal closeness equations. With these definitions, the category is *-autonomous, with as dualizing object. Specifically, given , then is the following composition of morphisms:
{\underline{P}}\otimes{Y^{{\mathord{\perp}}}}$$\underline{P}\otimes({\underline{P}}\multimap{X^{{\mathord{\perp}}}})$$X^{{\mathord{\perp}}}$${\underline{P}}\otimes{f^{{\mathord{\perp}}}}$$\operatorname{\mathsf{ev}}
, using implicitly the iso between and , and the *-autonomy of allows to prove that indeed .
The category is easily seen to be cartesian with as final object, as cartesian product (and projections defined in the obvious way, using the projections of and the counit ). Last we define a functor by and, given , we define as
{\underline{P}}\otimes{\oc{X}}$${\oc{\underline{P}}}\otimes{\oc{X}}$$\oc({{{\underline{P}}}\otimes{X}})$$\oc{Y}$${h_{P}}\otimes{\oc{X}}$$\mu^{2}$$\oc{f} and this functor is equipped with a comonad structure easily defined using , and (for this crucial construction, we need to be a -coalgebra and not simply a commutative -comonoid; notice however that if is the free exponential, as in [Girard98c], the latter condition implies the former).
2.2. Strong functors on
Given , an -ary strong functor on is a pair where is a functor and is a natural transformation, called the strength of . We use the notation . It is assumed moreover that the diagrams of Figure 1 commute, expressing a monoidality of this strength.
The main purpose of this definition is that one can then define a functor as follows. First one sets . Then, given we define as
{\underline{P}}\otimes{\mathbb{F}(\vec{X})}$${\oc{\underline{P}}}\otimes{\mathbb{F}(\vec{X})}$$\mathbb{F}({\oc{\underline{P}}}\otimes{\vec{X}})$$\mathbb{F}({{\underline{P}}}\otimes{\vec{X}})$$\mathbb{F}(\vec{Y})\,.$${h_{P}}\otimes{\operatorname{\mathsf{Id}}}$$\widehat{\mathbb{F}}$$\overline{\mathbb{F}}(\operatorname{\mathsf{der}}_{\underline{P}}\otimes\vec{X})$$\mathbb{F}(\vec{f})
The fact that we have defined a functor results from the two monoidality diagrams of Figure 1 and from the definition of and based on the Seely isomorphisms.
Operations on strong functors.
There is an obvious unary identity strong functor and for each object of there is an -ary -valued constant strong functor ; in the first case the strength natural transformation is the identity morphism and in the second case, it is defined using . Let be an -ary strong functor and be -ary strong functors. Then one defines a -ary strong functor : the functorial component is defined in the obvious compositional way. The strength is defined as follows
{\oc{X}}\otimes{\overline{\mathbb{H}}(\vec{Y})}$$\overline{\mathbb{F}}(({\oc{X}}\otimes{\overline{\mathbb{G}_{i}}(\vec{Y})})_{i=1}^{n})$$\overline{\mathbb{F}}(({\overline{\mathbb{G}_{i}}({\oc{X}}\otimes{\vec{Y}})})_{i=1}^{n})=\overline{\mathbb{H}}({\oc{X}}\otimes{\vec{Y}})$$\widehat{\mathbb{F}}$$\overline{\mathbb{F}}((\widehat{\mathbb{G}_{i}})_{i=1}^{k})
and is easily seen to satisfy the required monoidality commutations.
Given an -ary strong functor, we can define its De Morgan dual which is also an -ary strong functor. On objects, we set and similarly for morphisms. The strength of is defined as the Curry transpose of the following morphism (remember that up to canonical iso):
\oc{X}\otimes{\overline{\mathbb{F}}(\vec{Y}^{{\mathord{\perp}}})^{{\mathord{\perp}}}}\otimes\overline{\mathbb{F}}({\oc{X}}\multimap{\vec{Y}^{{\mathord{\perp}}}})$$\oc{X}\otimes\overline{\mathbb{F}}({\oc{X}}\multimap{\vec{Y}^{{\mathord{\perp}}}})\otimes{\overline{\mathbb{F}}(\vec{Y}^{{\mathord{\perp}}})^{{\mathord{\perp}}}}$$\overline{\mathbb{F}}(\oc{X}\otimes({\oc{X}}\multimap{\vec{Y}^{{\mathord{\perp}}}}))\otimes{\overline{\mathbb{F}}(\vec{Y}^{{\mathord{\perp}}})^{{\mathord{\perp}}}}$$\overline{\mathbb{F}}(\vec{Y}^{{\mathord{\perp}}})\otimes{\overline{\mathbb{F}}(\vec{Y}^{{\mathord{\perp}}})^{{\mathord{\perp}}}}$$\mathord{\bot}$$\sim$$\widehat{\mathbb{F}}\otimes\operatorname{\mathsf{Id}}$$\overline{\mathbb{F}}(\operatorname{\mathsf{ev}})\otimes\operatorname{\mathsf{Id}}$$\operatorname{\mathsf{ev}}\,\gamma
Then it is possible to prove, using the *-autonomy of , that and are canonically isomorphic (as strong functors)222In the concrete settings considered in this paper, these canonical isos are actuality identity maps..
Lemma 2*.*
up to canonical iso.
Proof 2.1*.*
Results straightforwardly from the definition of and from the canonical iso between and . ∎
The bifunctor can be turned into a strong functor: one defines the strength as
\oc{X}\otimes Y_{1}\otimes Y_{2}$$\oc{X}\otimes\oc{X}\otimes Y_{1}\otimes Y_{2}$$\oc{X}\otimes Y_{1}\otimes\oc{X}\otimes Y_{2}$$\operatorname{\mathsf{contr}}_{\oc{X}}\otimes\operatorname{\mathsf{Id}}$$\sim
. By De Morgan duality, this endows with a
strength as well. The bifunctor is also endowed with a
strength, simply using the distributivity of over
(which in turn results from the fact that is symmetric
monoidal closed). By duality again, inherits a strength as
well. Last the unary functor “” can be equipped with a strength
as follows
{\oc{X}}\otimes{\oc{Y}}$${\oc{\oc{X}}}\otimes{\oc{Y}}$$\oc({{{\oc{X}}}\otimes{Y}})$${\operatorname{\mathsf{dig}}_{X}}\otimes{\oc{X}}$$\mu^{2}
. The functors on that these
strong functors induce coincide with the corresponding operations
defined in Section 2.1.1.
2.3. Fixed Points of functors.
The following definitions and properties are quite standard in the literature on fixed points of functors. {defi} Let be a category and let be a functor. A coalgebra of is a pair where is an object of and . Given two coalgebras and of , a coalgebra morphism from to is an such that the following diagram commutes
A$$A^{\prime}$$\mathcal{F}(A)$$\mathcal{F}(A^{\prime})$$h$$f$$f^{\prime}$$\mathcal{F}(h)
The category of coalgebras of the functor will be denoted as . The notion of algebra of an endofunctor is defined dually (reverse the directions of the arrows and ) and the corresponding category is denoted as .
Lemma 3* (Lambek’s Theorem).*
If is a final object in then is an iso.
In the sequel, we will always assume that this iso is the identity (because this holds in the concrete situations we consider in this paper) so that this final object satisfies . We focus on coalgebras rather than algebras for reasons which will become clear when we shall deal with fixed points of strong functors.
This universal property of gives us a powerful tool for proving equalities of morphisms.
Lemma 4*.*
Let be an object of and let . If there exists such that for , then .
