Various articles — tap for abstract and BibTeX
Resource polymorphism
Abstract
We present a resourcemanagement model for MLstyle programming languages, designed to be compatible with the OCaml philosophy and runtime model. This is a proposal to extend the OCaml language with destructors, move semantics, and resource polymorphism, to improve its safety, efficiency, interoperability, and expressiveness. It builds on the ownershipandborrowing models of systems programming languages (Cyclone, C++11, Rust) and on linear types in functional programming (Linear Lisp, Clean, Alms). It continues a synthesis of resources from systems programming and resources in linear logic initiated by Baker.
It is a combination of many known and some new ideas. On the novel side, it highlights the good mathematical structure of Stroustrup's “Resource acquisition is initialisation” (RAII) idiom for resource management based on destructors, a notion sometimes confused with finalizers, and builds on it a notion of resource polymorphism, inspired by polarisation in proof theory, that mixes C++'s RAII and a tracing garbage collector (GC). In particular, it proposes to identify the types of GCed values with types with trivial destructor: from this definition it deduces a model in which GC is the default allocation mode, and where GCed values can be used without restriction both in owning and borrowing contexts.
The proposal targets a new spot in the design space, with an automatic and predictable resourcemanagement model, at the same time based on lightweight and expressive language abstractions. It is backwardscompatible: current code is expected to run with the same performance, the new abstractions fully combine with the current ones, and it supports a resourcepolymorphic extension of libraries. It does so with only a few additions to the runtime, and it integrates with the current GC implementation. It is also compatible with the upcoming multicore extension, and suggests that the Rust model for eliminating dataraces applies.
Interesting questions arise for a safe and practical type system, many of which have already been thoroughly investigated in the languages and prototypes Cyclone, Rust, and Alms.
BibTeX
[M18]  Resource Polymorphism. , 2018. 
@TechReport{Munch2018RePo,
author = {MunchMaccagnoni, Guillaume},
title = {Resource Polymorphism},
year = {2018},
date = {20180131},
}
Note on models of polarised intuitionistic logic
Abstract
Following renewed interest in duploids arising from the exponential comonad of linear logic (the construction describing polarised intuitionistic translations into linear logic), I summarise here various remarks: • about a decomposition of Girard's “boring” translation as the expression of callbyvalue in callbyname, dual to how thunks are used to express callbyname in callbyvalue • about the coincidence between linear CPS translations and Girard's translations of intuitionistic logic into linear logic, • about a completeness property of historical models of linear logic in the above context • about a rational reconstruction of these translations with the Linear CallbyPushValue.
BibTeX
[M17]  Note on models of polarised intuitionistic logic. , 2017. 
@TechReport{MunchMaccagnoni2017llcbpv,
author = {Guillaume MunchMaccagnoni},
title = {Note on models of polarised intuitionistic logic},
year = {2017},
date = {20170616},
url = {https://hal.inria.fr/hal01540760},
}
Note on Curry's style for Linear CallbyPushValue
Abstract
We present Currystyle calculi for intuitionistic (linear) logic with polarised evaluation order and give selfcontained proofs of their main properties and of their interpretation into (Linear) CallbyPushValue models: subject reduction, confluence, strong normalisation, coherence, soundness, and focusing.
BibTeX
[M17]  Note on Curry's style for Linear CallbyPushValue. , 2017. 
@TechReport{MunchMaccagnoni2017curry,
author = {Guillaume MunchMaccagnoni},
title = {Note on Curry's style for Linear CallbyPushValue},
year = {2017},
date = {20170503},
url = {https://hal.inria.fr/hal01528857},
}
A Theory of Effects and Resources: Adjunction Models and Polarised Calculi
[PDF, December 2015 — Slides.]
In proc. POPL 2016. Joint work with Marcelo Fiore and PierreLouis Curien.
Abstract
We consider the CurryHowardLambek correspondence for effectful computation and resource management, specifically proposing polarised calculi together with presheafenriched adjunction models as the starting point for a comprehensive semantic theory relating logical systems, typed calculi, and categorical models in this context.
Our thesis is that the combination of effects and resources should be considered orthogonally. Model theoretically, this leads to an understanding of our categorical models from two complementary perspectives: (i) as a linearisation of CBPV (CallbyPushValue) adjunction models, and (ii) as an extension of linear/nonlinear adjunction models with an adjoint resolution of computational effects. When the linear structure is cartesian and the resource structure is trivial we recover Levy's notion of CBPV adjunction model, while when the effect structure is trivial we have Benton's linear/nonlinear adjunction models. Further instances of our model theory include the dialogue categories with a resource modality of Melliès and Tabareau, and the [E]EC ([Enriched] Effect Calculus) models of Egger, Møgelberg and Simpson. Our development substantiates the approach by providing a lifting theorem of linear models into cartesian ones.
To each of our categorical models we systematically associate a typed term calculus, each of which corresponds to a variant of the sequent calculi LJ (Intuitionistic Logic) or ILL (Intuitionistic Linear Logic). The adjoint resolution of effects corresponds to polarisation whereby, syntactically, types locally determine a strict or lazy evaluation order and, semantically, the associativity of cuts is relaxed. In particular, our results show that polarisation provides a computational interpretation of CBPV in direct style. Further, we characterise depolarised models: those where the cut is associative, and where the evaluation order is unimportant. We explain possible advantages of this style of calculi for the operational semantics of effects.
Keywords
Categorical semantics, CurryHowardLambek correspondence, Intuitionistic logic, Linear logic, Computational effects, Resource modalities, Polarised calculi, Adjunction models.
BibTeX
[CFM16]  A Theory of Effects and Resources: Adjunction Models and Polarised Calculi. In Proc. POPL, 2016. 
@InProceedings{CFM2016,
Title = {{A} {T}heory of {E}ffects and {R}esources: {A}djunction {M}odels and {P}olarised {C}alculi},
Author = {Curien, PierreLouis and Fiore, Marcelo and MunchMaccagnoni, Guillaume},
Booktitle = {Proc. POPL},
Year = {2016},
Doi = {10.1145/2837614.2837652}
}
Polarised Intermediate Representation of Lambda Calculus with Sums
[On HAL — direct link to PDF.]
In proc. LICS 2015. Joint work with Gabriel Scherer.
Abstract
The theory of the λcalculus with extensional sums is more complex than with only pairs and functions. We propose an untyped representation—an intermediate calculus—for the λcalculus with sums, based on the following principles: 1) Computation is described as the reduction of pairs of an expression and a context; the context must be represented insideout, 2) Operations are represented abstractly by their transition rule, 3) Positive and negative expressions are respectively eager and lazy; this polarity is an approximation of the type. We offer an introduction from the ground up to our approach, and we review the benefits.
A structure of alternating phases naturally emerges through the study of normal forms, offering a reconstruction of focusing. Considering further purity assumption, we obtain maximal multifocusing. As an application, we can deduce a syntaxdirected algorithm to decide the equivalence of normal forms in the simplytyped λcalculus with sums, and justify it with our intermediate calculus.
Keywords
λcalculus with sums, Intuitionistic logic, Sequent calculus, Abstract machines, Polarization, Focalization, Continuationpassing style, Defunctionalization.
BibTeX
[MS15]  Polarised Intermediate Representation of Lambda Calculus with Sums. In Proceedings of the Thirtieth Annual ACM/IEEE Symposium on Logic In Computer Science (LICS 2015), 2015. 
@InProceedings{MunSch2015,
Title = {{P}olarised {I}ntermediate {R}epresentation of {L}ambda {C}alculus with {S}ums},
Author = {MunchMaccagnoni, Guillaume and Scherer, Gabriel},
Booktitle = {Proceedings of the Thirtieth Annual ACM/IEEE Symposium on Logic In Computer Science (LICS 2015)},
Year = {2015},
Doi = {10.1109/LICS.2015.22}
}
FormulaeasTypes for an Involutive Negation
[Article with appendices — Slides — July 2014.]
In proc. CSLLICS 2014.
Adapted from the fourth chapter of my thesis.
Abstract
Negation is not involutive in the λC calculus because it does not distinguish captured stacks from continuations. We show that there is a formulaeastypes correspondence between the involutive negation in proof theory, and a notion of highlevel access to the stacks studied by Felleisen and Clements.
We introduce polarised, untyped, calculi compatible with extensionality, for both of classical sequent calculus and classical natural deduction, with connectives for an involutive negation. The involution is due to the ℓ delimited control operator that we introduce, which allows us to implement the idea that captured stacks, unlike continuations, can be inspected. Delimiting control also gives a constructive interpretation to falsity. We describe the isomorphism there is between A and ¬¬A, and thus between ¬∀ and ∃¬.
Keywords
Classical logic, Formulaeastypes, Delimited control operators, Continuations, Polarization, Focalization.
BibTeX
[M14]  FormulaeasTypes for an Involutive Negation. In Proceedings of the joint meeting of the TwentyThird EACSL Annual Conference on Computer Science Logic and the TwentyNinth Annual ACM/IEEE Symposium on Logic in Computer Science (CSLLICS), 2014. 
@InProceedings{Munch14Involutive,
Title = {{F}ormulaeas{T}ypes for an {I}nvolutive {N}egation},
Author = {MunchMaccagnoni, Guillaume},
Booktitle = {Proceedings of the joint meeting of the TwentyThird EACSL Annual Conference on Computer Science Logic and the TwentyNinth Annual ACM/IEEE Symposium on Logic in Computer Science (CSLLICS)},
Year = {2014}
}
Models of a NonAssociative Composition
[PDF, December 2013 — Slides, April 2014.]
In proc. FoSSaCS 2014.
Slightly shortened version of the second chapter of my thesis manuscript.
The original version of this article is available at Springer Link.
Abstract
We characterise the polarised evaluation order through a categorical structure where the hypothesis that composition is associative is relaxed. Duploid is the name of the structure, as a reference to JeanLouis Loday's duplicial algebras. The main result is a reflection Adj→Dupl where Dupl is a category of duploids and duploid functors, and Adj is the category of adjunctions and pseudo maps of adjunctions. The result suggests that the various biases in denotational semantics: indirect, callbyvalue, callbyname... are a way of hiding the fact that composition is not always associative.
Keywords
Polarization, CallbyPushValue, L calculus, direct models, adjunctions.
BibTeX
[M14]  Models of a NonAssociative Composition. In Proceedings of the 17th International Conference on Foundations of Software Science and Computation Structures (FoSSaCs), 8412:397412, Springer Heidelberg, 2014. 
@InProceedings{Munch14Duploids,
Title = {{M}odels of a {N}on{A}ssociative {C}omposition},
Author = {MunchMaccagnoni, Guillaume},
Booktitle = {Proceedings of the 17th International Conference on Foundations of Software Science and Computation Structures (FoSSaCs)},
Year = {2014},
Editor = {Muscholl, Anca},
Pages = {397412},
Publisher = {Springer Heidelberg},
Series = {Lecture Notes in Computer Science},
Volume = {8412}
}
The duality of computation under focus
In proc. IFIP TCS 2010. Joint work with PierreLouis Curien.
The original version is available at www.springerlink.com.
Abstract
We review the close relationship between abstract machines for (callbyname or callbyvalue) lambdacalculi (extended with Felleisen's C) and sequent calculus, reintroducing on the way CurienHerbelin's syntactic kit expressing the duality of computation. We use this kit to provide a term language for a presentation of LK (with conjunction, disjunction, and negation), and to transcribe cut elimination as (non confluent) rewriting. A key slogan here, which may appear here in print for the first time, is that commutative cut elimination rules are explicit substitution propagation rules.
We then describe the focalised proof search discipline (in the classical setting), and narrow down the language and the rewriting rules to a confluent calculus (a variant of the second author's focalising system L). We then define a game of patterns and counterpatterns, leading us to a fully focalised finitary syntax for a synthetic presentation of classical logic, that provides a quotient on (focalised) proofs, abstracting out the order of decomposition of negative connectives.
Keywords
Sequent calculus, classical logic, polarization, focalization, explicit substitutions, pattern matching.
BibTeX
[CM10]  The duality of computation under focus. In IFIP TCS, 323:165181, Springer, 2010. 
@InProceedings{CurienMunch10,
Title = {{T}he duality of computation under focus},
Author = {Curien, PierreLouis and MunchMaccagnoni, Guillaume},
Booktitle = {IFIP TCS},
Year = {2010},
Editor = {Calude, Christian S. and Sassone, Vladimiro},
Pages = {165181},
Publisher = {Springer},
Series = {IFIP Advances in Information and Communication Technology},
Volume = {323}
}
Focalisation and Classical Realisability
In proc. CSL 2009.
Extended version: August 2009. Revised June 2010.
The original version is available at www.springerlink.com.
Abstract
We develop a polarised variant of Curien and Herbelin's lambdabarmumutilde calculus suitable for sequent calculi that admit a focalising cut elimination (i.e. whose proofs are focalised when cutfree), such as Girard's classical logic LC or linear logic. This gives a setting in which Krivine's classical realisability extends naturally (in particular to callbyvalue), with a presentation in terms of orthogonality. We give examples of applications to the theory of programming languages.
In this version extended with appendices, we in particular give the twosided formulation of LC with the involutive classical negation. We also show that there is in classical realisability a notion of internal completeness similar to the one of Ludics.
Keywords
Realizablity, polarisation, focalization, sequent calculus, classical logic, orthogonality, Ludics.
BibTeX
[M09]  Focalisation and Classical Realisability. In Computer Science Logic '09, 5771:409423, Springer, Heidelberg, 2009. 
@InProceedings{Munch09Foc,
Title = {{F}ocalisation and {C}lassical {R}ealisability},
Author = {MunchMaccagnoni, Guillaume},
Booktitle = {Computer Science Logic '09},
Year = {2009},
Editor = {Erich Gr{\"a}del and Reinhard Kahle},
Pages = {409423},
Publisher = {Springer, Heidelberg},
Series = {Lecture Notes in Computer Science},
Volume = {5771}
}
Manuscripts & lecture notes
 Calcul L pour les séquents, April 2012. GdT Logique, February 2012. See also the Chapter I of my PhD thesis. PDF (French)

Λcalcul, machines et orthogonalité, appears in the Chapter I of my PhD thesis (except for the sections about orthogonalitybased logical relations which can only be found here at the moment). GdT Logique, October 2011. PDF (French)
(June 2012: added the proof of strong normalisation by orthogonality, together with a comparison to Krivine's “adapted pairs” technique.)  From delimited CPS to polarisation, appears as Chapter III in my PhD thesis. April 2011 (HAL). PDF
 Étude polarisée du système L, internship report (HAL), 2008: longer and earlier version of Focalisation and Classical Realisability with additional motivations and informal explanations.
PhD thesis
My PhD thesis develops a paradigm of evaluation order as nonassociativity of composition. Here is a reading guide:
 Chapter I: subsumed by Sections II and III in LICS 2015.
 Chapter II: published in FoSSaCS 2014.
 Chapter III: cannot be found elsewhere yet, will likely appear in several pieces.
 Chapter IV: earlier and longer version of CSLLICS 2014.
Syntax and Models of a NonAssociative Composition of Programs and Proofs
[PDF: Screen version or Print version — Slides.]
Defended December 10th, 2013. Manuscript in English, preceded by an extended abstract in French.
Abstract
The thesis is a contribution to the understanding of the nature, role, and mechanisms of polarisation in programming languages, proof theory and categorical models. Polarisation corresponds to the idea the associativity of composition of morphisms is an hypothesis that has to be relaxed, and underlies many models of computation.
In our demonstration, we introduce duploids, which model polarisation directly. These compositional structures, which, unlike categories, do not always require composition to be associative, are shown to be in correspondence with certain completed forms of categorical adjunctions (Chapter II). This analysis of polarisation is then extended into a finegrained decomposition of continuationpassingstyle (CPS) transformations, which model and implement higherorder programming languages. As an application we show how polarisation accounts for evaluation order in models of delimited control operators (Chapter III). Finally, we give a formulaeastypes interpretation of an involutive negation, which shows the importance of polarisation for constructiveness in proof theory (Chapter IV).
The cornerstone of our approach is an interactive termbased representation of proofs and programs (L calculi) which exposes the structure of polarities. It is based on the correspondence between abstract machines and sequent calculi, and syntheses various trends: the modelling of control, evaluation order and effects in programming languages, the quest for a relationship between categorical duality and continuations, and the interactive notion of construction in proof theory. We give a gentle introduction to our approach which only assumes elementary knowledge of simplytyped λ calculus and rewriting (Chapter I).
Keywords
Nonassociative composition, Polarization, Adjunctions, Direct model, Abstract machine, Sequent calculus, Delimited control, Continuationpassing style.
BibTeX
[M13]  Syntax and Models of a nonAssociative Composition of Programs and Proofs. , 2013. 
@PhdThesis{Munch13PhD,
Title = {{S}yntax and {M}odels of a non{A}ssociative {C}omposition of {P}rograms and {P}roofs},
Author = {MunchMaccagnoni, Guillaume},
School = {Univ. Paris Diderot},
Year = {2013}
}
Talks
See above for conference talks and PhD defense.
 Polarities and classical constructiveness (PDF, first part), invited talk at the Institut Henri Poincaré thematic trimester on Semantics of proofs and certified mathematics, June 4th 2014. For the second part of my talk, see above the one at FOSSACS.