A Classical Linear λ \lambda -Calculus based on Contraposition Pablo Barenbaum, Eduardo Bonelli, Leopoldo Lerena Abstract We present a novel linear λ \lambda -calculus for Classical Multiplicative Exponential Linear Logic ( MELL ) along the lines of the propositions-as-types paradigm. Starting from the standard term assignment for Intuitionistic Multiplicative Linear Logic ( IMLL ), we observe that if we incorporate linear negation, its involutive nature implies that both A ⊸ B A\multimap B and B ⟂ ⊸ A ⟂ B^{\perp}\multimap A^{\perp} should have the same proofs. The introduction of a linear modus tollens rule, stating that from B ⟂ ⊸ A ⟂ B^{\perp}\multimap A^{\perp} and A A we may conclude B B , allows one to recover classical MLL . Furthermore, a term assignment for this elimination rule,the study of proof normalization in a λ \lambda -calculus with this elimination rule prompts us to define the novel notion of contra-substitution t { a \ \ s } t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} . Introduced alongside linear substitution, contra-substitution denotes the term that results from “grabbing” the unique occurrence of a a in t t and “pulling” from it, in order to turn the term t t inside out (much like a sock) and then replacing a a with s s . We call the one-sided natural deduction presentation of classical MLL , the λ MLL \lambda_{\textsf{{MLL}}} -calculus. Guided by the behavior of contra-substitution in the presence of the exponentials, we extend it to a similar presentation for MELL . We prove that this calculus is sound and complete with respect to MELL and that it satisfies the standard properties of a typed programming language: subject reduction, confluence and strong normalization. Moreover, we show that several well-known term assignments for classical logic can be encoded in λ MELL \lambda_{\textsf{{MELL}}} . These include Parigot’s λ ​ μ \lambda\mu [ 25 ] both via Danos, Joinet and Schellinx’s T and Q-Translations [ 14 ] , Curien and Herbelin’s λ ¯ ​ μ ​ μ ~ \overline{\lambda}\mu\tilde{\mu} -calculus [ 13 ] , and Hasegawa’s μ ​ DCLL \mu\textsf{DCLL} [ 20 , 19 ] . \setlistdepth 9 Universidad Nacional de Quilmes (CONICET), Argentina and Universidad de Buenos Aires, Argentinapbarenbaum@dc.uba.arhttps://orcid.org/0009-0003-2494-3345Stevens Institute of Technology, United Statesebonelli@stevens.edu0000-0003-1856-2856 Universidad de Buenos Aires (CONICET), Argentinaleolerena@gmail.com[orcid] {CCSXML} ¡ccs2012¿ ¡concept¿ ¡concept_id¿10003752.10003790.10003801¡/concept_id¿ ¡concept_desc¿Theory of computation Linear logic¡/concept_desc¿ ¡concept_significance¿500¡/concept_significance¿ ¡/concept¿ ¡concept¿ ¡concept_id¿10003752.10003790.10011740¡/concept_id¿ ¡concept_desc¿Theory of computation Type theory¡/concept_desc¿ ¡concept_significance¿500¡/concept_significance¿ ¡/concept¿ ¡concept¿ ¡concept_id¿10003752.10003790.10003792¡/concept_id¿ ¡concept_desc¿Theory of computation Proof theory¡/concept_desc¿ ¡concept_significance¿500¡/concept_significance¿ ¡/concept¿ ¡/ccs2012¿ ccs Theory of computation Linear logic ccs Theory of computation Type theory ccs Theory of computation Proof theory keywords linear logic, lambda calculus, proof theory, type systems † † runningauthor: J. Open Access and J. R. Public † † copyright: Jane Open Access and Joan R. Public † † editors: John Q. Open and Joan R. Access † † event-title: 42nd Conference on Very Important Topics (CVIT 2016) † † event-shorttitle: CVIT 2016 † † event-acronym: CVIT † † year: 2016 † † event-date: December 24–27, 2016 † † event-location: Little Whinging, United Kingdom † † series-volume: 42 † † articleno: 23 1 Introduction Linear Logic ( LL ) [ 18 ] proposes a resource conscious approach to logic, in which formulae cannot be arbitrarily duplicated or erased. It incorporates two modalities, called the exponential modalities , that recover the ability to duplicate and erase formulae in a controlled way. While the of-course modality {!}{A} represents the obligation to duplicate and erase the formula A as many times as required, the why-not modality {?}A represents the right to duplicate and erase the formula A as many times as desired. This makes LL a suitable language to model resource-sensitive phenomena such as concurrency, memory management, and computational complexity. To explore the computational consequences of these ideas, one can turn to the proposition-as-types paradigm , which allows to interpret propositions as types, proofs as programs, and proof normalization as program evaluation. The canonical example is the correspondence between minimal logic and simply typed \lambda -calculus. The proposition-as-types paradigm has been extended to many other logical systems, and in particular to Linear Logic and various of its fragments. Tensions Between Classical Symmetries and Lambda Calculi. Linear Logic is known to exhibit numerous symmetries. This is perhaps most evident in sequent calculus presentations, in which the left rules for a logical connective ( e.g. “ {!}{} ”) are the mirror image of the right rules for the dual connective ( e.g. “ {?} ”). These kinds of symmetries are also present in Classical Logic ( CL ), but notably not in Intuitionistic Logic. For instance, in CL and LL , affirming a proposition A as a thesis corresponds exactly to denying A as a hypothesis—the key behind the classical principle of reductio ad absurdum . Another related symmetry is expressed in the classical law of contraposition , which states that A\to B is equivalent to \neg{B}\to\neg{A} . One essential aspect of this symmetry is that one would expect to be able to define negation as an involutive connective, so that \neg\neg A=A becomes a strict equality, which in particular means that a cut between a proof of A and one of its negation \neg{A} does not prioritize either side. Compare this with the intuitionistic case, in which \neg{A} corresponds to a function type A\to\bot , but an arbitrary type B cannot be understood as a function type in general. When a logic is presented in (single-conclusion) natural deduction style, the computational formalism one obtains is a variant of the \lambda -calculus. It is not obvious how to formulate systems in this style that exhibit classical symmetries and still enjoy good computational properties such as canonicity. For example, in the case of classical propositional logic, Barbanera and Berardi’s classical \lambda -calculus [ 7 ] is symmetric but non-confluent, while Parigot’s \lambda\mu -calculus [ 25 ] is confluent but non-symmetric ( e.g. negation is not involutive 1 1 1 Not only is \neg\neg A\neq A , but \neg\neg A\supset A is not provable [ 3 , Cor.1] . ). In the case of LL , it is not clear how to formulate appropriate natural deduction rules for logical connectives that involve sequents with more than one formula on the right. For example, the right introduction rule for multiplicative conjunction derives \Gamma\vdash A\invamp B from \Gamma\vdash A,B , and the right contraction rule for the why-not modality derives \Gamma\vdash{?}A from \Gamma\vdash{?}A,{?}A . Intuitionistic and Sequent-Based Systems. The difficulty to harmonize classical symmetries and lambda calculi is perhaps the reason why most of the existing literature that studies LL from the point of view of the propositions-as-types paradigm takes one of two routes. On one hand, some systems such as ILL or DILL [ 8 , 9 ] restrict LL to the intuitionistic fragment. Intuitionistic formulations of LL sidestep the aforementioned difficulties by restricting the possible “shapes” of formulae and sequents, in such a way that a judgement involves a number of input formulae and a single distinguished output formula. For instance, in ILL , the multiplicative disjunction is removed in favor of the (more restricted) linear implication, and the why-not modality is removed altogether. These restrictions allow to formulate well-behaved intuitionistic linear lambda calculi, in which the proof of a sequent A_{1},\ldots,A_{n}\vdash B is understood as a single sequential program taking n inputs and producing one output. However, this is at the expense of losing the classical symmetries, and ruling out a large class of formulae and proofs, leaving the underlying computational mechanisms unexplored. On the other hand, there are systems corresponding to unrestricted ( i.e. classical) LL , which are usually derived from sequent calculus presentations of LL . As already mentioned, sequent-based presentations are symmetric, and cut elimination, in this setting, exhibits good properties such as strong normalization and confluence. Formulae do not play a distinguished input or output role: the proof of a sequent \vdash A_{1},\ldots,A_{n} is understood as the parallel composition of n interacting processes [ 1 , 28 , 29 ] . Calculi based on these principles can thus be seen as concurrent systems, more akin to process calculi than to the \lambda -calculus. Among these systems, one also finds graphical formalisms like proof-nets . They are intentionally designed to abstract away the permutative rules of sequent calculus. This allows reasoning at a higher level, but at the same time it makes it difficult to reason axiomatically: for example, to formalize proof-nets in a proof assistant one needs to choose concrete terms as representatives of proof-nets, and the need for explicit permutation rules reappears. This leaves open the question of whether a single-conclusion natural deduction system for (classical) LL can be designed that retains the classical symmetries and desirable computational properties. Such a system, in which proofs can still be understood as “functional” programs, could form the basis of linear functional programming languages and proof assistants. Towards a Classical Linear \lambda -Calculus. Our starting point is a natural deduction system with multiplicative conjunction ( \otimes ) and linear implication ( \multimap ) as the only connectives, i.e. corresponding to Multiplicative Linear Logic ( MLL ). An involutive negation operator (\cdot)^{\perp} can be defined essentially by the equation (A\multimap B)^{\perp}=A\otimes B^{\perp} , and its dual. The elimination rule for linear implication in the intuitionistic fragment of MLL is the linear modus ponens rule, which states that from A\multimap B and A one may conclude B . A first observation is that the only missing piece to recover classical MLL is to add the linear modus tollens rule, which states that from A\multimap B and B^{\perp} one may conclude A^{\perp} . This results in an inference system that —from the strictly logical point of view— turns out to prove all and only the valid sequents of MLL . Also, it raises the question of how to provide a computational interpretation for it, that is, to devise a proof normalization procedure. The key to define the computational interpretation are the standard operation of substitution and, to the best of our knowledge, a new operation we call contra-substitution . The Linear Contra-Substitution Principle. Modus ponens corresponds to application : a linear function t:A\multimap B may be applied to an argument s:A to yield a result t\,{\color[rgb]{0,0,1}\bullet}\,s:B . From the computational point of view, a redex formed by the interaction between a \lambda -abstraction and an application can be normalized by means of the usual \beta -rule, performing the simplification (\lambda a.\,t)\,{\color[rgb]{0,0,1}\bullet}\,s\rightsquigarrow t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}} . The right-hand side, t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}} , denotes the linear substitution of the (unique) free occurrence of a in t by s . The modus tollens rule corresponds to a comparatively less familiar operation we dub contra-application : a linear function t:A\multimap B may be “contra-applied” to a term s:B^{\perp} to yield a result t{\color[rgb]{1,0,0}\blacktriangledown}s:A^{\perp} . A redex formed by the interaction between a \lambda -abstraction and a contra-application can be normalized by means of a new rule that performs the simplification (\lambda a.\,t){\color[rgb]{1,0,0}\blacktriangledown}s\rightsquigarrow t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} . The right hand side, t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} corresponds to a non-standard operation we dub contra-substitution . Intuitively, t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} is the expression that results from “grabbing” the unique occurrence of a in t and “pulling” from it, in order to turn the term t inside out. This operation is defined by structural induction on t . For example, if \langle t,a\rangle:A\otimes B is a tensor pair, and s:A\multimap B^{\perp} , then \langle t,a\rangle{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} turns out to produce the term s\,{\color[rgb]{0,0,1}\bullet}\,t:B^{\perp} where s is applied to t . Uniqueness of the occurrence of a ( i.e. linearity) is crucial to be able to define this notion. Summary of contributions. We explore a propositions-as-types correspondence for a one-sided natural deduction presentation of Multiplicative Exponential Linear Logic ( MELL ) based on the novel notion of contra-substitution , where proofs are modeled as functional expressions rather than processes. The resulting \lambda_{\textsf{{MELL}}} -calculus provides term witnesses for all proofs in MELL , is strongly normalizing and confluent. It makes use of a notion of structural equivalence that is a strong bisimulation and we believe has an interest of its own. Several well-known term assignments for classical logic are shown to be simulated in \lambda_{\textsf{{MELL}}} including Parigot’s \lambda\mu [ 25 ] , Hasegawa’s \mu\textsf{DCLL} [ 20 , 19 ] (in the appendix), and Curien and Herbelin’s \overline{\lambda}\mu\tilde{\mu} -calculus [ 13 ] . Some proof skeletons and additional definitions are available in the appendix. See [ 10 ] for full proofs. 2 Preliminaries This section recalls MLL and MELL (with units) via the usual one-sided sequent presentation. Multiplicative Linear Logic. We assume given a denumerable set of atomic formulae \alpha,\beta,\ldots each with its corresponding negative version \overline{\alpha},\overline{\beta},\ldots . The set of MLL -formulae is given by: A,B,\ldots::=\alpha\mid\overline{\alpha}\mid A\otimes B\mid A\multimap B The logical connectives \otimes and \multimap are called multiplicative . Linear negation is the involutive operator (\cdot)^{\perp} defined by: \alpha^{\perp}:=\overline{\alpha}\quad\quad\quad\overline{\alpha}^{\perp}:=\alpha\quad\quad\quad(A\otimes B)^{\perp}:=A\multimap B^{\perp}\quad\quad\quad(A\multimap B)^{\perp}:=A\otimes B^{\perp} In MLL , we take linear implication ( \multimap ) as a primitive connective rather than multiplicative disjunction ( \invamp ), which is the more conventional choice. This is just a minor presentational point, since \multimap and \invamp are interdefinable; indeed, one can define A\invamp B:=A^{\perp}\multimap B . Judgements in MLL are of the form \vdash{\Gamma} where \Gamma is a finite multiset of MLL formulae. Note that working with multisets avoids the need of an explicit exchange rule. We write \Gamma,\Gamma^{\prime} for the multiset union of finite multisets \Gamma and \Gamma^{\prime} . Valid MLL judgement are defined inductively by the following rules. Definition 1 (Valid MLL judgement) . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.06668pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A,A^{\perp}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma,A}\quad\vdash{\Gamma^{\prime},A^{\perp}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=69.9444pt\hbox{\kern 3.06668pt$\textsc{{l-cut}}$}}}\hbox{\kern 20.65279pt\hbox{$\displaystyle\vdash{\Gamma,\Gamma^{\prime}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma,A}\quad\vdash{\Gamma^{\prime},B}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=64.78119pt\hbox{\kern 3.06668pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 1.9445pt\hbox{$\displaystyle\vdash{\Gamma,\Gamma^{\prime},A\otimes B}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.23608pt\hbox{$\displaystyle\penalty\vdash{\Gamma,A^{\perp},B}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=51.83665pt\hbox{\kern 3.06668pt$\textsc{{l-$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma,A\multimap B}$}}}}\end{array} Multiplicative Exponential Linear Logic. The set of MELL -formulae is given by: A,B,\ldots::=\alpha\mid\overline{\alpha}\mid A\otimes B\mid A\invamp B\mid\text{1}\mid{\perp}\mid{!}{A}\mid{?}A The connectives \otimes and \invamp , as well as the units 1 and {\perp} are called multiplicative , while the modalities {!}{} and {?} are called exponential . Linear negation is the involutive operator (\cdot)^{\perp} defined by: \begin{array}[]{r@{\,\,}c@{\,\,}l@{\HS\HS}r@{\,\,}c@{\,\,}l@{\HS\HS}r@{\,\,}c@{\,\,}l@{\HS\HS}r@{\,\,}c@{\,\,}l}\alpha^{\perp}&:=&\overline{\alpha}\hfil\quad\quad&\overline{\alpha}^{\perp}&:=&\alpha\hfil\quad\quad&(A\otimes B)^{\perp}&:=&A^{\perp}\invamp B^{\perp}\hfil\quad\quad&(A\invamp B)^{\perp}&:=&A^{\perp}\otimes B^{\perp}\\ ({!}{A})^{\perp}&:=&{?}A^{\perp}\hfil\quad\quad&({?}A)^{\perp}&:=&{!}{A^{\perp}}\hfil\quad\quad&\text{1}^{\perp}&:=&{\perp}\hfil\quad\quad&{\perp}^{\perp}&:=&\text{1}\end{array} Unlike in MLL , we take multiplicative disjunction ( \invamp ) as the primitive connective in MELL . Again, this is just a minor point to improve presentation, and in MELL one can define A\multimap B:=A^{\perp}\invamp B . Judgements are of the form \vdash{\Gamma} where \Gamma is a finite multiset of MELL formulae. Valid MELL judgement are defined inductively by the following rules. Definition 2 (Valid MELL judgement) . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.06668pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A,A^{\perp}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma,A}\quad\vdash{\Gamma^{\prime},A^{\perp}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=69.9444pt\hbox{\kern 3.06668pt$\textsc{{l-cut}}$}}}\hbox{\kern 20.65279pt\hbox{$\displaystyle\vdash{\Gamma,\Gamma^{\prime}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma,A}\quad\vdash{\Gamma^{\prime},B}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=64.78119pt\hbox{\kern 3.06668pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 1.9445pt\hbox{$\displaystyle\vdash{\Gamma,\Gamma^{\prime},A\otimes B}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.74997pt\hbox{$\displaystyle\penalty\vdash{\Gamma,A,B}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=47.11443pt\hbox{\kern 3.06668pt$\textsc{{l-$\invamp$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma,A\invamp B}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.62495pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=13.88882pt\hbox{\kern 3.06668pt$\textsc{{l-$\text{1}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\text{1}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.1389pt\hbox{$\displaystyle\penalty\vdash{\Gamma}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=25.41664pt\hbox{\kern 3.06668pt$\textsc{{l-${\perp}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma,{\perp}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 0.55559pt\hbox{$\displaystyle\penalty\vdash{{?}\Gamma,A}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=32.91667pt\hbox{\kern 3.06668pt$\textsc{{l-!p}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{{?}\Gamma,{!}{A}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 7.50002pt\hbox{$\displaystyle\penalty\vdash{\Gamma}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=30.13887pt\hbox{\kern 3.06668pt$\textsc{{l-?w}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma,{?}A}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 1.5278pt\hbox{$\displaystyle\penalty\vdash{\Gamma,A}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=30.13887pt\hbox{\kern 3.06668pt$\textsc{{l-?d}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma,{?}A}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma,{?}A,{?}A}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=45.1389pt\hbox{\kern 3.06668pt$\textsc{{l-?c}}$}}}\hbox{\kern 7.50002pt\hbox{$\displaystyle\vdash{\Gamma,{?}A}$}}}}\end{array} 3 A Contraposition-Based Calculus for MLL This section presents the \lambda_{\textsf{{MLL}}} -calculus , our propositions-as-types interpretation of MLL . The set of terms and case contexts are given by: \begin{array}[]{llrll}(\text{Terms})&t,s,\ldots&::=&a\,\mid\,\langle t,s\rangle\,\mid\,{s}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}\,\mid\,\lambda a.\,t\,\mid\,t\,{\color[rgb]{0,0,1}\bullet}\,s\,\mid\,t{\color[rgb]{1,0,0}\blacktriangledown}s\\ (\text{Case contexts})&\mathsf{L}&::=&\Box\,\mid\,{\mathsf{L}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}\end{array} Terms include standard constructs of linear \lambda -calculus: linear variables a,b,\ldots , ranging over a countably infinite set; tensor introduction \langle t,s\rangle and elimination {t}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}} ; lambda abstraction \lambda a.\,t and application t\,{\color[rgb]{0,0,1}\bullet}\,s . Moreover, they include a novel constructor: the contra-application t{\color[rgb]{1,0,0}\blacktriangledown}s . From the logical point of view, application and contra-application both correspond to eliminations of the implication. As mentioned before, while application corresponds to modus ponens, contra-application corresponds to modus tollens. Free and bound occurrences of variables are defined as expected, where {t}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}} binds free occurrences of a,b in t , and \lambda a.\,t binds free occurrences of a in t . Terms are considered up to \alpha -renaming of bound variables. Case contexts are sequences of tensor eliminations with a subterm hole ( \Box ) that can be filled by any given \lambda_{\textsf{{MLL}}} term. We write {\mathsf{L}}\bm{\langle}{t}\bm{\rangle} (or also t\mathsf{L} ) for the term resulting from replacing the unique occurrence of the hole in \mathsf{L} with t , possibly capturing free variables in t in the process. We shall use case contexts for reduction at a distance. Typing judgements are of the form \Gamma\vdash t:A where A is a MLL formula and \Gamma is a typing environment , a partial function mapping variables to MLL formulae, written \Gamma=(a_{1}:A_{1},\ldots,a_{n}:A_{n}) and assumed to be of finite domain. Valid judgements are given by: Definition 3 (Valid \lambda_{\textsf{{MLL}}} typing judgements) . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 23.63292pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=53.90475pt\hbox{\kern 3.06668pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle a:A\vdash a:A$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash t:A\quad\Gamma^{\prime}\vdash s:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=86.41281pt\hbox{\kern 3.06668pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 3.3332pt\hbox{$\displaystyle\Gamma,\Gamma^{\prime}\vdash\langle t,s\rangle:A\otimes B$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash t:A\otimes B\quad\Gamma^{\prime},a:A,b:B\vdash s:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=159.99475pt\hbox{\kern 3.06668pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 35.44757pt\hbox{$\displaystyle\Gamma,\Gamma^{\prime}\vdash{s}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}:C$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 7.08336pt\hbox{$\displaystyle\penalty\Gamma,a:A\vdash t:B$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=77.67792pt\hbox{\kern 3.06668pt$\textsc{{m-i$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash\lambda a.\,t:A\multimap B$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash t:A\multimap B\quad\Gamma^{\prime}\vdash s:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=110.57939pt\hbox{\kern 3.06668pt$\textsc{{m-e$\multimap_{1}$}}$}}}\hbox{\kern 23.33325pt\hbox{$\displaystyle\Gamma,\Gamma^{\prime}\vdash t\,{\color[rgb]{0,0,1}\bullet}\,s:B$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash t:A\multimap B\quad\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=116.91618pt\hbox{\kern 3.06668pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 25.58664pt\hbox{$\displaystyle\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\blacktriangledown}s:A^{\perp}$}}}}\end{array} Rules are presented in introduction/elimination pairs style of natural deduction, where the most noteworthy point is that linear implication admits two different elimination rules. The first, m-e \multimap_{1} (modus ponens) corresponds to the standard application of terms from \lambda -calculus. The second, m-e \multimap_{2} (modus tollens) is the typing rule of our new construct, contra-application. This latter is the only strictly classical rule in our typing system. The following result justifies that the \lambda_{\textsf{{MLL}}} calculus corresponds to MLL from the point of view of propositions-as-types. The statement of the lemma relies on an abuse of notation: if \Gamma is a multiset of formulae \Gamma=(A_{1},\ldots,A_{n}) , we write \Gamma^{\perp}\vdash t:B to mean a_{1}:A_{1}^{\perp},\ldots,a_{n}:A_{n}^{\perp}\vdash t:B where a_{1},\ldots,a_{n} is a set of distinct linear variables. Lemma 4 (name=Soundness and Completeness of \lambda_{\textsf{{MLL}}} [Proof on pg. A ] , restate=[name=Completeness and Soundness of \lambda_{\textsf{{MLL}}} ]CompletenessSoundnessMLL) . • Soundness. If \Gamma\vdash t:A holds in \lambda_{\textsf{{MLL}}} then \vdash{\Gamma^{\perp},A} holds in MLL . • Completeness. If \vdash{\Gamma_{0}} holds in MLL and \Gamma,A is any permutation of \Gamma_{0} , there exists a term t such that \Gamma^{\perp}\vdash t:A holds in \lambda_{\textsf{{MLL}}} . Note that if a sequent \vdash{A_{1},\ldots,A_{n}} holds in MLL , completeness allows to select any of the A_{i} as the thesis, leaving the negation of the remaining formulae ( A_{1}^{\perp},\ldots,A_{i-1}^{\perp},A_{i+1}^{\perp},\ldots,A_{n}^{\perp} ) as the hypotheses. For example, the valid MLL sequent \vdash{A^{\perp},B^{\perp},A\otimes B} has three possible “readings” in \lambda_{\textsf{{MLL}}} , all of them valid. Completeness simultaneously ensures the existence of three terms t_{1} , t_{2} , t_{3} such that a:B,b:A\multimap B^{\perp}\vdash t_{1}:A^{\perp} and a:A,b:A\multimap B^{\perp}\vdash t_{2}:B^{\perp} and a:A,b:B\vdash t_{3}:A\otimes B . Moreover, the proof of completeness is constructive, so from the derivation in MLL the terms t_{1} , t_{2} , and t_{3} can be effectively recovered. Remark 5 . Completeness fails if m-e \multimap_{2} is absent. For example, is easy to see that the sequent \vdash{A\otimes(C\multimap C),A^{\perp}\otimes(B\multimap B)} is valid in MLL . However, there is no term t and variable a such that a:A\multimap(C\otimes C^{\perp})\vdash t:A^{\perp}\otimes(B\multimap B) or a:A^{\perp}\multimap(B\otimes B)\vdash t:A\otimes(C\multimap C) are derivable in \lambda_{\textsf{{MLL}}} if m-e \multimap_{2} is absent. Both are derivable in \lambda_{\textsf{{MLL}}} . For example: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty a:A\multimap(C\otimes C^{\perp})\vdash a:A\multimap(C\otimes C^{\perp})\quad\cdot\vdash\lambda c.\,c:C\multimap C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=251.51198pt\hbox{\kern 3.06668pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 49.8914pt\hbox{$\displaystyle a:A\multimap(C\otimes C^{\perp})\vdash a{\color[rgb]{1,0,0}\blacktriangledown}(\lambda c.\,c):A^{\perp}$}}}}\end{array}\quad\cdot\vdash\lambda b.\,b:B\multimap B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=379.92148pt\hbox{\kern 3.06668pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 76.02325pt\hbox{$\displaystyle a:A\multimap(C\otimes C^{\perp})\vdash\langle a{\color[rgb]{1,0,0}\blacktriangledown}(\lambda c.\,c),\lambda b.\,b\rangle:A^{\perp}\otimes(B\multimap B)$}}}}\end{array} Linear terms. A term is linear if each free variable occurs exactly once, and there is exactly one occurrence of each bound variable inside the scope of its binder. Typable terms are linear: If \Gamma\vdash t:B , then t is linear and the variables in \Gamma are exactly the free variables of t . Substitution and contra-substitution. Reduction semantics for the \lambda_{\textsf{{MLL}}} -calculus relies on two substitution operations. First, linear substitution t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}} denotes the standard capture-avoiding substitution of a linear variable a by a term s in t . This operation is compatible with typing in the sense that if \Gamma,a:A\vdash t:B and \Gamma^{\prime}\vdash s:A hold in \lambda_{\textsf{{MLL}}} , then so does \Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}:B . Second, we introduce contra-substitution , written t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} . Definition 6 (Contra-substitution for \lambda_{\textsf{{MLL}}} ) . Let t be a linear term and let a be a free linear variable such that a\in\mathsf{fv}(t) . Let us write “ \bm{\ast}_{i} ” to abbreviate the condition a\in\mathsf{fv}(t_{i}) . The contra-substitution operation t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} is defined by induction on the structure of t : \begin{array}[]{r@{\,\,}c@{\,\,}l@{\HS}r@{\,\,}c@{\,\,}l}\lx@intercol a{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:=s\hskip 28.45274pt(t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{2}{\color[rgb]{1,0,0}\bm{]}}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:=\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{2}{\color[rgb]{1,0,0}\bm{]}}&\text{if $\bm{\ast}_{1}$, $a\notin\{b,c\}$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\lambda b.\,t_{1}{\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}}&\text{if $\bm{\ast}_{2}$}\end{cases}\hfil\lx@intercol\\ (\lambda b.\,t^{\prime}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&{t^{\prime}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash c{\color[rgb]{1,0,0}\bm{\}}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\hfil\quad&\langle t_{1},t_{2}\rangle{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\blacktriangledown}t_{2}{\color[rgb]{1,0,0}\bm{\}}}&\text{if $\bm{\ast}_{1}$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s\,{\color[rgb]{0,0,1}\bullet}\,t_{1}{\color[rgb]{1,0,0}\bm{\}}}&\text{if $\bm{\ast}_{2}$}\end{cases}\\ (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle t_{2},s\rangle{\color[rgb]{1,0,0}\bm{\}}}&\text{if $\bm{\ast}_{1}$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s{\color[rgb]{1,0,0}\bm{\}}}&\text{if $\bm{\ast}_{2}$}\end{cases}\hfil\quad&(t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle s,t_{2}\rangle{\color[rgb]{1,0,0}\bm{\}}}&\text{if $\bm{\ast}_{1}$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}\,{\color[rgb]{0,0,1}\bullet}\,s{\color[rgb]{1,0,0}\bm{\}}}&\text{if $\bm{\ast}_{2}$}\end{cases}\end{array} For example, (\lambda b.\,a\,{\color[rgb]{0,0,1}\bullet}\,b){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}=(a\,{\color[rgb]{0,0,1}\bullet}\,b){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash c{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}}=a{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle b,c\rangle{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}}=\langle b,c\rangle{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}} . Contra-substitution too is compatible with typing: Lemma 7 (name=Type Compatibility of Contra-substitution for MLL [Proof on pg. A ] , restate=[name=Type Compatibility of Contrasubstitution for MLL]ContrasubstitutionLemmaMLL) . If \Gamma,a:A\vdash t:B and \Gamma^{\prime}\vdash s:B^{\perp} hold in \lambda_{\textsf{{MLL}}} , then so does \Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp} . Reduction in \lambda_{\textsf{{MLL}}} . The reduction relation \to in the \lambda_{\textsf{{MLL}}} -calculus is defined over linear terms , as the contextual closure of the three following reduction rules: \begin{array}[]{llll}(\lambda a.\,t)\mathsf{L}\,{\color[rgb]{0,0,1}\bullet}\,s&\mapsto_{\mathsf{{\beta}{\lambda}{L}}}&t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}\\ (\lambda a.\,t)\mathsf{L}{\color[rgb]{1,0,0}\blacktriangledown}s&\mapsto_{\mathsf{{\beta}{\lambda}{R}}}&t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}\mathsf{L}\\ {t}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle s,r\rangle\mathsf{L}{\color[rgb]{1,0,0}\bm{]}}&\mapsto_{\mathsf{{\beta}{\otimes}}}&t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}&\text{($b\notin\mathsf{fv}(s)$)}\end{array} Note that the restriction over linear terms is necessary for the right-hand side of the rule \mapsto_{\mathsf{{\beta}{\lambda}{R}}} to be well-defined, as contra-substitution is not defined for arbitrary terms. Due to the presence of the case contexts, these rules are said to operate “at a distance”. For example, (\lambda a.\,t){\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=r{\color[rgb]{1,0,0}\bm{]}}\,{\color[rgb]{0,0,1}\bullet}\,s is a redex, even though the \lambda -abstraction and the application are not directly in “contact” with each other. Strong normalization and confluence. We define the size of a linear term t , denoted \mathsf{sz}(t) , as the number of term constructors in t . Assuming that a\in\mathsf{fv}(t) , this measure satisfies the following two properties: \mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}})=\mathsf{sz}(t)+\mathsf{sz}(s) and \mathsf{sz}(t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}})=\mathsf{sz}(t)+\mathsf{sz}(s) , due to linearity. It is then easy to see that every reduction step strictly decreases the size of the term; hence the \lambda_{\textsf{{MLL}}} -calculus is strongly normalizing. By Newman’s Lemma, confluence is then reduced to local confluence ( i.e. the weak Church–Rosser property), which can be proved through a systematic case analysis of all coinitial steps. Proposition 8 . \lambda_{\textsf{{MLL}}} is strongly normalizing and confluent. 4 A Contraposition-Based Calculus for MELL This section presents \lambda_{\textsf{{MELL}}} , our propositions-as-types calculus based on contra-substitution for MELL . The set of terms and positive elimination contexts are given by: \begin{array}[]{llrll}(\text{Terms})&t,s,\ldots&::=&a\,|\,u\,|\,\langle t,s\rangle\,|\,t{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\,|\,{\invamp}(a,b).t\,|\,t\,{\color[rgb]{0,0,1}\bullet}\,s\,|\,t{\color[rgb]{1,0,0}\blacktriangledown}s\\ &&\mid&{!}{a.t}\,|\,t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}}\,|\,{?}u.t\,|\,{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s}\,|\,t\lightning s\,|\,\star\,|\,t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}\\ (\text{Positive elim. contexts})&\mathsf{L}&::=&\Box\,|\,\mathsf{L}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}\,|\,\mathsf{L}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}}\,|\,\mathsf{L}{\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}}\end{array} Terms include: linear variables a,b,\ldots ranging over a countably infinite set; unrestricted variables u,v,\ldots ranging over a countably infinite set; tensor introduction \langle t,s\rangle and elimination t{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}} ; par introduction {\invamp}(a,b).t ; application t\,{\color[rgb]{0,0,1}\bullet}\,s ; contra-application t{\color[rgb]{1,0,0}\blacktriangledown}s ; of-course introduction {!}{a.t} and elimination t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}} ; why-not introduction {?}u.t and elimination {t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s} ; contradiction t\lightning s ; unit introduction \star and elimination t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}} . Free and bound occurrences of variables are defined as expected, where t{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}} and {\invamp}(a,b).t binds free occurrences of a,b in t ; {!}{a.t} and {t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s} bind free occurrences of a in t ; and t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}} and {?}u.t bind free occurrences of u in t . Terms are considered up to \alpha -renaming of bound variables. We call expressions of the form {\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}} , {\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}} , and {\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}} positive eliminators 2 2 2 This terminology stems from polarized linear logic. . Positive eliminators are collectively denoted by {\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=t{\color[rgb]{1,0,0}\bm{]}} , where \mathtt{p} is called a pattern , and \mathsf{fv}(\mathtt{p}) is defined as: \mathsf{fv}(\langle a,b\rangle)=\{a,b\} , \mathsf{fv}({!}{u})=\{u\} , and \mathsf{fv}(\star)=\varnothing . Judgements have the form \Delta;\Gamma\vdash t:A , where A is a MELL formula, \Delta (resp. \Gamma ) is an unrestricted (resp. linear) typing environment , i.e. a partial function mapping unrestricted (resp. linear) variables to types. Derivable judgements are defined in Fig. 1 . \begin{array}[]{c}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 30.0218pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=66.68253pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;a:A\vdash a:A$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 31.84943pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=70.33777pt\hbox{\kern 3.00003pt$\textsc{{m-uax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta,u:A;\cdot\vdash u:A$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:A\quad\Delta;\Gamma^{\prime}\vdash s:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=111.96835pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 9.72209pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash\langle t,s\rangle:A\otimes B$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash s:A\otimes B\quad\Delta;\Gamma^{\prime},a:A,b:B\vdash t:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=185.5503pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 41.83646pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash{t}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}:C$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 6.16678pt\hbox{$\displaystyle\penalty\Delta;\Gamma,a:A,b:B\vdash t:{\perp}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=110.4141pt\hbox{\kern 3.00003pt$\textsc{{m-i$\invamp$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash{\invamp}(a,b).t:A^{\perp}\invamp B^{\perp}$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:A\invamp B\quad\Delta;\Gamma^{\prime}\vdash s:A^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.1627pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{1}$}}$}}}\hbox{\kern 30.23602pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t\,{\color[rgb]{0,0,1}\bullet}\,s:B$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:A\invamp B\quad\Delta;\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.7495pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{2}$}}$}}}\hbox{\kern 32.48941pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\blacktriangledown}s:A$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;a:A\vdash t:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=62.23003pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}}$}}}\hbox{\kern 3.65259pt\hbox{$\displaystyle\Delta;\cdot\vdash{!}{a.t}:{!}{A^{\perp}}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash s:{!}{A}\quad\Delta,u:A;\Gamma^{\prime}\vdash t:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.97064pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 23.1943pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:A^{\perp};\Gamma\vdash t:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=79.11314pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 7.45822pt\hbox{$\displaystyle\Delta;\Gamma\vdash{?}u.t:{?}A$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash s:{?}A\quad\Delta;a:A\vdash t:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=125.3896pt\hbox{\kern 3.00003pt$\textsc{{m-e${?}$}}$}}}\hbox{\kern 31.75171pt\hbox{$\displaystyle\Delta;\Gamma\vdash{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s}:{\perp}$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:B\quad\Delta;\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=118.30515pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 21.23952pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t\lightning s:{\perp}$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.06947pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=32.77786pt\hbox{\kern 3.00003pt$\textsc{{m-i$\text{1}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\cdot\vdash\star:\text{1}$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash s:\text{1}\quad\Delta;\Gamma^{\prime}\vdash t:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=106.10385pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 9.30548pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array}\end{array} Figure 1: Typing rules for \lambda_{\textsf{{MELL}}} . Discussion. Rules are presented in introduction/elimination pairs, as is standard in natural deduction. In particular, bottom has no introduction rules. Our presentation satisfies Local Intrinsic Harmony [ 15 , 17 ] : local soundness (elimination rules are not “too strong”) and local completenes (elimination rules are not “too weak”). If \lambda a.\,t is shorthand for {\invamp}(a,b).(t\lightning b) , then it is possible to add the rule in which \Delta;\Gamma\vdash\lambda a.\,t:A^{\perp} is inferred from \Delta;\Gamma,a:A\vdash t:{\perp} and drop all of m-e \otimes , m-e \invamp_{1} , m-e \invamp_{2} , m-e {!}{} , m-e {?} and m-e 1 (which become derivable), in the style of [ 7 ] for classical propositional logic. However, the reduction semantics introduces critical pairs that lead to failure of confluence 3 3 3 E.g. , if u:{\perp}\invamp{\perp} and v:{\perp}\invamp\text{1} , then (\lambda a.\,u\,{\color[rgb]{0,0,1}\bullet}\,a)\lightning(\lambda b.\,v{\color[rgb]{1,0,0}\blacktriangledown}b) reduces to both u\,{\color[rgb]{0,0,1}\bullet}\,(\lambda b.\,v{\color[rgb]{1,0,0}\blacktriangledown}b) and v{\color[rgb]{1,0,0}\blacktriangledown}(\lambda a.\,u\,{\color[rgb]{0,0,1}\bullet}\,a) . , so we abstain from doing so. There are many alternative ways to formulate natural deduction for MELL . Although these alternatives may be logically equivalent ( i.e. they prove all and only valid MELL sequents), they exhibit different computational behaviors. The rules in \lambda_{\textsf{{MELL}}} have been carefully chosen to be able to define a well-behaved contra-substitution operation. Lemma 9 (name=Soundness and Completeness of \lambda_{\textsf{{MELL}}} [Proof on pg. B ] , restate=[name=Logical soundness/completeness of \lambda_{\textsf{{MELL}}} ]SoundnessAndCompletenessOfCalcMELL) . • Soundness. If \Delta;\Gamma\vdash t:A holds in \lambda_{\textsf{{MELL}}} , then \vdash{{?}\Delta^{\perp},\Gamma^{\perp},A} holds in MELL . • Completeness. If \vdash{\Gamma_{0}} holds in MELL and \Gamma,A is any permutation of \Gamma_{0} , there exists a term t such that \cdot;\Gamma^{\perp}\vdash t:A holds in \lambda_{\textsf{{MELL}}} . Substitution and contra-substitution. Reduction semantics for the \lambda_{\textsf{{MELL}}} -calculus relies on three notions of substitution: linear substitution ( t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}} ), unrestricted substitution ( t{\color[rgb]{0,0,1}\bm{\{}}u:=s{\color[rgb]{0,0,1}\bm{\}}} ) and contra-substitution ( t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} ). Linear (resp. unrestricted) substitution is just capture-avoiding substitution of a linear (resp. unrestricted) variable by a term. To define contra-substitution, we need to adapt the notion of linear term to the \lambda_{\textsf{{MELL}}} -calculus. A \lambda_{\textsf{{MELL}}} term is linear if each of the following hold: 1) each free linear variable occurs exactly once; 2) there is exactly one occurrence of each bound linear variable in the scope of its binder; 3) subterms of the form {!}{a.t} have no free linear variables; and 4) in subterms of the form {t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s} , only a occurs as a free linear variable in t . Definition 10 (Contra-substitution) . The operation t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} is defined over linear terms by dropping the clauses of Def. 6 for lambda abstraction and tensor elimination and adding the ones of Fig. 2 . For example: (({\invamp}(c,d).s){\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}\,{\color[rgb]{0,0,1}\bullet}\,t){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}=({\invamp}(c,d).s){\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle t,\star\rangle{\color[rgb]{1,0,0}\bm{\}}}=a{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{\invamp}(c,d).s\lightning\langle t,\star\rangle{\color[rgb]{1,0,0}\bm{\}}}={\invamp}(c,d).s\lightning\langle t,\star\rangle . Contra-substitution is compatible with typing: Lemma 11 (name=Type Compatibility of Contra-substitution [Proof on pg. B ] , restate=[name=Type Compatibility of Contrasubstitution]ContrasubstitutionLemma) . If \Delta;\Gamma,a:A\vdash t:B and \Delta;\Gamma^{\prime}\vdash s:B^{\perp} hold in \lambda_{\textsf{{MELL}}} , then so does \Delta;\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp} . \begin{array}[]{rcl}(t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{2}{\color[rgb]{1,0,0}\bm{]}}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{2}{\color[rgb]{1,0,0}\bm{]}}&\text{if $a\in\mathsf{fv}(t_{1}),a\notin\{b,c\}$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{\invamp}(b,c).(t_{1}\lightning s){\color[rgb]{1,0,0}\bm{\}}}&\text{if $a\in\mathsf{fv}(t_{2})$}\end{cases}\\ ({\invamp}(b,c).t){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\\ ({!}{b.t}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\text{(impossible, as ${!}{b.t}$ has no free linear variables)}\\ t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}&\text{if $a\in\mathsf{fv}(t_{1})$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{?}u.t_{1}\lightning s{\color[rgb]{1,0,0}\bm{\}}}&\text{if $a\in\mathsf{fv}(t_{2})$}\\ \end{cases}\\ ({?}u.t){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}}\\ ({t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{b}t_{2}}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}\text{(impossible as $\mathsf{flv}(t_{1})=\{b\}$ and $a\neq b$)}&\text{if $a\in\mathsf{fv}(t_{1})$ }\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{!}{b.t_{1}}{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}&\text{if $a\in\mathsf{fv}(t_{2})$}\\ \end{cases}\\ (t_{1}\lightning t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{2}{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}&\text{if $a\in\mathsf{fv}(t_{1})$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}&\text{if $a\in\mathsf{fv}(t_{2})$}\end{cases}\\ \star{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\text{(impossible, as $\star$ has no free linear variables)}\\ t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}&:=&\begin{cases}t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}&\text{if $a\in\mathsf{fv}(t_{1})$}\\ t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}\lightning s{\color[rgb]{1,0,0}\bm{\}}}&\text{if $a\in\mathsf{fv}(t_{2})$}\end{cases}\end{array} Figure 2: Contra-substitution for \lambda_{\textsf{{MELL}}} : we take the clauses of Def. 6 , drop those of lambda abstraction and tensor elimination, and add the ones above. Reduction Semantics. Reduction in \lambda_{\textsf{{MELL}}} is defined modulo an equivalence relation on terms called structural equivalence . We begin by presenting pre-reduction (Def. 12 ), in which structural equivalence is absent, then structural equivalence (Def. 13 ) and finally reduction proper (Def. 16 ). Definition 12 (Pre-Reduction in \lambda_{\textsf{{MELL}}} ) . Denoted \to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-} , it is given by the contextual closure of the following reduction axioms , where both sides are assumed to be typed with the same types in the same contexts. \begin{array}[]{llll}({\invamp}(a,b).t)\mathsf{L}\,{\color[rgb]{0,0,1}\bullet}\,r&\mapsto_{\mathsf{{\beta}{\invamp}{L}}}&t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\mathsf{L}&\text{($b\notin\mathsf{fv}(r)$)}\\ ({\invamp}(a,b).t)\mathsf{L}{\color[rgb]{1,0,0}\blacktriangledown}r&\mapsto_{\mathsf{{\beta}{\invamp}{R}}}&t{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\mathsf{L}&\text{($a\notin\mathsf{fv}(r)$)}\\ t{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle s,r\rangle\mathsf{L}{\color[rgb]{1,0,0}\bm{]}}&\mapsto_{\mathsf{{\beta}{\otimes}}}&t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}&\text{($b\notin\mathsf{fv}(s)$)}\\ t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=({!}{a.s})\mathsf{L}{\color[rgb]{1,0,0}\bm{]}}&\mapsto_{\mathsf{{\beta}{{!}{}}}}&t{\color[rgb]{0,0,1}\bm{\{}}u:=s{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}\\ {t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}({?}u.s)\mathsf{L}}&\mapsto_{\mathsf{{\beta}{{?}}}}&s{\color[rgb]{0,0,1}\bm{\{}}u:=t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}\\ ({\invamp}(a,b).t)\mathsf{L}\lightning\langle s,r\rangle\mathsf{K}&\mapsto_{\mathsf{{\invamp}{\otimes}}}&t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}\mathsf{K}&\text{($b\notin\mathsf{fv}(s)$)}\\ \langle s,r\rangle\mathsf{L}\lightning({\invamp}(a,b).t)\mathsf{K}&\mapsto_{\mathsf{{\otimes}{\invamp}}}&t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}\mathsf{K}&\text{($b\notin\mathsf{fv}(s)$)}\\ ({!}{a.t})\mathsf{L}\lightning({?}u.r)\mathsf{K}&\mapsto_{\mathsf{{{!}{}}{{?}}}}&r{\color[rgb]{0,0,1}\bm{\{}}u:=t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}\mathsf{K}\\ ({?}u.r)\mathsf{L}\lightning({!}{a.t})\mathsf{K}&\mapsto_{\mathsf{{{?}}{{!}{}}}}&r{\color[rgb]{0,0,1}\bm{\{}}u:=t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L}\mathsf{K}\par\par\par\par\par\end{array} Discussion. The first five reduction axioms correspond to introduction/elimination pairs. The remaining ones are akin to principal cut elimination cases, and are required for confluence (though they are not sufficient, as discussed below). The order in which substitutions and contra-substitutions are presented on the right-hand side of {\mathsf{{\beta}{\invamp}{L}}} , \mathsf{{\beta}{\invamp}{R}} , \mathsf{{\beta}{\otimes}} , \mathsf{{\invamp}{\otimes}} , and \mathsf{{\otimes}{\invamp}} is unimportant since t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}=t{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}} , given that b\notin\mathsf{fv}(r) and also t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}=t{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}} , since b\notin\mathsf{fv}(s) . Pre-reduction is not confluent even in the presence of the last four reduction axioms. Consider t=\overline{({\invamp}(a,b).\underline{({\invamp}(c,d).s){\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}\,{\color[rgb]{0,0,1}\bullet}\,p}){\color[rgb]{1,0,0}\blacktriangledown}r} , where, say, b\in\mathsf{fv}(s) . It may be reduced in two ways: {\lx@inpgf@ignorespaces({\invamp}(a,b).s{\color[rgb]{0,0,1}\bm{\{}}c:=p{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}d\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}){\color[rgb]{1,0,0}\blacktriangledown}r} {\lx@inpgf@ignorespaces t} {\lx@inpgf@ignorespaces\begin{array}[]{@{}l@{}}s{\color[rgb]{0,0,1}\bm{\{}}c:=p{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}d\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}\lightning\star\\ \\ s{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}c:=p{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}d:=\star{\color[rgb]{0,0,1}\bm{\}}}\end{array}} {\lx@inpgf@ignorespaces{\invamp}(c,d).s{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}\lightning\langle p,\star\rangle} \scriptstyle{\lx@inpgf@ignorespaces\mathsf{{\beta}{\invamp}{R}}} \scriptstyle{\lx@inpgf@ignorespaces\mathsf{{\beta}{\invamp}{L}}} \scriptstyle{\lx@inpgf@ignorespaces\mathsf{{\beta}{\invamp}{R}}} \scriptstyle{\lx@inpgf@ignorespaces\mathsf{{\invamp}{\otimes}}} The terms s{\color[rgb]{0,0,1}\bm{\{}}c:=p{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}d\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}\lightning\star and s{\color[rgb]{0,0,1}\bm{\{}}b:=p{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}c:=p{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}d:=\star{\color[rgb]{0,0,1}\bm{\}}} are distinct. For a term t of type {\perp} , equating t\lightning\star and t would be reasonable. We next introduce a notion of equivalence of terms that introduces this and other equations. As it turns out, this notion of equivalence is a strong bisimulation with respect to pre-reduction. 4.1 Structural equivalence Definition 13 (Structural Equivalence) . Surface contexts S are any of the following expressions: {\invamp}(a,b).\Box\quad\quad\langle\Box,t\rangle\quad\quad\langle t,\Box\rangle\quad\quad\Box\,{\color[rgb]{0,0,1}\bullet}\,t\quad\quad t\,{\color[rgb]{0,0,1}\bullet}\,\Box\quad\quad\Box{\color[rgb]{1,0,0}\blacktriangledown}t\quad\quad t{\color[rgb]{1,0,0}\blacktriangledown}\Box \Box\lightning t\quad\quad t\lightning\Box\quad\quad{?}u.\Box\quad\quad\Box{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=t{\color[rgb]{1,0,0}\bm{]}}\quad\quad t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=\Box{\color[rgb]{1,0,0}\bm{]}}\quad\quad{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}\Box} Note that {\Box{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t} , and {!}{a.\Box} are excluded from the set of surface contexts. A term r is free for a surface context S if {\textsf{S}}\bm{\langle}{r}\bm{\rangle} does not bind free occurrences of variables of r . Structural equivalence is defined as the reflexive, symmetric, transitive and contextual closure of the following axioms. In every equation, both sides are assumed to be typed with the same types in the same contexts: \begin{array}[]{llll}{\textsf{S}}\bm{\langle}{t}\bm{\rangle}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}&\equiv_{\mathsf{Prop}}&{\textsf{S}}\bm{\langle}{t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}}\bm{\rangle}&(\mathsf{fv}(\mathtt{p})\cap\mathsf{fv}(\textsf{S})=\varnothing\mbox{ and }r\mbox{ is free for }\textsf{S})\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}&\equiv_{\beta\mathsf{\star}}&t\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}&\equiv_{\mathsf{\mathsf{Symm}\star}}&s{\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}}\\ t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning r&\equiv_{\mathsf{split}}&t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}\\ \end{array} Discussion. The first equation allows positive eliminators to be propagated freely. Though note that \mathsf{Prop} does not propagate eliminators under the of-course constructor {!}{a.t} or into the left argument of a why-not eliminator {t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s} (which are the non-linear positions). The second equation corresponds the introduction/elimination roundabout on 1 ; it is not well-behaved as a reduction rule and thus is modeled as an equation. The third equation allows terms t and s both of which have type 1 to be commuted freely in their placement in an eliminator for this type. In fact, t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}\equiv t\lightning s holds whenever t:{\perp} . The fourth equation states that any term of type {\perp} may be understood as stemming from a contradiction. It is crucial in relating contra-substitution and substitution. In particular, if t:{\perp} , then t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}} . We emphasize that these equations apply to typed terms. For example, \mathsf{\mathsf{Symm}\star} should be read as: if \Delta;\Gamma\vdash s:\text{1} and \Delta;\Gamma^{\prime}\vdash t:\text{1} , then \Delta;\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}\equiv s{\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}}:\text{1} . Structural equivalence is consistent as a theory due to the fact that t\equiv s implies \mathsf{fv}(t)=\mathsf{fv}(s) and hence a\equiv b is not derivable, for arbitrary linear variables a and b such that a\neq b . Also, all our notions of substitution are compatible with structural equivalence. In particular, if s\equiv r then both t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}} and s{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}}\equiv r{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}} . The proof of this fact relies on a series of auxiliary results involving all three notions of substitution and their interaction with \equiv . We highlight two of these which we find worthy of mention since they relate linear substitution and contra-substitution. Let \{t,s,r\} be a set of linear terms such that a\in\mathsf{fv}(t) and let b\neq a be such that b\in\mathsf{fv}(t)\cup\mathsf{fv}(s) . Then: 1. If b\in\mathsf{fv}(t) , then t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}} 2. If b\in\mathsf{fv}(s) , then t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\equiv s{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}} 3. If b\in\mathsf{fv}(s) , then s{\color[rgb]{0,0,1}\bm{\{}}b:=t{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}} The main result in this section is that structural equivalence is a strong bisimulation for pre-reduction. The importance of this result is that it allows to lift the notion of reduction on terms to equivalence classes of terms modulo \equiv . Theorem 14 (name=Strong bisimulation [Proof on pg. C.2 ] , restate=[name=Strong bisimulation]StrongBisimulation) . Let t,s be two typed linear terms. If t\equiv s and t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}t^{\prime} then there is a linear term s^{\prime} such that s\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s^{\prime} and t^{\prime}\equiv s^{\prime} . The proof of Thm. 14 (and other results involving this notion of equivalence) is complicated by the presence of contra-substitution and substitution in the last equation \mathsf{split} . The proof is developed around an alternative characterization of structural equivalence where contra-substitution and substitution are absent from its axioms ( cf. Def. 45 in the appendix). The following lemma exhibits some of the most interesting derived equations ( cf. Lem. 46 in the appendix): Lemma 15 (Some derived equations in \equiv ) . \begin{array}[]{cc}\begin{array}[]{r@{\,\,\,\,}l@{\,\,\,\,}ll}\star\lightning t&\equiv&t&\text{(if $t:{\perp}$)}\\ t\lightning s&\equiv&s\lightning t&\\ t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}&\equiv&t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}&\\ \langle r,t\rangle\lightning s&\equiv&r\lightning(s{\color[rgb]{1,0,0}\blacktriangledown}t)\\ \langle t,r\rangle\lightning s&\equiv&r\lightning(s\,{\color[rgb]{0,0,1}\bullet}\,t)\\ (s\,{\color[rgb]{0,0,1}\bullet}\,t)\lightning r&\equiv&t\lightning(s{\color[rgb]{1,0,0}\blacktriangledown}r)\\ ({\invamp}(a,b).s)\lightning t&\equiv&s{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}\end{array}&\begin{array}[]{r@{\,\,\,\,}l@{\,\,\,\,}ll}({?}u.t)\lightning r&\equiv&t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=r{\color[rgb]{1,0,0}\bm{]}}\\ ({!}{a.t}){\color[rgb]{1,0,0}\bm{[}}\star:=p{\color[rgb]{1,0,0}\bm{]}}\lightning r&\equiv&p\lightning({t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}r})&\\ ({!}{a.t})\lightning r&\equiv&{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}r}&\\ (s\lightning t)\lightning r&\equiv&s\lightning t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}&\equiv&t\lightning s&\text{(if $t:{\perp}$)}\\ \star{\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}}&\equiv&t&\\ t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}&\equiv&t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}&\text{(if $t:{\perp}$)}\end{array}\end{array} We now define reduction for the \lambda_{\textsf{{MELL}}} -calculus. Definition 16 ( \lambda_{\textsf{{MELL}}} -Reduction) . Reduction in \lambda_{\textsf{{MELL}}} is defined as pre-reduction modulo structural equivalence: t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}{}s , iff there exist terms t^{\prime} and s^{\prime} such that t\equiv t^{\prime}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s^{\prime}\equiv s . Reduction in \lambda_{\textsf{{MELL}}} enjoys the subject reduction property: Lemma 17 (name= [Proof on pg. C.2 ] , restate=[name=Subject Reduction]SubjectReduction) . \Delta;\Gamma\vdash t:A and t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}s implies \Delta;\Gamma\vdash s:A . 4.2 Strong Normalization and Confluence We prove strong normalization for \lambda_{\textsf{{MELL}}} using the technique of reducibility candidates. Preliminaries. Let {\cal T}_{A}:=\{t\ |\ \exists\Delta,\Gamma.\,\,\Delta;\Gamma\vdash t:A\} denote the set of terms of type A , and let \textrm{SN}_{A}:=\{t\in{\cal T}_{A}\ |\ t\ \text{is SN}\} be the subset of those terms that are strongly normalizing (with respect to pre-reduction \to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-} ). If a term t is SN, let |t|\in\mathbb{N} be the length of the longest reduction sequence starting from t (which is well-defined due to König’s Lemma, because \to_{\mathsf{\lambda_{\textsf{{MELL}}}}} is finitely branching). If A is a type and X\subseteq{\cal T}_{A} , we write t\vartriangleleft_{A}X to mean that t\in{\cal T}_{A} implies t\in X . If X\subseteq{\cal T}_{A} , we define its orthogonal by X^{\perp}=\{t\in{\cal T}_{A^{\perp}}\ |\ \forall s\in X.\ t\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot}\} . The following (typical) properties of (\cdot)^{\perp} hold. If X,Y\subseteq{\cal T}_{A} then: 1) X\subseteq Y implies Y^{\perp}\subseteq X^{\perp} ; 2) X\subseteq X^{\perp}{}^{\perp} ; and 3) X^{\perp}=X^{\perp}{}^{\perp}{}^{\perp} . Given sets of typed terms X\subseteq{\cal T}_{A} and Y\subseteq{\cal T}_{B} we define: \begin{array}[]{lll}X\otimes Y&:=&\{\langle t,s\rangle\in{\cal T}_{A\otimes B}\ |\ t\in X\land s\in Y\}\\ {?}X&:=&\{{?}u.t\in{\cal T}_{{?}A^{\perp}}\ |\ \forall s\in X,\ t{\color[rgb]{0,0,1}\bm{\{}}u:=s{\color[rgb]{0,0,1}\bm{\}}}\vartriangleleft_{\bot}\textrm{SN}_{\bot}\}\end{array} Reducibility candidates. To each type A we associate a set of terms \llbracket A\rrbracket\subseteq{\cal T}_{A} called the reducibility candidates of the type A : \begin{array}[]{r@{\,\,}c@{\,\,}l@{\HS}r@{\,\,}c@{\,\,}l@{\HS}r@{\,\,}c@{\,\,}l@{\HS}r@{\,\,}c@{\,\,}l}\llbracket\alpha\rrbracket&:=&\textrm{SN}_{\alpha}\hfil\quad&\llbracket\alpha^{\perp}\rrbracket&:=&\textrm{SN}_{\overline{\alpha}}\hfil\quad&\llbracket A\otimes B\rrbracket&:=&(\llbracket A\rrbracket\otimes\llbracket B\rrbracket)^{\perp}{}^{\perp}\hfil\quad&\llbracket A\invamp B\rrbracket&:=&(\llbracket A^{\perp}\rrbracket\otimes\llbracket B^{\perp}\rrbracket)^{\perp}\\ \llbracket\bot\rrbracket&:=&\textrm{SN}_{\bot}\hfil\quad&\llbracket\text{1}\rrbracket&:=&\textrm{SN}_{\text{1}}\hfil\quad&\llbracket{?}A\rrbracket&:=&({?}\llbracket A^{\perp}\rrbracket)^{\perp}{}^{\perp}\hfil\quad&\llbracket{!}{A}\rrbracket&:=&({?}\llbracket A\rrbracket)^{\perp}\end{array} Given a linear typing environment \Gamma , an unrestricted typing environment \Delta , and a substitution \sigma , we say \sigma is compatible with \Gamma,\Delta , written \sigma\models\Delta,\Gamma , if: 1) for all a:A\in\Gamma we have that \sigma(a)\in\llbracket A\rrbracket ; and 2) for all u:B\in\Delta we have that \sigma(u)\in\llbracket B\rrbracket . Theorem 18 (name=Adequacy [Proof on pg. D ] , restate=[name=Adequacy]Adequacy) . For every valid judgment \Delta;\Gamma\vdash t:A and every \sigma such that \sigma\models\Delta,\Gamma we have that t^{\sigma}\vartriangleleft_{A}\llbracket A\rrbracket . Taking in particular the identity substitution, we obtain strong normalization as a corollary. Confluence. Given that \lambda_{\textsf{{MELL}}} enjoys strong normalization, it suffices to prove that it is weak Church–Rosser to obtain confluence. This can be proved through a tedious case analysis. Proposition 19 . \to_{\mathsf{\lambda_{\textsf{{MELL}}}}} is confluent. Reduction on untyped terms is not confluent. Consider the term \overline{(\lambda a.\,\underline{((\lambda b.\,({\langle b,c\rangle{\color[rgb]{0,0.6,0}\blacktriangleright}^{c}a}))\,{\color[rgb]{0,0,1}\bullet}\,t)}){\color[rgb]{1,0,0}\blacktriangledown}r} . It is not typable since \lambda b.\,\langle b,c\rangle does not have type {\perp} . It may be reduced in two different ways, as indicated by the over and underlining. However, the reducts are not joinable. {\lx@inpgf@ignorespaces\overline{(\lambda a.\,\underline{((\lambda b.\,({\langle b,c\rangle{\color[rgb]{0,0.6,0}\blacktriangleright}^{c}a}))\,{\color[rgb]{0,0,1}\bullet}\,t)}){\color[rgb]{1,0,0}\blacktriangledown}r}} {\lx@inpgf@ignorespaces\lambda a.\,{\langle t,c\rangle{\color[rgb]{0,0.6,0}\blacktriangleright}^{c}a}{\color[rgb]{1,0,0}\blacktriangledown}\,r} {\lx@inpgf@ignorespaces(\lambda b.\,({\langle b,c\rangle{\color[rgb]{0,0.6,0}\blacktriangleright}^{c}a}))\,{\color[rgb]{0,0,1}\bullet}\,t){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}=({!}{c.(\lambda b.\,\langle b,c\rangle)}){\color[rgb]{1,0,0}\bm{[}}\star:=\langle t,r\rangle{\color[rgb]{1,0,0}\bm{]}}} {\lx@inpgf@ignorespaces({!}{c.\langle t,c\rangle}){\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}} \scriptstyle{\lx@inpgf@ignorespaces\mathsf{{\beta}{\invamp}{L}}} \scriptstyle{\lx@inpgf@ignorespaces\mathsf{{\beta}{\invamp}{R}}} \scriptstyle{\lx@inpgf@ignorespaces\mathsf{{\beta}{\invamp}{R}}} \scriptstyle{\lx@inpgf@ignorespaces/} 5 Translations of classical \lambda -calculi into \lambda_{\textsf{{MELL}}} The \lambda_{\textsf{{MELL}}} -calculus is capable of simulating Parigot’s \lambda\mu and Curien and Herbelin’s \overline{\lambda}\mu\tilde{\mu} , as well as Hasegawa’s \mu\textsf{DCLL} (in the appendix due to lack of space). We briefly recall the first two of these calculi below, and introduce appropriate translations to the \lambda_{\textsf{{MELL}}} -calculus. 5.1 Simulation of Parigot’s \lambda\mu via the T and Q translations We briefly recall Parigot’s \lambda\mu -calculus [ 25 ] , obtained via the propositions-as-types paradigm from the term assignment of classical propositional logic in natural deduction with multiple conclusions. Let x,y,\ldots (resp. a,b,\ldots ) range over a countable set of variables (resp. continuation variables ). Types and terms of \lambda\mu are defined as follows: \begin{array}[]{l@{\,\,}r@{\hspace{.2cm}}c@{\hspace{.2cm}}l@{\hspace{1cm}}l@{\,\,}r@{\hspace{.2cm}}c@{\hspace{.2cm}}l}\text{(Types)}&A,B\hskip 5.69046pt&::=\hfil\hskip 5.69046pt&{\perp}\,|\,\alpha\,|\,A\supset B\hfil\hskip 28.45274pt&\text{(Terms)}&M,N\hskip 5.69046pt&::=\hfil\hskip 5.69046pt&x\,|\,\lambda x.\,M\,|\,M\,N\,|\,[a]M\,|\,\mu{a}.M\end{array} Judgements are of the form \Gamma\vdash M:A\mid\Sigma , where \Gamma is a partial function mapping variables to types, and \Sigma is a partial function mapping continuation variables to types. Typing rules are given by: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 39.67337pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=79.34674pt\hbox{\kern 3.00003pt$\textsc{{p-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma,x:A\vdash x:A\mid\Sigma$}}}}\end{array}\hskip 1.99997pt\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.41669pt\hbox{$\displaystyle\penalty\Gamma,x:A\vdash M:B\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=95.84329pt\hbox{\kern 3.00003pt$\textsc{{p-lam}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash\lambda x.\,M:A\supset B\mid\Sigma$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 2.92078pt\hbox{$\displaystyle\penalty\Gamma\vdash M:A\mid\Sigma,a:A$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=89.8353pt\hbox{\kern 3.00003pt$\textsc{{p-name}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash[a]M:{\perp}\mid\Sigma,a:A$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash M:A\supset B\mid\Sigma\quad\Gamma\vdash N:A\mid\Sigma$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=146.6138pt\hbox{\kern 3.00003pt$\textsc{{p-app}}$}}}\hbox{\kern 37.56929pt\hbox{$\displaystyle\Gamma\vdash M\,\,N:B\mid\Sigma$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash M:{\perp}\mid\Sigma,a:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=78.99385pt\hbox{\kern 3.00003pt$\textsc{{p-mu}}$}}}\hbox{\kern 2.40392pt\hbox{$\displaystyle\Gamma\vdash\mu{a}.M:A\mid\Sigma$}}}}\end{array} We write M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd}N{\color[rgb]{0,0.6,0}\bm{\}}} for structural substitution , which replaces subterms of M of the form [a]O by [a](O\,\,N) ; and M{\color[rgb]{0.91,0.41,0.17}\bm{\{}}b{\curvearrowleft}a{\color[rgb]{0.91,0.41,0.17}\bm{\}}} for the renaming of all free occurrences of b in M with a . T-Translation. The T-translation, first introduced by Danos et al. [ 14 ] , embeds classical logic into linear logic. It operates on both formulae and sequent-calculus proofs. Here we extend it to translate \lambda\mu -terms to \lambda_{\textsf{{MELL}}} -terms, in such a way that it simulates reduction. Reduction in \lambda\mu , denoted \to_{\mu} , is defined as the contextual closure of the following rules: \begin{array}[]{llll}(\lambda x.\,M)\,\,N&\mapsto_{\beta}&M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}}\\ (\mu{a}.M)\,\,N&\mapsto_{\mu}&\mu{a}.(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd}N{\color[rgb]{0,0.6,0}\bm{\}}})\\ \end{array} \begin{array}[]{llll}[a](\mu{b}.M)&\mapsto_{\rho}&M{\color[rgb]{0.91,0.41,0.17}\bm{\{}}b{\curvearrowleft}a{\color[rgb]{0.91,0.41,0.17}\bm{\}}}\\ \mu{a}.[a]M&\mapsto_{\theta}&M&(a\notin\mathsf{fv}(M))\end{array} Let us write {!}{t}:={!}{a.(t\lightning a)} . The T-translation of a formula and a \lambda\mu -term are given by: \begin{array}[]{rcl}{{\perp}}^{\mathsf{T}}&:=&{\perp}\\ {\alpha}^{\mathsf{T}}&:=&\alpha\\ {(A\supset B)}^{\mathsf{T}}&:=&{?}{!}{({A}^{\mathsf{T}})^{\perp}}\invamp{?}{B}^{\mathsf{T}}\\ \end{array} \begin{array}[]{rcl}{x}^{\mathsf{T}}_{k}&:=&x\lightning{!}{k}\\ {(\lambda x.\,M)}^{\mathsf{T}}_{k}&:=&{\invamp}(a,b).{M}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}}\lightning k\\ {(M\,N)}^{\mathsf{T}}_{k}&:=&{M}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\langle{!}{{?}k^{\prime\prime}.{N}^{\mathsf{T}}_{k^{\prime\prime}}},{!}{k}\rangle{\color[rgb]{0,0,1}\bm{\}}}\\ {([a]M)}^{\mathsf{T}}_{k}&:=&{M}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=a{\color[rgb]{0,0,1}\bm{\}}}\lightning k\\ {(\mu{a}.M)}^{\mathsf{T}}_{k}&:=&{M}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\star{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=k{\color[rgb]{0,0,1}\bm{\}}}\end{array} Lemma 20 (name=Type preservation [Proof on pg. F.1.1 ] , restate=[name=Type preservation]TypePreservationForTTranslation) . If \Gamma\vdash M:A\mid\Sigma holds in \lambda\mu , then {?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k:({A}^{\mathsf{T}})^{\perp};\cdot\vdash{M}^{\mathsf{T}}_{k}:{\perp} holds in \lambda_{\textsf{{MELL}}} , for k a fresh linear variable. Proposition 21 (name=Simulation [Proof on pg. F.1.1 ] , restate=[name=Simulation]CalcMELLSimulatesCalcParigotViaTTranslation) . If M\to_{\mu}N , then {M}^{\mathsf{T}}_{k}\twoheadrightarrow_{\mathsf{\lambda_{\textsf{{MELL}}}}}{N}^{\mathsf{T}}_{k} . Q-Translation. The Q-translation, introduced also in [ 14 ] , is an alternative embedding of classical logic into linear logic. While the T-translation is a call-by-name translation, it is well-known that the Q-translation is instead a call-by-value translation. To study the Q-translation, we need to first recall a notion of call-by-value reduction for the \lambda\mu -calculus [ 26 ] . The types and terms of \lambda\mu_{V} are the same as those of \lambda\mu . We use the notations M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd}V{\color[rgb]{0,0.6,0}\bm{\}}} for the usual (right-)structural substitution, M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd^{\star}}V{\color[rgb]{0,0.6,0}\bm{\}}} for left-structural substitution. Reduction in \lambda\mu_{V} , denoted \to_{\mu_{V}} , is defined as the contextual closure of the following reduction axioms: \begin{array}[]{llll}(\lambda x.\,M)\,\,V&\mapsto_{\beta_{V}}&M{\color[rgb]{0,0,1}\bm{\{}}x:=V{\color[rgb]{0,0,1}\bm{\}}}\\ (\mu{a}.M)\,\,V&\mapsto_{\mu_{V}}&\mu{a}.(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd}V{\color[rgb]{0,0.6,0}\bm{\}}})\\ V\,\,(\mu{a}.M)&\mapsto_{\mu_{V}^{\prime}}&\mu{a}.(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd^{\star}}V{\color[rgb]{0,0.6,0}\bm{\}}})\\ \end{array} \begin{array}[]{llll}[a](\mu{b}.M)&\mapsto_{\rho}&M{\color[rgb]{0.91,0.41,0.17}\bm{\{}}b{\curvearrowleft}a{\color[rgb]{0.91,0.41,0.17}\bm{\}}}\\ \mu{a}.[a]M&\mapsto_{\theta}&M&(a\notin\mathsf{fv}(M))\end{array} The Q-translation of types is defined as follows: \begin{array}[]{r@{\hspace{.1cm}}c@{\hspace{.1cm}}l@{\hspace{.5cm}}r@{\hspace{.1cm}}c@{\hspace{.1cm}}l@{\hspace{.5cm}}r@{\hspace{.1cm}}c@{\hspace{.1cm}}l}{{\perp}}^{\mathsf{Q}}\hskip 2.84544pt&:=\hfil\hskip 2.84544pt&{!}{{\perp}}\hfil\hskip 14.22636pt&{\alpha}^{\mathsf{Q}}\hskip 2.84544pt&:=\hfil\hskip 2.84544pt&{!}{\alpha}\hfil\hskip 14.22636pt&{(A\supset B)}^{\mathsf{Q}}\hskip 2.84544pt&:=\hfil\hskip 2.84544pt&{!}{(({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}})}\\ \end{array} We define {A}^{\mathsf{\underline{Q}}} as the function such that {A}^{\mathsf{Q}}={!}{{A}^{\mathsf{\underline{Q}}}} . Values are defined as: V::=x\,|\,\lambda x.\,M . The {(\cdot)}^{\mathsf{Q}} -translation for values and terms, are given mutually recursively by \begin{array}[]{rcl}{x}^{\mathsf{\underline{Q}}}&:=&x\\ {(\lambda x.\,M)}^{\mathsf{\underline{Q}}}&:=&{\invamp}(a,b).{M}^{\mathsf{Q}}_{k}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k}:=b{\color[rgb]{1,0,0}\bm{]}}\end{array} \begin{array}[]{rcl}{V}^{\mathsf{Q}}_{k}&:=&{!}{{V}^{\mathsf{\underline{Q}}}}\lightning k\\ {(M\,N)}^{\mathsf{Q}}_{k}&:=&{M}^{\mathsf{Q}}_{k^{\prime\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime\prime}:={?}v.{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=v{\color[rgb]{1,0,0}\blacktriangledown}{!}{k}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}}\\ {([a]M)}^{\mathsf{Q}}_{k}&:=&{M}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=a{\color[rgb]{0,0,1}\bm{\}}}\lightning k\\ {(\mu{a}.M)}^{\mathsf{Q}}_{k}&:=&{M}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\star{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=k{\color[rgb]{0,0,1}\bm{\}}}\par\end{array} Lemma 22 (name=Type preservation [Proof on pg. F.1.2 ] , restate=[name=Type preservation]TypePreservationForQTranslation) . If \Gamma\vdash M:A\mid\Sigma holds in \lambda\mu_{V} , then {\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({A}^{\mathsf{Q}})^{\perp};\cdot\vdash{M}^{\mathsf{Q}}:{\perp} holds in \lambda_{\textsf{{MELL}}} . Proposition 23 (name=Simulation [Proof on pg. F.1.2 ] , restate=[name=Simulation]CalcMELLSimulatesCalcParigotViaQTranslation) . If M\to_{\mu_{V}}N , then {M}^{\mathsf{Q}}_{k}\doteq_{\mathsf{\lambda_{\textsf{{MELL}}}}}{N}^{\mathsf{Q}}_{k} , where \doteq_{\mathsf{\lambda_{\textsf{{MELL}}}}} denotes the reflexive, symmetric, and transitive closure of \to_{\mathsf{\lambda_{\textsf{{MELL}}}}} . 5.2 Simulation of Curien and Herbelin’s \overline{\lambda}\mu\tilde{\mu} via the T-translation Curien and Herbelin [ 13 ] introduced a term assignment for classical logic in sequent calculus style that has since become a cornerstone in the study of computational interpretations of classical logic. Its merit is that it reveals hidden dualities in the programming language from the natural symmetries of the sequent calculus ( cf. [ 16 ] for a tutorial). We start by recalling the sets of types and terms of \bar{\lambda}\mu\tilde{\mu} , which are are defined as follows. Note that terms are split into three syntactic categories (terms, co–terms and commands): \begin{array}[]{lrcl}\text{(Types)}&A,B&::=&{\alpha}\mid{A\supset B}\end{array} \begin{array}[]{lrcl}\text{(Terms)}&v,v^{\prime}&::=&x\mid\mu{\alpha}.\,c\mid\lambda x.\,v\\ \text{(Co-terms)}&e,e^{\prime}&::=&\alpha\mid v\cdot e\\ \text{(Commands)}&c,c^{\prime}&::=&\langle v\mid e\rangle\end{array} The typing system consists of three judgements \Gamma\vdash v:A\mid\Delta , \Gamma\mid e:A\vdash\Delta , and c:(\Gamma\vdash\Delta) , with the following typing rules: \begin{array}[]{c}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 40.22893pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=80.45786pt\hbox{\kern 3.00003pt$\textsc{{VarR}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma,x:A\vdash x:A\mid\Delta$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 40.91068pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=81.82135pt\hbox{\kern 3.00003pt$\textsc{{VarL}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\mid\alpha:A\vdash\alpha:A,\Delta$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash v:A\mid\Delta\quad\Gamma\mid e:B\vdash\Delta$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=117.94847pt\hbox{\kern 3.00003pt$\textsc{{AppL}}$}}}\hbox{\kern 11.45827pt\hbox{$\displaystyle\Gamma\mid(v\cdot e):A\supset B\vdash\Delta$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty c:(\Gamma\vdash\alpha:B,\Delta)$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=73.94992pt\hbox{\kern 3.00003pt$\textsc{{ActivR}}$}}}\hbox{\kern 2.82056pt\hbox{$\displaystyle\Gamma\vdash\mu{\alpha}.\,c:B,\Delta$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.41669pt\hbox{$\displaystyle\penalty\Gamma,x:A\vdash v:B\mid\Delta$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=91.36877pt\hbox{\kern 3.00003pt$\textsc{{Abs}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash\lambda x.\,v:A\supset B\mid\Delta$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash v:A\mid\Delta\quad\Gamma\mid e:A\vdash\Delta$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=117.36168pt\hbox{\kern 3.00003pt$\textsc{{cut}}$}}}\hbox{\kern 26.73592pt\hbox{$\displaystyle\langle v\mid e\rangle:(\Gamma\vdash\Delta)$}}}}\end{array}\par\end{array} Reduction in \bar{\lambda}\mu\tilde{\mu} is given by the contextual closure of the following two reduction axioms, where v_{1}{\color[rgb]{0,0,1}\bm{\{}}x:=v_{2}{\color[rgb]{0,0,1}\bm{\}}} and c{\color[rgb]{0,0,1}\bm{\{}}\alpha:=e{\color[rgb]{0,0,1}\bm{\}}} are standard substitution: \begin{array}[]{c@{\hspace{1cm}}c}\begin{array}[]{llll}\langle\lambda x.\,v_{1}\mid v_{2}\cdot e\rangle&\mapsto&\langle v_{1}{\color[rgb]{0,0,1}\bm{\{}}x:=v_{2}{\color[rgb]{0,0,1}\bm{\}}}\mid e\rangle\end{array}\hfil\hskip 28.45274pt&\begin{array}[]{llll}\langle\mu{\alpha}.\,c\mid e\rangle&\mapsto&c{\color[rgb]{0,0,1}\bm{\{}}\alpha:=e{\color[rgb]{0,0,1}\bm{\}}}\end{array}\end{array} The T-translation of Danos et al. [ 14 ] is defined for formulae, judgements and terms of \bar{\lambda}\mu\tilde{\mu} , as follows: \begin{array}[]{rcl}{\alpha}^{\mathsf{T}}&:=&\alpha\\ {(A\supset B)}^{\mathsf{T}}&:=&{?}{!}{({A}^{\mathsf{T}})^{\perp}}\invamp{?}{B}^{\mathsf{T}}\\ \end{array} \begin{array}[]{rcl}c:(\Gamma\vdash\Delta)&\mapsto&{?}{\Gamma}^{\mathsf{T}},{{\Delta}^{\mathsf{T}}}^{\bot};\cdot\vdash{c}^{\mathsf{T}}:\bot\\ \Gamma\mid e:A\vdash\Delta&\mapsto&{?}{\Gamma}^{\mathsf{T}},{{\Delta}^{\mathsf{T}}}^{\bot};\cdot\vdash{e}^{\mathsf{T}}:{!}{({{A}^{\mathsf{T}}}^{\perp})}\\ \Gamma\vdash v:A\mid\Delta&\mapsto&{?}{\Gamma}^{\mathsf{T}},{{\Delta}^{\mathsf{T}}}^{\bot};\cdot\vdash{v}^{\mathsf{T}}:{?}{A}^{\mathsf{T}}\end{array} \begin{array}[]{rcl}{x}^{\mathsf{T}}&:=&x\\ {(\mu{\alpha}.\,c)}^{\mathsf{T}}&:=&{?}\alpha.{c}^{\mathsf{T}}\\ {(\lambda x.\,v)}^{\mathsf{T}}&:=&{?}u.(u\lightning{\invamp}(a,b).({v}^{\mathsf{T}}\lightning b{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}))\end{array} \begin{array}[]{rcl}\\ {\alpha}^{\mathsf{T}}&:=&{!}{\alpha}\\ {(v\cdot e)}^{\mathsf{T}}&:=&{!}{\langle{!}{{v}^{\mathsf{T}}},{e}^{\mathsf{T}}\rangle}\\ {\langle v\mid e\rangle}^{\mathsf{T}}&:=&{v}^{\mathsf{T}}\lightning{e}^{\mathsf{T}}\end{array} Lemma 24 (name=Type preservation [Proof on pg. F.2 ] , restate=[name=Type preservation]TypePreservationForTTranslationForBarLambdaMuTildeMu) . 1. If c:(\Gamma\vdash\Delta) holds in \bar{\lambda}\mu\tilde{\mu} , then {?}{\Gamma}^{\mathsf{T}},{{\Delta}^{\mathsf{T}}}^{\bot};\cdot\vdash{c}^{\mathsf{T}}:\bot holds in \lambda_{\textsf{{MELL}}} . 2. If \Gamma\mid e:A\vdash\Delta holds in \bar{\lambda}\mu\tilde{\mu} , then {?}{\Gamma}^{\mathsf{T}},{{\Delta}^{\mathsf{T}}}^{\bot};\cdot\vdash{e}^{\mathsf{T}}:{!}{({{A}^{\mathsf{T}}}^{\perp})} holds in \lambda_{\textsf{{MELL}}} . 3. If \Gamma\vdash v:A\mid\Delta holds in \bar{\lambda}\mu\tilde{\mu} , then {?}{\Gamma}^{\mathsf{T}},{{\Delta}^{\mathsf{T}}}^{\bot};\cdot\vdash{v}^{\mathsf{T}}:{?}{A}^{\mathsf{T}} holds in \lambda_{\textsf{{MELL}}} . Proposition 25 (name=Simulation [Proof on pg. F.2 ] , restate=[name=Simulation]CalcMELLSimulatesCalcParigotViaTTranslationForBarLambdaMuTildeMu) . If t\to_{\bar{\lambda}\mu\tilde{\mu}}s , then {t}^{\mathsf{T}}_{k}\twoheadrightarrow_{\mathsf{\lambda_{\textsf{{MELL}}}}}{s}^{\mathsf{T}}_{k} . 6 Related Work and Conclusions Proofs-as-Processes. Although not the focus of our work, there is a large body of work on interpreting cut-elimination in terms of concurrent or parallel programs. This program was perhaps kickstarted by Abramsky [ 1 ] and likely influenced by Girard himself [ 18 ] (having mentioned that “ connectives of linear logic have an obvious meaning in terms of parallel computation… ”). Since then many works have been presented in this area. Relatively recent highlights include the tight correspondence between intuitionistic linear logic and session types by Caires and Pfenning [ 12 ] , its extension to classical linear logic by Wadler [ 28 , 29 ] and modeling asynchronous communication via a term assignment for a multi-conclusion natural deduction presentation of MLL [ 4 ] . Further references are provided in [ 4 , Sec.11] . Proofs-as-Functions. Troelstra [ 27 ] introduces a one-sided natural deduction presentation of LL . However, par and why-not are not included, and normalization of proofs is not studied. Martini and Masini [ 22 ] study the par connective, arguing that it had not received any attention from a natural deduction perspective because of the “ apparent impossibility to formulate a suitable introduction-elimination pair, when sticking to single conclusion systems ”. Our rules for par are similar to theirs (the elimination rules are exactly the same, the introduction rule is not but is provably equivalent). A term assignment is not considered in their work nor are the exponentials. Ramalho Martins et al [ 23 ] also introduce a natural deduction presentation for full LL . All connectives are considered, including the additives. Only weak normalisation is proved and no term calculus or computational interpretation of proof normalisation is discussed. Albrecht et al [ 2 ] propose a term assignment for LL . They include an inference rule called swap that corresponds to our (derived) notion of contra-substitution but the similarities with our work stop there. There are several shortcomings with their proposed system {\cal N} including a global restriction on well-formedness of derivations ( cf. Sec. 2.4 on pg 221 of op.cit. ) that requires a complicated notion of term reduction (parallel reduction) to avoid breaking it 4 4 4 Moreover, we believe {\cal N} is incomplete with respect to linear logic. The issue is in the case that shows that linear logic contraction is captured in {\cal N} . Case (?C) of Lemma A.1 does not consider the situation where n=0 in the proof of \vdash{?}\alpha,{?}\alpha,\beta_{1}\ldots,\beta_{n} . This case does not seem to be provable in {\cal N} . . Bierman [ 11 ] presents a Parigot style calculus for full LL which relies on a multiple-conclusion natural deduction. The term assignment makes use of Parigot’s structural substitution. It includes many commuting conversions (most of which are not listed). It also mentions the possibility of defining a rule for par but no discussion is present in the paper ( [ 11 , Sec.3.4.] ). Mazurak and Zdancewic [ 24 ] propose a term assignment for MLL . They introduce a functional language with concurrency primitives, the latter motivated by a parallel rendering of Felleisen’s control and abort control operators. There are various items that set our work apart from this. We address MELL which includes the exponentials. Our system \lambda_{\textsf{{MELL}}} is shown to be complete with respect to MELL ; in [ 24 ] this question is left open for their calculus. Finally, our operational semantics arises purely from proof normalization, whereas their calculus includes various term constructors that do not arise from purely proof theoretical means. Examples are the term constructors for the new binder and parallel composition of processes. Finally, there are works that provide a computational intepretation of LL based on the proof-nets presentation. A recent contribution is Kesner’s [ 21 ] where terms are associated to proof-nets. See op.cit for further references on the proof-net approach. Future Work. Extending our approach to include the additives is not immediate since contra-substitution relies crucially on linear terms for its definition. This requires further investigation. Also, simulating our calculus, in particular structural equivalence, via proof-nets would be of interest. Extending \lambda_{\textsf{{MELL}}} with second-order propositional quantifiers should be unproblematic. However, adding fixed points in the style of Baelde et al [ 6 , 5 ] sounds more challenging. Appendix A A Contraposition-Based Calculus for MLL \CompletenessSoundnessMLL * Proof. Soundness. By induction on the derivation of the judgment: 1. m-ax : Then t=a:A and \Gamma=(a:{A}) and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 23.63292pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=53.90475pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle a:A\vdash a:A$}}}}\end{array} Hence we can take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A,A^{\perp}}$}}}}\end{array} 2. m-i \otimes : Then t=\langle s,r\rangle and A=B\otimes C and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash s:B\quad\Gamma^{\prime}\vdash r:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=87.95354pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 3.3332pt\hbox{$\displaystyle\Gamma,\Gamma^{\prime}\vdash\langle s,r\rangle:B\otimes C$}}}}\end{array} Hence: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma^{\perp},B}\quad\vdash{\Gamma^{\prime\perp},C}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=76.14366pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 1.94449pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\perp},\Gamma^{\perp},B\otimes C}$}}}}\end{array} 3. m-e \otimes : The derivation is of the form \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma^{\prime}\vdash s:B\otimes C\quad\Gamma^{\prime\prime},b:B,c:C\vdash r:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=162.91055pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 34.42119pt\hbox{$\displaystyle\Gamma^{\prime},\Gamma^{\prime\prime}\vdash{r}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array} Hence by IH: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{\Gamma^{\prime\perp},B\otimes C}\end{array}\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{\Gamma^{\prime\prime\perp},B^{\perp},C^{\perp},A}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=81.00479pt\hbox{\kern 3.00003pt$\textsc{{l-$\multimap$}}$}}}\hbox{\kern 0.37508pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\prime\perp},B\multimap C^{\perp},A}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=176.25958pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 60.03261pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\perp},\Gamma^{\prime\prime\perp},A}$}}}}\end{array} 4. m-i \multimap : Then t=\lambda b.\,t^{\prime} and A=B\multimap C and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 7.08336pt\hbox{$\displaystyle\penalty\Gamma,b:B\vdash t^{\prime}:C$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=77.074pt\hbox{\kern 3.00003pt$\textsc{{m-i$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash\lambda b.\,t^{\prime}:B\multimap C$}}}}\end{array} Therefore by IH: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{\Gamma^{\perp},B^{\perp},C}\end{array}\par$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=58.69925pt\hbox{\kern 3.00003pt$\textsc{{l-$\multimap$}}$}}}\hbox{\kern 0.37508pt\hbox{$\displaystyle\vdash{\Gamma^{\perp},B\multimap C}$}}}}\end{array} 5. m-e \multimap_{1} : Then t=s\,{\color[rgb]{0,0,1}\bullet}\,r and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma^{\prime}\vdash s:B\multimap A\quad\Gamma^{\prime\prime}\vdash r:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=114.67784pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{1}$}}$}}}\hbox{\kern 22.53119pt\hbox{$\displaystyle\Gamma^{\prime},\Gamma^{\prime\prime}\vdash s\,{\color[rgb]{0,0,1}\bullet}\,r:A$}}}}\end{array} Hence by IH: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{\Gamma^{\prime\perp},B\multimap A}\end{array}\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{\Gamma^{\prime\prime\perp},B}\end{array}\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A,A^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=110.72565pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 17.63895pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\prime\perp},A,B\otimes A^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=206.72905pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 75.26733pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\perp},\Gamma^{\prime\prime\perp},A}$}}}}\end{array} 6. m-e \multimap_{2} : Then t={s{\color[rgb]{1,0,0}\blacktriangledown}r} and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma^{\prime}\vdash s:A^{\perp}\multimap B\quad\Gamma^{\prime\prime}\vdash r:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=123.40013pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 29.94778pt\hbox{$\displaystyle\Gamma^{\prime},\Gamma^{\prime\prime}\vdash s{\color[rgb]{1,0,0}\blacktriangledown}r:{A}$}}}}\end{array} Therefore by IH: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{\Gamma^{\prime\perp},A^{\perp}\multimap B}\end{array}\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{\Gamma^{\prime\prime\perp},B}\end{array}\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A,A^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=110.72565pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 15.87503pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\prime\perp},A,A^{\perp}\otimes B^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=209.70134pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 76.75348pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\perp},\Gamma^{\prime\prime\perp},A}$}}}}\end{array} Completeness. By hypothesis, \vdash{\Gamma_{0}} holds in MLL . We proceed by induction on a cut-free derivation of \vdash{\Gamma_{0}} , resorting to the (well-known) cut-elimination theorem for MLL . 1. l-ax : Then \Gamma_{0}=A and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A^{\perp},A}$}}}}\end{array} and we have \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 16.82336pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=40.28564pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle A\vdash a:A$}}}}\end{array} 2. l- \otimes : Then \Gamma_{0} is a permutation of \Gamma^{\prime},\Gamma^{\prime\prime},B\otimes C and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma^{\prime},B}\quad\vdash{\Gamma^{\prime\prime},C}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=70.25478pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 1.94449pt\hbox{$\displaystyle\vdash{\Gamma^{\prime},\Gamma^{\prime\prime},B\otimes C}$}}}}\end{array} Moreover, we know by hypothesis that \Gamma^{\prime},\Gamma^{\prime\prime},B\otimes C is a permutation of \Gamma,A . We consider three subcases, depending on whether there is an occurrence of A in \Gamma^{\prime} , or there is an occurrence of A in \Gamma^{\prime\prime} , or A=B\otimes C : (a) If there is an occurrence of A in \Gamma^{\prime} : then \Gamma^{\prime}=\Gamma^{\prime\prime},A and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma^{\prime\prime},A,B}\quad\vdash{\Gamma^{\prime\prime},C}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=84.50476pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 1.9445pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\prime},A,\Gamma^{\prime\prime},B\otimes C}$}}}}\end{array} Hence by IH there exist terms s,r such that: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \Gamma^{\prime\prime\perp},a:B^{\perp}\vdash s:A\end{array}\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 52.11568pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=110.87027pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle b:B\multimap C^{\perp}\vdash b:B\multimap C^{\perp}$}}}}\end{array}\begin{array}[]{c}\text{IH }\\ \Gamma^{\prime\prime\perp}\vdash r:C\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=204.29979pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 42.44571pt\hbox{$\displaystyle b:B\multimap C^{\perp},\Gamma^{\prime\prime\perp}\vdash b{\color[rgb]{1,0,0}\blacktriangledown}r:B^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=338.92918pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 85.74768pt\hbox{$\displaystyle\Gamma^{\prime\prime\perp},\Gamma^{\prime\prime\perp},b:B\multimap C^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}a:=b{\color[rgb]{1,0,0}\blacktriangledown}r{\color[rgb]{0,0,1}\bm{\}}}:A$}}}}\end{array} so it suffices to take t:=s{\color[rgb]{0,0,1}\bm{\{}}a:=b{\color[rgb]{1,0,0}\blacktriangledown}r{\color[rgb]{0,0,1}\bm{\}}} . (b) If there is an occurrence of A in \Gamma^{\prime\prime} : then \Gamma^{\prime\prime}=\Gamma^{\prime\prime\prime},A and the derivation is of the form \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma,B}\quad\vdash{\Gamma^{\prime\prime\prime},A,C}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=81.6992pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 1.94449pt\hbox{$\displaystyle\vdash{\Gamma,\Gamma^{\prime\prime\prime},A,B\otimes C}$}}}}\end{array} Hence by IH there exist terms s,r such that: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 52.11568pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=110.87027pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle b:B\multimap C^{\perp}\vdash b:B\multimap C^{\perp}$}}}}\end{array}\begin{array}[]{c}\text{IH }\\ \Gamma^{\perp}\vdash s:B\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=199.81113pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{1}$}}$}}}\hbox{\kern 41.00343pt\hbox{$\displaystyle\Gamma^{\perp},b:B\multimap C^{\perp}\vdash b\,{\color[rgb]{0,0,1}\bullet}\,s:C^{\perp}$}}}}\end{array}\quad\begin{array}[]{c}\text{IH }\\ \Gamma^{\prime\prime\prime\perp},c:C^{\perp}\vdash r:A\par\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=345.66531pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 95.39352pt\hbox{$\displaystyle\Gamma^{\perp},\Gamma^{\prime\prime\prime\perp},B\multimap C^{\perp}\vdash r{\color[rgb]{0,0,1}\bm{\{}}c:=b\,{\color[rgb]{0,0,1}\bullet}\,s{\color[rgb]{0,0,1}\bm{\}}}:A$}}}}\end{array} (c) If A=B\otimes C and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma,B}\quad\vdash{\Gamma^{\prime\prime},C}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=67.44922pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 1.9445pt\hbox{$\displaystyle\vdash{\Gamma,\Gamma^{\prime\prime},B\otimes C}$}}}}\end{array} Hence by IH there exists terms s,r such that: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \Gamma^{\perp}\vdash s:B\end{array}\quad\begin{array}[]{c}\text{IH }\\ \Gamma^{\prime\prime\perp}\vdash r:C\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=118.48138pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 11.94435pt\hbox{$\displaystyle\Gamma^{\perp},\Gamma^{\prime\prime\perp}\vdash\langle s,r\rangle:B\otimes C$}}}}\end{array} 3. l- \multimap : Then \Gamma_{0} is a permutation of \Gamma^{\prime},B\multimap C and the derivation is of the form \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.23608pt\hbox{$\displaystyle\penalty\vdash{\Gamma^{\prime},B^{\perp},C}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=55.00468pt\hbox{\kern 3.00003pt$\textsc{{l-$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma^{\prime},B\multimap C}$}}}}\end{array} Moreover, we know by hypothesis that \Gamma^{\prime},B\multimap C is a permutation of \Gamma,A . We consider three subcases, depending on wheter there is an occurrence of A in \Gamma^{\prime} or A=B\multimap C . (a) If there is an occurrence of A in \Gamma^{\prime} : then \Gamma^{\prime}=\Gamma^{\prime\prime},A and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.23607pt\hbox{$\displaystyle\penalty\vdash{\Gamma^{\prime\prime},A,B^{\perp},C}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=69.25464pt\hbox{\kern 3.00003pt$\textsc{{l-$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma^{\prime\prime},A,B\multimap C}$}}}}\end{array} and by IH we have: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \Gamma^{\prime\prime},b:B,c:C^{\perp}\vdash s:A\end{array}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 48.16896pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=102.97684pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle r:B\otimes C^{\perp}\vdash r:B\otimes C^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=256.56578pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 68.81586pt\hbox{$\displaystyle\Gamma^{\prime\prime},B\otimes C^{\perp}\vdash{s}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=r{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array} (b) If A=B\multimap C^{\perp} and the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma^{\prime},B^{\perp},C}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=48.53252pt\hbox{\kern 3.00003pt$\textsc{{l-$\multimap$}}$}}}\hbox{\kern 9.32184pt\hbox{$\displaystyle\vdash{\Gamma^{\prime},A}$}}}}\end{array} Hence by IH we have that \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 0.6945pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \Gamma^{\prime},b:B\vdash t^{\prime}:C\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=77.10185pt\hbox{\kern 3.00003pt$\textsc{{m-i$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma^{\prime}\vdash\lambda b.\,t^{\prime}:B\multimap C$}}}}\end{array} ∎ \ContrasubstitutionLemmaMLL * Proof. We proceed by induction on the derivation of \Gamma,a:A\vdash t:B . 1. m-ax : Then \Gamma=\varnothing , t=a and A=B . Hence we can take \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 22.10756pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=44.21512pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma^{\prime}\vdash s:A^{\perp}$}}}}\end{array} 2. m-i \otimes : Then t=\langle t_{1},t_{2}\rangle and B=B_{1}\otimes B_{2} . We consider two subcases, depending on whether a\in\mathsf{fv}(t_{1}) or a\in\mathsf{fv}(t_{2}) : (a) If a\in\mathsf{fv}(t_{1}) : then the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1},a:A\vdash t_{1}:B_{1}\quad\Gamma_{2}\vdash t_{2}:B_{2}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=130.04254pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 15.1961pt\hbox{$\displaystyle\Gamma_{1},a:A,\Gamma_{2}\vdash\langle t_{1},t_{2}\rangle:B$}}}}\end{array} Furthermore, by hypothesis we have that \Gamma^{\prime}\vdash s:B_{1}\multimap B_{2}^{\perp} . Recall that \langle t_{1},t_{2}\rangle{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}=t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\blacktriangledown}t_{1}{\color[rgb]{1,0,0}\bm{\}}} . Hence: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1},a:A\vdash t_{1}:B_{1}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma^{\prime}\vdash s:B_{1}\multimap B_{2}^{\perp}\quad\Gamma_{2}\vdash t_{2}:B_{2}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=127.11436pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 27.29506pt\hbox{$\displaystyle\Gamma_{2},\Gamma^{\prime}\vdash s{\color[rgb]{1,0,0}\blacktriangledown}t_{2}:B_{1}^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=258.01466pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 67.0901pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},\Gamma^{\prime}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\blacktriangledown}t_{2}{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} (b) If a\in\mathsf{fv}(t_{2}) : \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1}\vdash t_{1}:B_{1}\quad\Gamma_{2},a:B_{2}\vdash t_{2}:B_{2}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=132.33775pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 12.71178pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},a:A\vdash\langle t_{1},t_{2}\rangle:B_{2}$}}}}\end{array} Furthermore, by hypothesis we have that \Gamma^{\prime}\vdash s:B_{1}\multimap B_{2}^{\perp} . Recall that \langle t_{1},t_{2}\rangle{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}={t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s\,{\color[rgb]{0,0,1}\bullet}\,t_{1}{\color[rgb]{1,0,0}\bm{\}}}} . Hence: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma^{\prime}\vdash s:B_{1}\multimap B_{2}\quad\Gamma_{1}\vdash t_{1}:A_{1}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=125.2637pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{1}$}}$}}}\hbox{\kern 24.70314pt\hbox{$\displaystyle\Gamma_{1},\Gamma^{\prime}\vdash s\,{\color[rgb]{0,0,1}\bullet}\,t_{1}:B^{\perp}$}}}}\end{array}\quad\Gamma_{2},a:A\vdash t_{2}:B_{2}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=256.164pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 64.49818pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},\Gamma^{\prime}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s\,{\color[rgb]{0,0,1}\bullet}\,t_{1}{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} 3. m-e \otimes : Then t={t_{2}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{1}{\color[rgb]{1,0,0}\bm{]}} . We consider two cases depending on whether a\in\mathsf{fv}(t_{1}) or a\in\mathsf{fv}(t_{2} ). (a) If a\in\mathsf{fv}(t_{1}) , then the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1},a:A\vdash t_{1}:C_{1}\otimes C_{2}\quad\Gamma_{2},b:C_{1},c:C_{2}\vdash t_{2}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=206.55237pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 39.28033pt\hbox{$\displaystyle\Gamma_{1},a:A,\Gamma_{2}\vdash{t_{2}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{1}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} Furthermore, by hypothesis we have that \Gamma^{\prime}\vdash s:B^{\perp} . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{2},b:C_{1},c:C_{2}\vdash t_{2}:B\quad\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=155.03813pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 23.19083pt\hbox{$\displaystyle\Gamma_{2},b:C_{1}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:C_{2}^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=195.09372pt\hbox{\kern 3.00003pt$\textsc{{m-i$\multimap$}}$}}}\hbox{\kern 37.52934pt\hbox{$\displaystyle\par\Gamma_{2}\vdash\lambda b.\,s{\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash B{\color[rgb]{1,0,0}\bm{\}}}:C_{1}\multimap C_{2}^{\perp}\par$}}}}\end{array}\quad{\Gamma_{1},a:A\vdash t_{1}:C_{1}\otimes C_{2}}\par\par$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=341.9655pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 98.31148pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\lambda b.\,t_{1}{\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} (b) If a\in\mathsf{fv}(t_{2}) , then the derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1}\vdash t_{1}:C_{1}\otimes C_{2}\quad\Gamma_{2},a:A,b:C_{1},c:C_{2}\vdash t_{2}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=203.77466pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 37.89148pt\hbox{$\displaystyle\Gamma_{1},a:A,\Gamma_{2}\vdash{t_{2}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{1}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} Furthermore, by hypothesis we have that \Gamma^{\prime}\vdash s:B^{\perp} . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1}\vdash t_{1}:C_{1}\otimes C_{2}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{2},b:B,c:C,a:A\vdash t_{2}:B\quad\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=174.07587pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 10.93489pt\hbox{$\displaystyle\Gamma_{2},\Gamma^{\prime},b:C_{1},c:C_{2}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=292.10638pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 68.85416pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},\Gamma^{\prime}\vdash{t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{1}{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} 4. m-i \multimap : Then t=\lambda b.\,t^{\prime} and B=B_{1}\multimap B_{2} . The derivation is of the form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 7.08336pt\hbox{$\displaystyle\penalty\Gamma,a:A,b:B_{1}\vdash t^{\prime}:B_{2}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=109.0564pt\hbox{\kern 3.00003pt$\textsc{{m-i$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma,a:A\vdash\lambda b.\,t^{\prime}:B_{1}\multimap B_{2}$}}}}\end{array} Furthermore by hypothesis we have that \Gamma^{\prime}\vdash s:B^{\perp} . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma^{\prime}\vdash s:B_{1}\otimes B_{2}^{\perp}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma,a:A,b:B_{1}\vdash t^{\prime}:B_{2}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 26.35866pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=59.35623pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle c:B_{2}\vdash c:B_{2}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=201.19043pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 33.64923pt\hbox{$\displaystyle\Gamma,b:B_{1},c:B_{2}^{\perp}\vdash t^{\prime}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash c{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}\par$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=318.62085pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 94.66986pt\hbox{$\displaystyle\Gamma,\Gamma^{\prime}\vdash{t^{\prime}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash c{\color[rgb]{1,0,0}\bm{\}}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} 5. m-e \multimap_{1} . Then t=t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2} . We consider two cases depending on whether a\in\mathsf{fv}(t_{1}) or a\in\mathsf{fv}(t_{2} ). Furthermore we know that \Gamma^{\prime}\vdash s:B^{\perp} . (a) If a\in\mathsf{fv}(t_{1}) then the derivation is of the following form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1},a:A\vdash t_{1}:A\multimap B\quad\Gamma_{2}\vdash t_{2}:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=144.65007pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{1}$}}$}}}\hbox{\kern 34.72615pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2}\vdash t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}:B$}}}}\end{array} Hence: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1},a:A\vdash t_{1}:A\multimap B\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{2}\vdash t_{2}:A\quad\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=95.57965pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 0.5555pt\hbox{$\displaystyle\Gamma_{2},\Gamma^{\prime}\vdash\langle t_{2},s\rangle:A\otimes B^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=236.67427pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 55.031pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},\Gamma^{\prime}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle t_{2},s\rangle{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} (b) If a\in\mathsf{fv}(t_{2}) then the derivation is of the following form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1}\vdash t_{1}:A\multimap B\quad\Gamma_{2},a:A\vdash t_{2}:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=144.65007pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{1}$}}$}}}\hbox{\kern 34.72615pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2}\vdash t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}:B$}}}}\end{array} Hence: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1}\vdash t_{1}:A\multimap B\quad\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=120.33302pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 22.80893pt\hbox{$\displaystyle\Gamma_{1},\Gamma^{\prime}\vdash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s:A^{\perp}$}}}}\end{array}\quad\Gamma_{2},a:A\vdash t_{2}:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=246.1604pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 61.16298pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},\Gamma^{\prime}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} 6. m-e \multimap_{2} : Then t=t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2} and B=C^{\perp} . We consider two cases depending on whether a\in\mathsf{fv}(t_{1}) or a\in\mathsf{fv}(t_{2} ). Furthermore we know that \Gamma^{\prime}\vdash s:C . (a) If a\in\mathsf{fv}(t_{1}) then the derivation is of the following form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1},a:A\vdash t_{1}:C\multimap A\quad\Gamma_{2}\vdash t_{2}:A^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=150.17575pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 36.39276pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2}:C^{\perp}$}}}}\end{array} Recall that (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}=t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle t_{2},s\rangle{\color[rgb]{1,0,0}\bm{\}}} if a\in\mathsf{fv}(t_{1}) . Hence: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1},a:A\vdash t_{1}:C\multimap A\quad\Gamma^{\prime}\vdash s:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=142.47562pt\hbox{\kern 3.00003pt$\textsc{{m-i$\multimap$}}$}}}\hbox{\kern 20.91801pt\hbox{$\displaystyle\Gamma_{1},\Gamma^{\prime},a:A\vdash t_{1}\,{\color[rgb]{0,0,1}\bullet}\,s:A$}}}}\end{array}\quad\Gamma_{2}\vdash t_{2}:A^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=239.55898pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 56.47336pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},\Gamma^{\prime}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle t_{2},s\rangle{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} (b) If a\in\mathsf{fv}(t_{2}) then the derivation is of the following form: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1}\vdash t_{1}:C\multimap A\quad\Gamma_{2},a:A\vdash t_{2}:A^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=150.17575pt\hbox{\kern 3.00003pt$\textsc{{m-e$\multimap_{2}$}}$}}}\hbox{\kern 36.39276pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2}:C^{\perp}$}}}}\end{array} Hence: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma_{1}\vdash t_{1}:C\multimap A\quad\Gamma^{\prime}\vdash s:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=114.13438pt\hbox{\kern 3.00003pt$\textsc{{m-i$\multimap$}}$}}}\hbox{\kern 20.91801pt\hbox{$\displaystyle\Gamma_{1},\Gamma^{\prime}\vdash t_{1}\,{\color[rgb]{0,0,1}\bullet}\,s:A$}}}}\end{array}\quad\Gamma_{2},a:A\vdash t_{2}:A^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=239.55898pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 56.19566pt\hbox{$\displaystyle\Gamma_{1},\Gamma_{2},\Gamma^{\prime}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}\,{\color[rgb]{0,0,1}\bullet}\,s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} ∎ Definition 26 (Size) . The size of a linear term t , denoted \mathsf{sz}(t) , is defined as \begin{array}[]{rclcrcl}\mathsf{sz}(a)&:=&0&\mathsf{sz}(\langle t,s\rangle)&:=&1+\mathsf{sz}(t)+\mathsf{sz}(s)\\ \mathsf{sz}({s}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}})&:=&1+\mathsf{sz}(t)+\mathsf{sz}(s)&\mathsf{sz}(\lambda a.\,t)&:=&1+\mathsf{sz}(t)\\ \mathsf{sz}(t\,{\color[rgb]{0,0,1}\bullet}\,s)&:=&1+\mathsf{sz}(t)+\mathsf{sz}(s)&\mathsf{sz}(t{\color[rgb]{1,0,0}\blacktriangledown}s)&:=&1+\mathsf{sz}(t)+\mathsf{sz}(s)\\ \end{array} We extend this definition to case contexts as follows: \displaystyle\mathsf{sz}(\Box):=0 \displaystyle\mathsf{sz}({\mathsf{L}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}):=\mathsf{sz}(\mathsf{L})+\mathsf{sz}(t) Lemma 27 . Let t be a linear term and a\in\mathsf{fv}(t) , then \mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}})=\mathsf{sz}(t)+\mathsf{sz}(s) . Proof. By a straight-forward induction on the structure of the term t . ∎ Lemma 28 . Let t be a linear term and a\in\mathsf{fv}(t) , then \mathsf{sz}(t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}})=\mathsf{sz}(t)+\mathsf{sz}(s) . Proof. By a straight-forward induction on the structure of the term t . We show the case of the application t=t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2} , where \mathsf{sz}(t)=\mathsf{sz}(t_{1})+\mathsf{sz}(t_{2}) . The remaining cases follow by a similar reasoning. 1. If a\in\mathsf{fv}(t_{1}) then (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}=t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle t_{2},s\rangle{\color[rgb]{1,0,0}\bm{\}}} . By IH, \mathsf{sz}(t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\langle t_{2},s\rangle{\color[rgb]{1,0,0}\bm{\}}})=\mathsf{sz}(t_{1})+\mathsf{sz}(\langle t_{2},s\rangle) . Since \mathsf{sz}(\langle t_{2},s\rangle)=\mathsf{sz}(t_{2})+\mathsf{sz}(s)+1 then this implies that \mathsf{sz}((t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}})=\mathsf{sz}(t_{1})+\mathsf{sz}(t_{2})+\mathsf{sz}(s)+1=\mathsf{sz}(t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2})+\mathsf{sz}(s) . 2. If a\in\mathsf{fv}(t_{2}) then (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}=t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s{\color[rgb]{1,0,0}\bm{\}}} . By IH, \mathsf{sz}(t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s{\color[rgb]{1,0,0}\bm{\}}})=\mathsf{sz}(t_{2})+\mathsf{sz}(t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s) . Since \mathsf{sz}(t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s)=\mathsf{sz}(t_{2})+\mathsf{sz}(s)+1 then this implies that \mathsf{sz}((t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}})=\mathsf{sz}(t_{2})+\mathsf{sz}(t_{1})+\mathsf{sz}(s)+1=\mathsf{sz}(t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2})+\mathsf{sz}(s) . ∎ Lemma 29 . \lambda_{\textsf{{MLL}}} is strongly normalizing. Proof. We proceed by showing that each reduction rule strictly decreases the term’s size i.e. the size of the redex is strictly greater than the size of the contractum. Since the size of a term is a non-negative integer, no infinite reduction sequences can exist. Let r denote the redex and r^{\prime} the contractum; we proceed by case analysis of the three reductions rules. 1. Case (\lambda a.\,t)\mathsf{L}\,{\color[rgb]{0,0,1}\bullet}\,s\to t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L} . The size of the redex is \mathsf{sz}(r)=\mathsf{sz}((\lambda a.\,t)\mathsf{L}\,{\color[rgb]{0,0,1}\bullet}\,s)=\mathsf{sz}(\lambda a.\,t)+\mathsf{sz}(\mathsf{L})+\mathsf{sz}(s)=\mathsf{sz}(t)+1+\mathsf{sz}(\mathsf{L})+\mathsf{sz}(s) . For the contractum we have \mathsf{sz}(r^{\prime})=\mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L})=\mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}})+\mathsf{sz}(\mathsf{L}) , by Lem. 27 we get \mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}})+\mathsf{sz}(\mathsf{L})=\mathsf{sz}(t)+\mathsf{sz}(s)+\mathsf{sz}(\mathsf{L}) . It follows that \mathsf{sz}(r)=\mathsf{sz}(r^{\prime})+1 . 2. Case (\lambda a.\,t)\mathsf{L}{\color[rgb]{1,0,0}\blacktriangledown}s\to t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}\mathsf{L} . The size of the redex is \mathsf{sz}(r)=\mathsf{sz}((\lambda a.\,t)\mathsf{L}{\color[rgb]{1,0,0}\blacktriangledown}s)=\mathsf{sz}(\lambda a.\,t)+\mathsf{sz}(\mathsf{L})+\mathsf{sz}(s)=\mathsf{sz}(t)+1+\mathsf{sz}(\mathsf{L})+\mathsf{sz}(s) . For the contractum we have \mathsf{sz}(r^{\prime})=\mathsf{sz}(t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}\mathsf{L})=\mathsf{sz}(t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}})+\mathsf{sz}(\mathsf{L}) , by Lem. 28 we get \mathsf{sz}(t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}})+\mathsf{sz}(\mathsf{L})=\mathsf{sz}(t)+\mathsf{sz}(s)+\mathsf{sz}(\mathsf{L}) . It follows that \mathsf{sz}(r)=\mathsf{sz}(r^{\prime})+1 . 3. Case {t}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle s,p\rangle\mathsf{L}{\color[rgb]{1,0,0}\bm{]}}\to t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=p{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L} . The size of the redex is \mathsf{sz}(r)=\mathsf{sz}({t}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle s,p\rangle\mathsf{L}{\color[rgb]{1,0,0}\bm{]}})=\mathsf{sz}(t)+\mathsf{sz}(\langle s,p\rangle\mathsf{L})+1=\mathsf{sz}(t)+\mathsf{sz}(\langle s,p\rangle)+\mathsf{sz}(\mathsf{L})+1=\mathsf{sz}(t)+\mathsf{sz}(s)+\mathsf{sz}(p)+\mathsf{sz}(\mathsf{L})+1 . For the contractum we have \mathsf{sz}(r^{\prime})=\mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=p{\color[rgb]{0,0,1}\bm{\}}}\mathsf{L})=\mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=p{\color[rgb]{0,0,1}\bm{\}}})+\mathsf{sz}(\mathsf{L}) , by Lem. 27 we get \mathsf{sz}(t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=p{\color[rgb]{0,0,1}\bm{\}}})+\mathsf{sz}(\mathsf{L})=\mathsf{sz}(t)+\mathsf{sz}(s)+\mathsf{sz}(p)+\mathsf{sz}(\mathsf{L}) . It follows that \mathsf{sz}(r)=\mathsf{sz}(r^{\prime})+1 . ∎ Appendix B A Contraposition-Based Calculus for MELL Lemma 30 (Weakening and Contraction) . 1. \Delta;\Gamma\vdash t:A implies \Delta,u:B;\Gamma\vdash t:A . 2. \Delta,u:B,v:B;\Gamma\vdash t:A implies \Delta,u:B;\Gamma\vdash t{\color[rgb]{0,0,1}\bm{\{}}v:=u{\color[rgb]{0,0,1}\bm{\}}}:A . Proof. By induction on \Delta;\Gamma\vdash t:A , for the first item, and induction on \Delta,u:B,v:B;\Gamma\vdash t:A , for the second. ∎ Lemma 31 (Linear and unrestricted substitution are compatible with typing) . The following rules are admissible in \lambda_{\textsf{{MELL}}} : \begin{array}[]{cc}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma,a:A\vdash t:B\quad\Delta;\Gamma^{\prime}\vdash s:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.53188pt\hbox{\kern 3.06668pt$\textsc{{m-sub}}$}}}\hbox{\kern 21.38872pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}:B$}}}}\end{array}&\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:A;\Gamma\vdash t:B\quad\Delta;\cdot\vdash s:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=130.02615pt\hbox{\kern 3.06668pt$\textsc{{m-Usub}}$}}}\hbox{\kern 22.77765pt\hbox{$\displaystyle\Delta;\Gamma\vdash t{\color[rgb]{0,0,1}\bm{\{}}u:=s{\color[rgb]{0,0,1}\bm{\}}}:B$}}}}\end{array}\end{array} Proof. By induction on the derivation of \Delta;\Gamma,a:A\vdash t:B , for the first item, and \Delta,u:A;\Gamma\vdash t:B for the second. ∎ It can be noted that the following two judgments are logically equivalent, in the sense that the first one is provable if and only if the second one is provable: \Delta,u:A;\Gamma\vdash B\quad\quad\Delta;a:{!}{A},\Gamma\vdash B More precisely, we have the following lemma: Lemma 32 . 1. If \Delta,u:A;\Gamma\vdash t:B , then \Delta;a:{!}{A},\Gamma\vdash t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=a{\color[rgb]{1,0,0}\bm{]}}:B . 2. If \Delta;a:{!}{A},\Gamma\vdash t:B , then \Delta,u:A;\Gamma\vdash t{\color[rgb]{0,0,1}\bm{\{}}a:={!}{b.(u\lightning b)}{\color[rgb]{0,0,1}\bm{\}}}:B , Proof. For the first item we have: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;a:{!}{A}\vdash a:{!}{A}\quad\Delta,u:A;\Gamma\vdash t:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=150.63264pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 21.80545pt\hbox{$\displaystyle\Delta;a:{!}{A},\Gamma\vdash t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=a{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} For the second we have: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.00111pt\hbox{$\displaystyle\penalty\Delta;a:{!}{A},\Gamma\vdash t:B$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to102.29128pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{Lem.~\ref{lemma:weakening_and_contraction}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta,u:A;a:{!}{A},\Gamma\vdash t:B$}}}}\end{array}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 15.54169pt\hbox{$\displaystyle\penalty\Delta,u:A;\cdot\vdash u:A$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=101.42114pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta,u:A;\cdot\vdash{!}{b.(u\lightning b)}:{!}{A}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=293.84802pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 74.45778pt\hbox{$\displaystyle\Delta,u:A;\Gamma\vdash t{\color[rgb]{0,0,1}\bm{\{}}a:={!}{b.(u\lightning b)}{\color[rgb]{0,0,1}\bm{\}}}:B$}}}}\end{array} ∎ Notation: s{\color[rgb]{1,0,0}\bm{[}}{!}{\overline{u}}:=\overline{t}{\color[rgb]{1,0,0}\bm{]}} to abbreviate s{\color[rgb]{1,0,0}\bm{[}}{!}{u_{1}}:=t_{1}{\color[rgb]{1,0,0}\bm{]}}\ldots{\color[rgb]{1,0,0}\bm{[}}{!}{u_{n}}:=t_{n}{\color[rgb]{1,0,0}\bm{]}} . Also, t{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{s}{\color[rgb]{0,0,1}\bm{\}}} to abbreviate t{\color[rgb]{0,0,1}\bm{\{}}a_{1}:=s_{1}{\color[rgb]{0,0,1}\bm{\}}}\ldots{\color[rgb]{0,0,1}\bm{\{}}a_{n}:=s_{n}{\color[rgb]{0,0,1}\bm{\}}} . \SoundnessAndCompletenessOfCalcMELL * Proof. We first address soundness. By induction on the derivation of \Delta;\Gamma\vdash t:A . 1. m-ax . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 30.0218pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=66.68253pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;a:A\vdash a:A$}}}}\end{array} We can take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A^{\perp},A}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to65.47218pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?w}}$}}}\hbox{\kern 4.06946pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},A^{\perp},A}$}}}}\end{array} 2. m-uax . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 31.84943pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=70.33777pt\hbox{\kern 3.00003pt$\textsc{{m-uax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta,u:A;\cdot\vdash u:A$}}}}\end{array} We can take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A^{\perp},A}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=65.47218pt\hbox{\kern 3.00003pt$\textsc{{l-?d}}$}}}\hbox{\kern 13.33334pt\hbox{$\displaystyle\vdash{{?}A^{\perp},A}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to96.8611pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?w}}$}}}\hbox{\kern 18.23611pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},{?}A^{\perp},A}$}}}}\end{array} 3. m-i \otimes . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:A\quad\Delta;\Gamma^{\prime}\vdash s:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=111.96835pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 9.72209pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash\langle t,s\rangle:A\otimes B$}}}}\end{array} We can take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{{?}\Delta^{\perp},\Gamma^{\perp},A}\end{array}\quad\begin{array}[]{c}\text{IH }\\ \vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},B}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=139.50348pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 11.38896pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},{?}\Delta^{\perp},\Gamma^{\prime\perp},A\otimes B}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to168.3924pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 36.6251pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},\Gamma^{\prime\perp},A\otimes B}$}}}}\end{array} 4. m-e \otimes . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:A\otimes B\quad\Delta;\Gamma^{\prime},a:A,b:B\vdash s:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=185.5503pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 41.83646pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash{s}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}:C$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\perp},A\otimes B}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.23608pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},A^{\perp},B^{\perp},C}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=101.19911pt\hbox{\kern 3.00003pt$\textsc{{l-$\multimap$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},A\multimap B^{\perp},C}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=219.8136pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 61.51726pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},{?}\Delta^{\perp},\Gamma^{\prime\perp},C}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to254.81363pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 89.80896pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},\Gamma^{\prime\perp},C}$}}}}\end{array} 5. m-i \invamp . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 6.16678pt\hbox{$\displaystyle\penalty\Delta;\Gamma,a:A,b:B\vdash t:{\perp}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=110.4141pt\hbox{\kern 3.00003pt$\textsc{{m-i$\invamp$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash{\invamp}(a,b).t:A^{\perp}\invamp B^{\perp}$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\perp},A^{\perp},B^{\perp},{\perp}}\quad\vdash{\text{1}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=111.50342pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 15.69447pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},A^{\perp},B^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=146.50345pt\hbox{\kern 3.00003pt$\textsc{{l-$\invamp$}}$}}}\hbox{\kern 30.5556pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},A^{\perp}\invamp B^{\perp}}$}}}}\end{array} 6. m-e \invamp_{1} . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:A\invamp B\quad\Delta;\Gamma^{\prime}\vdash s:A^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.1627pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{1}$}}$}}}\hbox{\kern 30.23602pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t\,{\color[rgb]{0,0,1}\bullet}\,s:B$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},A^{\perp}}\quad\vdash{B^{\perp},B}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=106.61798pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 3.05559pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},B,A^{\perp}\otimes B^{\perp}}$}}}}\end{array}\quad\vdash{{?}\Delta^{\perp},\Gamma^{\perp},A\invamp B}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=218.84361pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 60.92009pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},{?}\Delta^{\perp},\Gamma^{\perp},B}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to253.84364pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 89.21179pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},\Gamma^{\perp},B}$}}}}\end{array} 7. m-e \invamp_{2} . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:A\invamp B\quad\Delta;\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.7495pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{2}$}}$}}}\hbox{\kern 32.48941pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t{\color[rgb]{1,0,0}\blacktriangledown}s:A$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.72217pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=34.08325pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{A,A^{\perp}}$}}}}\end{array}\quad\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},B^{\perp}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.4201pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 19.58336pt\hbox{$\displaystyle\vdash{A,{?}\Delta^{\perp},\Gamma^{\prime\perp},A^{\perp}\otimes B^{\perp}}$}}}}\end{array}\quad\vdash{{?}\Delta^{\perp},\Gamma^{\perp},A\invamp B}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=249.64574pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 77.44786pt\hbox{$\displaystyle\vdash{A,{?}\Delta^{\perp},\Gamma^{\prime\perp},{?}\Delta^{\perp},\Gamma^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to284.64577pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 105.73956pt\hbox{$\displaystyle\vdash{A,{?}\Delta^{\perp},\Gamma^{\prime\perp},\Gamma^{\perp}}$}}}}\end{array} 8. m-i {!}{} . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;a:A\vdash t:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=62.23003pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}}$}}}\hbox{\kern 3.65259pt\hbox{$\displaystyle\Delta;\cdot\vdash{!}{a.t}:{!}{A^{\perp}}$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \vdash{{?}\Delta^{\perp},A^{\perp},{\perp}}\end{array}\quad\vdash{\text{1}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=84.00006pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 19.30562pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},A^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=119.00009pt\hbox{\kern 3.00003pt$\textsc{{l-!p}}$}}}\hbox{\kern 36.25005pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},{!}{A^{\perp}}}$}}}}\end{array} 9. m-e {!}{} . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:{!}{A}\quad\Delta,u:A;\Gamma^{\prime}\vdash s:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=137.74632pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 23.1943pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash s{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}}:C$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\perp},{!}{A}}\quad\vdash{{?}\Delta^{\perp},{?}A^{\perp},\Gamma^{\prime\perp},C}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=143.91806pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 23.56949pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},{?}\Delta^{\perp},\Gamma^{\prime\perp},C}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to178.91809pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 51.86119pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},\Gamma^{\prime\perp},C}$}}}}\end{array} 10. m-i {?} . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:A^{\perp};\Gamma\vdash t:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=79.11314pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 7.45822pt\hbox{$\displaystyle\Delta;\Gamma\vdash{?}u.t:{?}A$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},{?}A,\Gamma^{\perp},{\perp}}\quad\vdash{\text{1}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to90.5278pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 15.69447pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},{?}A,\Gamma^{\perp}}$}}}}\end{array} 11. m-e {?} . There are two cases. \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash s:{?}A\quad\Delta;a:A\vdash t:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=125.3896pt\hbox{\kern 3.00003pt$\textsc{{m-e${?}$}}$}}}\hbox{\kern 31.75171pt\hbox{$\displaystyle\Delta;\Gamma\vdash{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s}:{\perp}$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\perp},{?}A}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},A^{\perp},{\perp}}\quad\vdash{\text{1}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=76.77777pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 15.69447pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},A^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=111.7778pt\hbox{\kern 3.00003pt$\textsc{{l-!p}}$}}}\hbox{\kern 32.6389pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},{!}{A^{\perp}}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=210.36116pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 72.31947pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},{?}\Delta^{\perp},\Gamma^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to245.36119pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 100.61118pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=275.63898pt\hbox{\kern 3.00003pt$\textsc{{l-${\perp}$}}$}}}\hbox{\kern 110.61118pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},{\perp}}$}}}}\end{array} 12. m-i {\perp} . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:B\quad\Delta;\Gamma^{\prime}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=118.30515pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 21.23952pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t\lightning s:{\perp}$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\perp},B}\quad\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},B^{\perp}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=128.61798pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 22.07289pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},{?}\Delta^{\perp},\Gamma^{\perp},\Gamma^{\prime\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=163.61801pt\hbox{\kern 3.00003pt$\textsc{{l-${\perp}$}}$}}}\hbox{\kern 34.43402pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},{?}\Delta^{\perp},\Gamma^{\perp},\Gamma^{\prime\perp},{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to192.22913pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 59.53127pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},\Gamma^{\prime\perp},{\perp}}$}}}}\end{array} 13. m-i 1 . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.06947pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=32.77786pt\hbox{\kern 3.00003pt$\textsc{{m-i$\text{1}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\cdot\vdash\star:\text{1}$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.62495pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=13.88882pt\hbox{\kern 3.00003pt$\textsc{{l-$\text{1}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\text{1}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to39.99995pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?w}}$}}}\hbox{\kern 2.26387pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\text{1}}$}}}}\end{array} 14. m-e 1 . The derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t:\text{1}\quad\Delta;\Gamma^{\prime}\vdash s:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=106.10385pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 9.30548pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash s{\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array} We take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\perp},\text{1}}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.13889pt\hbox{$\displaystyle\penalty\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},A}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=68.6666pt\hbox{\kern 3.00003pt$\textsc{{l-${\perp}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\prime\perp},A,{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=159.19437pt\hbox{\kern 3.00003pt$\textsc{{l-cut}}$}}}\hbox{\kern 31.38887pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},{?}\Delta^{\perp},\Gamma^{\prime\perp},A}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\hbox to194.1944pt{$\mathord{=}\mkern-6.0mu\leaders{\hbox{$\mkern-2.0mu=\mkern-2.0mu$}}{\hfill}\mkern-6.0mu\mathord{=}$}\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 59.68057pt\hbox{$\displaystyle\vdash{{?}\Delta^{\perp},\Gamma^{\perp},\Gamma^{\prime\perp},A}$}}}}\end{array} Next we address completeness. By induction on the size of the cut-free derivation of \vdash{\Gamma_{0}} . 1. l-ax : The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 14.30896pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=35.25684pt\hbox{\kern 3.00003pt$\textsc{{l-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{B,B^{\perp}}$}}}}\end{array} There are two cases depending on whether A=B or A=B^{\perp} . (a) A=B . Then \Gamma=B^{\perp} and \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 28.9419pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=64.5227pt\hbox{\kern 3.00003pt$\textsc{{m-uax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\cdot;a:B\vdash a:B$}}}}\end{array} (b) A=B^{\perp} . Then \Gamma=B and \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 33.30304pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=73.245pt\hbox{\kern 3.00003pt$\textsc{{m-uax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\cdot;a:B^{\perp}\vdash a:B^{\perp}$}}}}\end{array} 2. l- \otimes : The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma_{1},B_{1}}\quad\vdash{\Gamma_{2},B_{2}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=80.50694pt\hbox{\kern 3.00003pt$\textsc{{l-$\otimes$}}$}}}\hbox{\kern 3.05557pt\hbox{$\displaystyle\vdash{\Gamma_{1},\Gamma_{2},B_{1}\otimes B_{2}}$}}}}\end{array} There are three cases depending on whether A=B_{1}\otimes B_{2} or A\in\Gamma_{1} or A\in\Gamma_{2} . (a) A=B_{1}\otimes B_{2} . By the IH twice, \cdot;\Gamma_{1}^{\perp}\vdash s_{1}:B_{1} and \cdot;\Gamma_{2}^{\perp}\vdash s_{2}:B_{2} . We conclude from the following derivation \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \cdot;\Gamma_{1}^{\perp}\vdash s_{1}:B_{1}\end{array}\quad\begin{array}[]{c}\text{IH }\\ \cdot;\Gamma_{2}^{\perp}\vdash s_{2}:B_{2}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=126.38213pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 5.5557pt\hbox{$\displaystyle\cdot;\Gamma_{1}^{\perp},\Gamma_{2}^{\perp}\vdash\langle s_{1},s_{2}\rangle:B_{1}\otimes B_{2}$}}}}\end{array} Thus it suffices to take t:=\langle s_{1},s_{2}\rangle . (b) A\in\Gamma_{1} . Then \Gamma_{1}=\Gamma_{3},A . Hence by IH there exist terms s,r such that: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \cdot;\Gamma_{3}^{\perp},a:B_{1}^{\perp}\vdash s:A\end{array}\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 55.86778pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=118.37448pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\cdot;b:B_{1}^{\perp}\invamp B_{2}^{\perp}\vdash b:B_{1}^{\perp}\invamp B_{2}^{\perp}$}}}}\end{array}\begin{array}[]{c}\text{IH }\\ \cdot;\Gamma_{2}^{\perp}\vdash r:B_{2}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=209.12578pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{2}$}}$}}}\hbox{\kern 42.92712pt\hbox{$\displaystyle\cdot;b:B_{1}^{\perp}\invamp B_{2}^{\perp},\Gamma_{2}^{\perp}\vdash b{\color[rgb]{1,0,0}\blacktriangledown}r:B_{1}^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=342.75511pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 88.0346pt\hbox{$\displaystyle\cdot;\Gamma_{3}^{\perp},\Gamma_{2}^{\perp},b:B_{1}^{\perp}\invamp B_{2}^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}a:=b{\color[rgb]{1,0,0}\blacktriangledown}r{\color[rgb]{0,0,1}\bm{\}}}:A$}}}}\end{array} so it suffices to take t:=s{\color[rgb]{0,0,1}\bm{\{}}a:=b{\color[rgb]{1,0,0}\blacktriangledown}r{\color[rgb]{0,0,1}\bm{\}}} . (c) A\in\Gamma_{2} . Then \Gamma_{2}=\Gamma_{3},A . Hence by IH there exist terms s,r such that: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\cdot;a:B_{1}^{\perp}\invamp B_{2}^{\perp}\vdash a:B_{1}^{\perp}\invamp B_{2}^{\perp}\quad\begin{array}[]{c}\text{IH }\\ \cdot;\Gamma_{1}^{\perp}\vdash r:B_{1}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=184.16975pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{1}$}}$}}}\hbox{\kern 27.78827pt\hbox{$\displaystyle\cdot;a:B_{1}^{\perp}\invamp B_{2}^{\perp},\Gamma_{1}^{\perp}\vdash a\,{\color[rgb]{0,0,1}\bullet}\,r:B_{2}^{\perp}$}}}}\end{array}\quad\cdot;\Gamma_{3}^{\perp},b:B_{2}^{\perp}\vdash s:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=316.80487pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 72.89578pt\hbox{$\displaystyle\cdot;\Gamma_{1}^{\perp},\Gamma_{3}^{\perp},a:B_{1}^{\perp}\invamp B_{2}^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}b:=a\,{\color[rgb]{0,0,1}\bullet}\,r{\color[rgb]{0,0,1}\bm{\}}}:A$}}}}\end{array} 3. l- \invamp : The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 2.63887pt\hbox{$\displaystyle\penalty\vdash{\Gamma_{1},B_{1},B_{2}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=58.93741pt\hbox{\kern 3.00003pt$\textsc{{l-$\invamp$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma_{1},B_{1}\invamp B_{2}}$}}}}\end{array} There are two cases depending on whether A=B_{1}\invamp B_{2} or A\in\Gamma_{1} . (a) A=B_{1}\invamp B_{2} . By the IH, \cdot;\overline{a}:\Gamma_{1}^{\perp},b:B_{1}\vdash s:B_{2} . We conclude from the derivation: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \cdot;\overline{a}:\Gamma_{1}^{\perp},b:B_{1}^{\perp}\vdash s:B_{2}\end{array}\quad\cdot;c:B_{2}^{\perp}\vdash c:B_{2}^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=164.27295pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 14.0384pt\hbox{$\displaystyle\cdot;\overline{a}:\Gamma_{1}^{\perp},b:B_{1}^{\perp},c:B_{2}^{\perp}\vdash s\lightning c:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=179.27295pt\hbox{\kern 3.00003pt$\textsc{{m-i$\invamp$}}$}}}\hbox{\kern 22.3855pt\hbox{$\displaystyle\cdot;\overline{a}:\Gamma_{1}^{\perp}\vdash{\invamp}(b,c).s\lightning c:B_{1}\invamp B_{2}$}}}}\end{array} Thus it suffices to take t:={\invamp}(b,c).s\lightning c . (b) A\in\Gamma_{1} . Thus \Gamma_{1}=\Gamma_{2},A . By the IH \cdot;\overline{a}:\Gamma_{2}^{\perp},b:B_{1}^{\perp},c:B_{2}^{\perp}\vdash s:A . Then we construct the following derivation and conclude: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\cdot;d:B_{1}^{\perp}\otimes B_{2}^{\perp}\vdash d:B_{1}^{\perp}\otimes B_{2}^{\perp}\quad\begin{array}[]{c}\text{IH }\\ \cdot;\overline{a}:\Gamma_{2}^{\perp},b:B_{1}^{\perp},c:B_{2}^{\perp}\vdash s:A\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=260.12523pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 52.25665pt\hbox{$\displaystyle\cdot;d:B_{1}^{\perp}\otimes B_{2}^{\perp},\overline{a}:\Gamma_{2}^{\perp}\vdash{s}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=d{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array} Thus it suffices to take t:={s}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=d{\color[rgb]{1,0,0}\bm{]}} . 4. l-!p : The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 0.55557pt\hbox{$\displaystyle\penalty\vdash{{?}\Gamma_{1},B}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=37.98956pt\hbox{\kern 3.00003pt$\textsc{{l-!p}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{{?}\Gamma_{1},{!}{B}}$}}}}\end{array} There are two cases depending on whether A={!}{B} or A\in{?}\Gamma_{1} . (a) A={!}{B} . By the IH \cdot;\overline{a}:{!}{\Gamma_{1}^{\perp}}\vdash s:B . By Lem. 32 ( 2 ), we have \overline{u}:\Gamma_{1}^{\perp};\cdot\vdash s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}:B . We thus derive: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.88898pt\hbox{$\displaystyle\penalty\overline{u}:\Gamma_{1}^{\perp};\cdot\vdash s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}:B$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=93.66333pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}'}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\overline{u}:\Gamma_{1}^{\perp};\cdot\vdash{!}{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}})}:{!}{B}$}}}}\end{array} Finally, from Lem. 32 ( 1 ), we obtain \cdot;\overline{b}:{!}{\Gamma_{1}^{\perp}}\vdash{!}{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}})}{\color[rgb]{1,0,0}\bm{[}}{!}{\overline{u}}:=\overline{b}{\color[rgb]{1,0,0}\bm{]}}:{!}{B} . Thus it suffices to take t:={!}{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}})}{\color[rgb]{1,0,0}\bm{[}}{!}{\overline{u}}:=\overline{b}{\color[rgb]{1,0,0}\bm{]}} . (b) A\in{?}\Gamma_{1} . Thus {?}\Gamma_{1}={?}\Gamma_{2},{?}A_{1} and A={?}A_{1} . By the IH \cdot;\overline{a}:{!}{\Gamma_{1}^{\perp}},b:B^{\perp}\vdash s:{?}A_{1} . By Lem. 32 ( 2 ), we have \overline{u}:\Gamma_{1}^{\perp};b:B^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}:{?}A_{1} . By Weakening we have v:A_{1}^{\perp},\overline{u}:\Gamma_{1}^{\perp};b:B^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}:{?}A_{1} . We reason as follows \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty v:A_{1}^{\perp},\overline{u}:\Gamma_{1}^{\perp};c:{?}B^{\perp}\vdash c:{?}B^{\perp}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 25.14783pt\hbox{$\displaystyle\penalty\begin{array}[]{l}v:A_{1}^{\perp},\overline{u}:\Gamma_{1}^{\perp};b:B^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}:{?}A_{1}\\ v:A_{1}^{\perp},\overline{u}:\Gamma_{1}^{\perp};\cdot\vdash{!}{d.(d\lightning v)}:{!}{A_{1}^{\perp}}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=188.60953pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle v:A_{1}^{\perp},\overline{u}:\Gamma_{1}^{\perp};b:B^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}\lightning{!}{d.(d\lightning v)}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=335.94952pt\hbox{\kern 3.00003pt$\textsc{{m-e${?}$}}$}}}\hbox{\kern 60.72987pt\hbox{$\displaystyle v:A_{1}^{\perp},\overline{u}:\Gamma_{1}^{\perp};c:{?}B^{\perp}\vdash{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}\lightning{!}{d.(d\lightning v)}){\color[rgb]{0,0.6,0}\blacktriangleright}^{b}c}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=371.78288pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 82.47285pt\hbox{$\displaystyle\overline{u}:\Gamma_{1}^{\perp};c:{?}B^{\perp}\vdash{?}v.{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}\lightning{!}{d.(d\lightning v)}){\color[rgb]{0,0.6,0}\blacktriangleright}^{b}c}:{?}A_{1}$}}}}\end{array} Finally, from \overline{u}:\Gamma_{1}^{\perp};c:{?}B^{\perp}\vdash{?}v.{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}\lightning{!}{d.(d\lightning v)}){\color[rgb]{0,0.6,0}\blacktriangleright}^{b}c}:{?}A_{1} and Lem. 32 ( 2 ), we have \cdot;\overline{d}:{!}{\Gamma_{1}^{\perp}},c:{?}B^{\perp}\vdash{?}v.{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}\lightning{!}{d.(d\lightning v)}){\color[rgb]{0,0.6,0}\blacktriangleright}^{b}c}{\color[rgb]{1,0,0}\bm{[}}{!}{\overline{u}}:=\overline{d}{\color[rgb]{1,0,0}\bm{]}}:{?}A_{1} . Thus it suffices to take t:={?}v.{(s{\color[rgb]{0,0,1}\bm{\{}}\overline{a}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}\lightning{!}{d.(d\lightning v)}){\color[rgb]{0,0.6,0}\blacktriangleright}^{b}c}{\color[rgb]{1,0,0}\bm{[}}{!}{\overline{u}}:=\overline{d}{\color[rgb]{1,0,0}\bm{]}} . 5. l-?w : The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 7.79341pt\hbox{$\displaystyle\penalty\vdash{\Gamma_{1}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=35.21179pt\hbox{\kern 3.00003pt$\textsc{{l-?w}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma_{1},{?}B}$}}}}\end{array} There are two cases depending on whether A={?}B or A\in\Gamma_{1} . (a) A={?}B . Note that \Gamma_{1} cannot be empty since MELL is consistent. Let \Gamma_{1}=\Gamma_{2},C . By the IH \cdot;\overline{a}:\Gamma_{2}^{\perp}\vdash s:C . By weakening (Lem. 30 ) u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp}\vdash s:C . Then we can construct the derivation below and conclude: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp}\vdash s:C\quad u:B^{\perp};c:C^{\perp}\vdash c:C^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=186.77428pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 29.40695pt\hbox{$\displaystyle u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp},c:C^{\perp}\vdash s\lightning c:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=223.71875pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 50.61523pt\hbox{$\displaystyle\cdot;\overline{a}:\Gamma_{2}^{\perp},c:C^{\perp}\vdash{?}u.s\lightning c:{?}B$}}}}\end{array} Thus it suffices to take t:={?}u.s\lightning c . (b) A\in\Gamma_{1} . Then \Gamma_{1}=\Gamma_{2},A . By the IH \cdot;\overline{a}:\Gamma_{2}^{\perp}\vdash t:A . By weakening Lem. 30 u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp}\vdash t:A . By Lem. 32 ( 1 ), \cdot;b:{!}{B^{\perp}},\overline{a}:\Gamma_{2}^{\perp}\vdash t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=b{\color[rgb]{1,0,0}\bm{]}}:A . We thus conclude. 6. l-?d : The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 1.5278pt\hbox{$\displaystyle\penalty\vdash{\Gamma_{1},B}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=35.21179pt\hbox{\kern 3.00003pt$\textsc{{l-?d}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma_{1},{?}B}$}}}}\end{array} There are two cases depending on whether A={?}B or A\in\Gamma_{1} . (a) A={?}B . By the IH \cdot;\overline{a}:\Gamma_{1}^{\perp}\vdash s:B . By weakening u:B^{\perp};\overline{a}:\Gamma_{1}^{\perp}\vdash s:B . We conclude as follows: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty u:B^{\perp};\overline{a}:\Gamma_{1}^{\perp}\vdash s:B\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 35.11679pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=70.23358pt\hbox{\kern 3.00003pt$\textsc{{m-uax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle u:B^{\perp};\cdot\vdash u:B^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=205.95792pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 53.6591pt\hbox{$\displaystyle u:B^{\perp};\overline{a}:\Gamma_{1}^{\perp}\vdash s\lightning u:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=242.90239pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 74.86737pt\hbox{$\displaystyle\cdot;\overline{a}:\Gamma_{1}^{\perp}\vdash{?}u.s\lightning u:{?}B$}}}}\end{array} Thus it suffices to take t:={?}u.s\lightning u . (b) A\in\Gamma_{1} . Then \Gamma_{1}=\Gamma_{2},A . By the IH \cdot;\overline{a}:\Gamma_{2}^{\perp},b:B^{\perp}\vdash s:A . By weakening Lem. 30 , u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp},b:B^{\perp}\vdash s:A . Then we obtain u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}b:=u{\color[rgb]{0,0,1}\bm{\}}}:A as follows: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty u:B^{\perp};\cdot\vdash u:B^{\perp}\quad u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp},b:B^{\perp}\vdash s:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=193.77713pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 36.67285pt\hbox{$\displaystyle u:B^{\perp};\overline{a}:\Gamma_{2}^{\perp},\vdash s{\color[rgb]{0,0,1}\bm{\{}}b:=u{\color[rgb]{0,0,1}\bm{\}}}:A$}}}}\end{array} By Lem. 32 ( 1 ), \cdot;b:{!}{B^{\perp}},\overline{a}:\Gamma_{2}^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}b:=u{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=b{\color[rgb]{1,0,0}\bm{]}}:A . We thus conclude, taking t:=s{\color[rgb]{0,0,1}\bm{\{}}b:=u{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=b{\color[rgb]{1,0,0}\bm{]}} . 7. l-?c : The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\vdash{\Gamma_{1},{?}B,{?}B}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=50.79861pt\hbox{\kern 3.00003pt$\textsc{{l-?c}}$}}}\hbox{\kern 7.79341pt\hbox{$\displaystyle\vdash{\Gamma_{1},{?}B}$}}}}\end{array} There are two cases depending on whether A={?}B or A\in\Gamma_{1} . (a) A={?}B . By the IH \cdot;\overline{a}:\Gamma_{1}^{\perp},b:{!}{B^{\perp}}\vdash s:{?}B . By Lem. 32 ( 2 ), u:B^{\perp};\overline{a}:\Gamma_{1}^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}a:={!}{u}{\color[rgb]{0,0,1}\bm{\}}}:{?}B . We then construct the following derivation and conclude: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty u:B^{\perp};\overline{a}:\Gamma_{1}^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}a:={!}{u}{\color[rgb]{0,0,1}\bm{\}}}:{?}B\quad u:B^{\perp};\cdot\vdash{!}{u}:{!}{B^{\perp}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=196.96867pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 28.10359pt\hbox{$\displaystyle u:B^{\perp};\overline{a}:\Gamma_{1}^{\perp}\vdash(s{\color[rgb]{0,0,1}\bm{\{}}a:={!}{u}{\color[rgb]{0,0,1}\bm{\}}})\lightning{!}{u}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=233.91315pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 49.31189pt\hbox{$\displaystyle\cdot;\overline{a}:\Gamma_{1}^{\perp}\vdash{?}u.(s{\color[rgb]{0,0,1}\bm{\{}}a:={!}{u}{\color[rgb]{0,0,1}\bm{\}}})\lightning{!}{u}:{?}B\par$}}}}\end{array} Thus it suffices to take t:={?}u.(s{\color[rgb]{0,0,1}\bm{\{}}a:={!}{u}{\color[rgb]{0,0,1}\bm{\}}})\lightning{!}{u} . (b) A\in\Gamma_{1} . Then \Gamma_{1}=\Gamma_{2},A . We reason as follows \begin{array}[]{rl}\cdot;\overline{a}:\Gamma_{2}^{\perp},b_{1}:{!}{B^{\perp}},b_{2}:{!}{B^{\perp}}\vdash s:A&IH\\ u_{1}:B^{\perp},u_{2}:B^{\perp};\overline{a}:\Gamma_{2}^{\perp}\vdash s{\color[rgb]{0,0,1}\bm{\{}}\overline{b}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}:A&Lem.~\ref{lemma:unrestricted_eq_bang_linear}(\ref{from_lin})\\ u_{1}:B^{\perp};\overline{a}:\Gamma_{2}^{\perp}\vdash(s{\color[rgb]{0,0,1}\bm{\{}}\overline{b}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}){\color[rgb]{0,0,1}\bm{\{}}u_{2}:=u_{1}{\color[rgb]{0,0,1}\bm{\}}}:A&Lem.~\ref{lemma:weakening_and_contraction}\\ \cdot;\overline{a}:\Gamma_{2}^{\perp},b:{!}{B^{\perp}}\vdash(s{\color[rgb]{0,0,1}\bm{\{}}\overline{b}:=\overline{{!}{u}}{\color[rgb]{0,0,1}\bm{\}}}){\color[rgb]{0,0,1}\bm{\{}}u_{2}:=u_{1}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u_{1}}:=b{\color[rgb]{1,0,0}\bm{]}}:A&Lem.~\ref{lemma:unrestricted_eq_bang_linear}(\ref{to_lin})\end{array} 8. l- 1 . The derivation ends in: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.62495pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=13.88882pt\hbox{\kern 3.00003pt$\textsc{{l-$\text{1}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\text{1}}$}}}}\end{array} We then take: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 11.40277pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=29.44446pt\hbox{\kern 3.00003pt$\textsc{{m-i$\text{1}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\cdot;\cdot\vdash\star:\text{1}$}}}}\end{array} 9. l- {\perp} . The derivation ends in: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.1389pt\hbox{$\displaystyle\penalty\vdash{\Gamma}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=25.41664pt\hbox{\kern 3.00003pt$\textsc{{l-${\perp}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\vdash{\Gamma,{\perp}}$}}}}\end{array} We consider two cases depending on whether A={\perp} or A\in\Gamma . (a) A={\perp} . Since MELL is consistent, \Gamma cannot be empty. Thus \Gamma=\Gamma_{1},B . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ \cdot;\Gamma_{1}^{\perp}\vdash s:B\end{array}\quad\cdot;a:B^{\perp}\vdash a:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=140.2414pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 20.96179pt\hbox{$\displaystyle\cdot;\Gamma_{1}^{\perp},a:B^{\perp}\vdash s\lightning a:{\perp}$}}}}\end{array} Thus it suffices to take t:=s\lightning a . (b) A\in\Gamma . Then \Gamma=\Gamma_{1},A . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\cdot;a:\text{1}\vdash a:\text{1}\quad\begin{array}[]{c}\text{IH }\\ \cdot;\Gamma_{1}^{\perp}\vdash s:A\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=118.64777pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 10.13884pt\hbox{$\displaystyle\cdot;\Gamma_{1}^{\perp},a:\text{1}\vdash s{\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array} Thus it suffices to take t:=s{\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}} . ∎ \ContrasubstitutionLemma * Proof. By induction on the size of the derivation of \Delta;\Gamma_{1},a:A\vdash t:B . We omit the cases already addressed in A and detail only the new cases below. 1. Case m-ax . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 30.0218pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=66.68253pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;a:A\vdash a:A$}}}}\end{array} Then B=A and we conclude from the hypothesis. 2. Case m-uax . This case is not possible since a does not occur in u . 3. Case m-e \otimes . There are two cases. (a) a:A is used to type t_{2} . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A\vdash t_{2}:C\otimes D\quad\Delta;\Gamma_{12},b:C,c:D\vdash t_{1}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=227.96889pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 38.22472pt\hbox{$\displaystyle\Delta;\Gamma_{11},a:A,\Gamma_{12}\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A\vdash t_{2}:C\otimes D\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{12},b:C,c:D\vdash t_{1}:B\quad\Delta;\Gamma_{2}\vdash s:B^{\perp}\par$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=180.20473pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 21.2395pt\hbox{$\displaystyle\Delta;\Gamma_{12},b:C,c:D,\Gamma_{2}\vdash t_{1}\lightning s:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=217.1492pt\hbox{\kern 3.00003pt$\textsc{{m-i$\invamp$}}$}}}\hbox{\kern 33.2672pt\hbox{$\displaystyle\Delta;\Gamma_{12},\Gamma_{2}\vdash{\invamp}(b,c).t_{1}\lightning s:C^{\perp}\invamp D^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=371.1181pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 95.61696pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},\Gamma_{2}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{\invamp}(b,c).t_{1}\lightning s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} (b) a:A is used to type t_{1} . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11}\vdash t_{2}:C\otimes D\quad\Delta;\Gamma_{12},a:A,b:C,c:D\vdash t_{1}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=225.19118pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 35.447pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},a:A\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11}\vdash t_{2}:C\otimes D\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{12},a:A,b:C,c:D\vdash t_{1}:B\quad\Delta;\Gamma_{2}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=205.76825pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 21.97552pt\hbox{$\displaystyle\Delta;\Gamma_{12},b:C,c:D,\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=309.45145pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 58.3422pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},a:A\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} 4. Case m-i \invamp \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 3.0695pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{1},a:A,b:B_{1},c:B_{2}\vdash t:{\perp}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=140.09221pt\hbox{\kern 3.00003pt$\textsc{{m-i$\invamp$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma_{1},a:A\vdash{\invamp}(b,c).t:B_{1}^{\perp}\invamp B_{2}^{\perp}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{2}\vdash s:B_{1}\otimes B_{2}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{1},a:A,b:B_{1},c:B_{2}\vdash t:{\perp}\quad\Delta;\cdot\vdash\star:\text{1}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=176.73108pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 15.59717pt\hbox{$\displaystyle\Delta;\Gamma_{1},b:B_{1},c:B_{2}\vdash t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=282.30038pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 67.82617pt\hbox{$\displaystyle\Delta;\Gamma_{1},\Gamma_{2}\vdash t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=s{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} 5. Case m-i {!}{} . This case is not possible since \Gamma_{1},a:A is not the empty context. 6. Case m-e {!}{} . Then t=t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}} for some t_{1},t_{2} and u . There are two cases depending on whether a:A is used to type t_{1} or t_{2} . (a) a:A is used to type t_{1} . Then \Gamma_{1}=\Gamma_{11},\Gamma_{12} and the derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11}\vdash t_{2}:{!}{C}\quad\Delta,u:C;\Gamma_{12},a:A\vdash t_{1}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=180.73853pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 19.39021pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},a:A\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} By weakening (Lem. 30 ), \Delta,u:C;\Gamma_{2}\vdash s:B^{\perp} . Thus we use the IH to construct the derivation: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11}\vdash t_{2}:{!}{C}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:C;\Gamma_{12},a:A\vdash t_{1}:B\quad\Delta,u:C;\Gamma_{1}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=208.45929pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 35.15787pt\hbox{$\displaystyle\Delta,u:C;\Gamma_{12},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=316.41907pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 74.57587pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} (b) a:A is used to type t_{2} . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A\vdash t_{2}:{!}{C}\quad\Delta,u:C;\Gamma_{12}\vdash t_{1}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=180.73853pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 19.39021pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},a:A\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} By weakening (Lem. 30 ), \Delta,u:C;\Gamma_{2}\vdash s:B^{\perp} . Thus we use the IH to construct the derivation: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A\vdash t_{2}:{!}{C}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:C;\Gamma_{12}\vdash t_{1}:B\quad\Delta,u:C;\Gamma_{2}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=180.11806pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 33.03299pt\hbox{$\displaystyle\Delta,u:C;\Gamma_{12},\Gamma_{2}\vdash t_{1}\lightning s:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=217.06253pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 53.21347pt\hbox{$\displaystyle\Delta;\Gamma_{12},\Gamma_{2}\vdash{?}u.t_{1}\lightning s:{?}C^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=347.47466pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 92.74254pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},\Gamma_{2}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{?}u.t_{1}\lightning s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} 7. Case m-i {?} . Then B={?}B_{1} , for some type B_{1} , and t={?}u.t_{1} , for some t_{1} and u . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:B_{1}^{\perp};\Gamma_{1},a:A\vdash t_{1}:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=111.45801pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 5.21516pt\hbox{$\displaystyle\Delta;\Gamma_{1},a:A\vdash{?}u.t_{1}:{?}B_{1}$}}}}\end{array} We use the IH and construct the derivation (note that B^{\perp}={!}{B_{1}^{\perp}} ): \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{2}\vdash s:B^{\perp}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:B_{1}^{\perp};\Gamma_{1},a:A\vdash t_{1}:{\perp}\quad\Delta,u:B_{1}^{\perp};\cdot\vdash\star:\text{1}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=186.57489pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 31.76668pt\hbox{$\displaystyle\Delta,u:B_{1}^{\perp};\Gamma_{1}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=292.77963pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 76.99226pt\hbox{$\displaystyle\Delta;\Gamma_{1},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} 8. Case m-e {?} . Then t={t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}} and B={\perp} and thus B^{\perp}=\text{1} . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{1},a:A\vdash t_{3}:{?}C\quad\Delta;c:C\vdash t_{2}:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=157.54633pt\hbox{\kern 3.00003pt$\textsc{{m-e${?}$}}$}}}\hbox{\kern 29.23927pt\hbox{$\displaystyle\Delta;\Gamma_{1},a:A\vdash{t_{2}{\color[rgb]{0,0.6,0}\blacktriangleright}^{c}t_{3}}:{\perp}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{2}\vdash s:B^{\perp}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{1},a:A\vdash t_{3}:{?}C\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;c:C\vdash t_{2}:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=63.34259pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}}$}}}\hbox{\kern 2.26375pt\hbox{$\displaystyle\Delta;\cdot\vdash{!}{c.t_{2}}:{!}{C^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=189.76859pt\hbox{\kern 3.00003pt$\textsc{{m-cos}}$}}}\hbox{\kern 42.20953pt\hbox{$\displaystyle\Delta;\Gamma_{1}\vdash t_{3}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{!}{c.t_{2}}{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=299.08444pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 74.57234pt\hbox{$\displaystyle\Delta;\Gamma_{1},\Gamma_{2}\vdash t_{3}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{!}{c.t_{2}}{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} 9. Case m-i {\perp} . Then B={\perp} , t=t_{1}\lightning t_{2} , and there are two cases depending on whether a\in\mathsf{fv}(t_{1}) or a\in\mathsf{fv}(t_{2}) . (a) a\in\mathsf{fv}(t_{1}) . Then the derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A\vdash t_{1}:C\quad\Delta;\Gamma_{12}\vdash t_{2}:C^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=159.89944pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 19.62634pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},a:A\vdash t_{1}\lightning t_{2}:{\perp}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{2}\vdash s:\text{1}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A\vdash t_{1}:C\quad\Delta;\Gamma_{12}\vdash t_{2}:C^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=159.89944pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 20.36235pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{2}{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=254.48969pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 45.36235pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{2}{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} (b) a\in\mathsf{fv}(t_{2}) . Then the derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11}\vdash t_{1}:C\quad\Delta;\Gamma_{12},a:A\vdash t_{2}:C^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=159.89944pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 19.62634pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},a:A\vdash t_{1}\lightning t_{2}:{\perp}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{2}\vdash s:\text{1}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{12},a:A\vdash t_{2}:C\quad\Delta;\Gamma_{11}\vdash t_{1}:C^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=159.89944pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 20.36235pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=254.48969pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 45.36235pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},\Gamma_{2}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} 10. Case m-i 1 . This case is not possible since then t=\star and \mathsf{fv}(\star)=\varnothing . \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 13.06947pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=32.77786pt\hbox{\kern 3.00003pt$\textsc{{m-i$\text{1}$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\cdot\vdash\star:\text{1}$}}}}\end{array} 11. Case m-e 1 . Then t=t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}} , and there are two cases depending on whether a\in\mathsf{fv}(t_{1}) or a\in\mathsf{fv}(t_{2}) . (a) a\in\mathsf{fv}(t_{1}) . Then the derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11}\vdash t_{2}:\text{1}\quad\Delta;\Gamma_{12},a:A,\vdash t_{1}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=150.40028pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 5.13892pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},a:A,\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11}\vdash t_{2}:\text{1}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{12},a:A\vdash t_{1}:B\quad\Delta;\Gamma_{2}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=155.72992pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 21.97552pt\hbox{$\displaystyle\Delta;\Gamma_{12},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=232.99385pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 34.61443pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},\Gamma_{2}\vdash t_{1}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:A^{\perp}$}}}}\end{array} (b) a\in\mathsf{fv}(t_{2}) . Then the derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A,\vdash t_{2}:\text{1}\quad\Delta;\Gamma_{12}\vdash t_{1}:B$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=150.40028pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 7.36111pt\hbox{$\displaystyle\Delta;\Gamma_{11},a:A,\Gamma_{12}\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:B$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{11},a:A,\vdash t_{2}:\text{1}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{12}\vdash t_{1}:B\quad\Delta;\Gamma_{2}\vdash s:B^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=127.38869pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 19.85065pt\hbox{$\displaystyle\Delta;\Gamma_{12},\Gamma_{2}\vdash t_{1}\lightning s:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=234.66055pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 42.67001pt\hbox{$\displaystyle\Delta;\Gamma_{11},\Gamma_{12},\Gamma_{2}\vdash t_{2}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t_{1}\lightning s{\color[rgb]{1,0,0}\bm{\}}}:A^{\perp}$}}}}\end{array} ∎ Appendix C Equivalence C.1 Substitution and structural equivalence Lemma 33 . t\equiv s implies \mathsf{fv}(t)=\mathsf{fv}(s) Proof. By induction on the derivation of t\equiv s . ∎ Corollary 34 . \equiv is consistent. Proof. From Lem. 33 , we deduce that a\equiv b is not derivable, for arbitrary linear variables a and b such that a\neq b . ∎ Lemma 35 (Contrasubstitution is compatible with Equivalence (Right Case)) . Let t be a linear term and a\in\mathsf{fv}(t) . Suppose s\equiv r . Then t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}} . Proof. By induction on t . ∎ We say that r is contra-free for a in t , if the free variables of r are not bound in t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}} . Lemma 36 (Eliminator flotation) . Let t be a linear term and a\in\mathsf{fv}(t) . Suppose \mathsf{fv}(\mathtt{p})\cap\mathsf{fv}(t)=\varnothing and r is contra-free for a in t . Then t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\}}} Proof. By induction on t . ∎ Lemma 37 (Eliminator flotation) . Let t be a linear term and a\in\mathsf{fv}(t) . Suppose \mathsf{fv}(\mathtt{p})\cap\mathsf{fv}(t)=\varnothing and r is free for a in t . Then t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{0,0,1}\bm{\}}} Proof. By induction on t . ∎ Lemma 38 . Suppose s\equiv r . Then 1. t{\color[rgb]{0,0,1}\bm{\{}}x:=s{\color[rgb]{0,0,1}\bm{\}}}\equiv s{\color[rgb]{0,0,1}\bm{\{}}x:=r{\color[rgb]{0,0,1}\bm{\}}} ; and 2. s{\color[rgb]{0,0,1}\bm{\{}}x:=t{\color[rgb]{0,0,1}\bm{\}}}\equiv r{\color[rgb]{0,0,1}\bm{\{}}x:=t{\color[rgb]{0,0,1}\bm{\}}} ; and Proof. By induction on t . ∎ Remark 39 . Since \mathsf{fv}(\star)=\varnothing we have: 1. \langle t,s\rangle{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv\langle t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}},s\rangle\equiv\langle t,s{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\rangle . 2. (t\,{\color[rgb]{0,0,1}\bullet}\,s){\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\,{\color[rgb]{0,0,1}\bullet}\,s\equiv t\,{\color[rgb]{0,0,1}\bullet}\,s{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}} . 3. (t{\color[rgb]{1,0,0}\blacktriangledown}s){\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\blacktriangledown}s\equiv t{\color[rgb]{1,0,0}\blacktriangledown}s{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}} . 4. (t\lightning s){\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\lightning s\equiv t\lightning s{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}} . 5. ({\invamp}(a,b).t){\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv{\invamp}(a,b).t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}} , if a,b\notin\mathsf{flv}(r) . 6. t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=s{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=s{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=s{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{]}} . 7. ({?}u.t){\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv{?}u.t{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}} , if u\notin\mathsf{fv}(r) . Lemma 40 (Generalized Simpl) . Let t be a linear term and a\in\mathsf{fv}(t) . Then t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}} Proof. By induction on t , using Lem. 36 and Lem. 35 and \mathsf{symm} . ∎ Lemma 41 (Contrasubstitution Lemma I) . Let \{t,s,r\} be a set of linear terms such that a\in\mathsf{fv}(t) and let b\neq a . Then 1. t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}=t{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}} . Note that b occurs at most once in t,s , so the right-hand side is either of the form t{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} or of the form t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{0,0,1}\bm{\{}}b:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}} . 2. t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}u:=r{\color[rgb]{0,0,1}\bm{\}}}=t{\color[rgb]{0,0,1}\bm{\{}}u:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{0,0,1}\bm{\{}}u:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}} . Proof. By induction on t . ∎ Lemma 42 (Contra/contra lemma) . Let \{t,s,r\} be a linear set of terms such that a\in\mathsf{fv}(t) and let b\neq a be such that b\in\mathsf{fv}(t)\cup\mathsf{fv}(s) . Then: 1. If b\in\mathsf{fv}(t) , then: t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}} 2. If b\in\mathsf{fv}(s) , then: t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\equiv s{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}} Proof. By simulateneous induction on t . ∎ Lemma 43 (Nested Contra/contra lemma) . Let \{t,s,r\} be a linear set of terms such that a\in\mathsf{fv}(t) and let b\neq a be such that b\in\mathsf{fv}(s) . Then: s{\color[rgb]{0,0,1}\bm{\{}}b:=t{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{\}}} Proof. By induction on s . ∎ Lemma 44 (Contrasubstitution is compatible with equivalence) . Suppose s\equiv r . Then both t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}\equiv t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}} and s{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}}\equiv r{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}} . Proof. The first item was proved in Lem. 35 . The second one can be proved by induction on the derivation of s\equiv r . ∎ C.2 An alternative presentation of \equiv This subsection provides an equivalent characterization of the structural equivalence, established in order to facilitate the proof of the strong bisimulation theorem (Thm. 14 ). Definition 45 (Alternative-structural equivalence) . The structural equivalence relation \equiv^{\star} is defined as the reflexive, symmetric, transitive and contextual closure of the following axioms and assumes that both sides are typed: \begin{array}[]{llll}{\textsf{S}}\bm{\langle}{t}\bm{\rangle}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}&\equiv^{\star}_{\mathsf{Prop}}&{\textsf{S}}\bm{\langle}{t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}}\bm{\rangle}&(\mathsf{fv}(\mathtt{p})\cap\mathsf{fv}(\textsf{S})=\varnothing\mbox{ and }r\mbox{ free for }\textsf{S})\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}&\equiv^{\star}_{\beta\mathsf{\star}}&t\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}&\equiv^{\star}_{\mathsf{\mathsf{Symm}\star}}&s{\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}}\\ \star\lightning t&\equiv^{\star}_{\mathsf{Lunit\_for\_\lightning}}&t&\\ (s{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r&\equiv^{\star}_{\mathsf{E\invamp_{2}/I\invamp}}&t\lightning s\,{\color[rgb]{0,0,1}\bullet}\,r&\\ \langle r,t\rangle\lightning s&\equiv^{\star}_{\mathsf{I\otimes/E\invamp_{2}}}&r\lightning(s{\color[rgb]{1,0,0}\blacktriangledown}t)\\ {\invamp}(a,b).s\lightning t&\equiv^{\star}_{\mathsf{I\invamp/E\otimes}}&s{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}&\\ ({?}u.s)\lightning t&\equiv^{\star}_{\mathsf{I{?}/E{!}{}}}&s{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}}\\ ({!}{a.t})\lightning s&\equiv^{\star}_{\mathsf{I{!}{}/E{?}}}&{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s}&\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}\lightning r&\equiv^{\star}_{\mathsf{I\perp/E\star}}&s\lightning(r\lightning t)&\end{array} Lemma 46 . The following equations are in \equiv^{\star} \begin{array}[]{llll}\star\lightning t&\equiv^{\star}_{\mathsf{Lunit\_for\_\lightning}}&t&\\ {\textsf{S}}\bm{\langle}{t}\bm{\rangle}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}&\equiv^{\star}_{\mathsf{Prop}}&{\textsf{S}}\bm{\langle}{t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}}\bm{\rangle}&\mbox{ if }\mathsf{fv}(\mathtt{p})\cap\mathsf{fv}(\textsf{S})=\varnothing\mbox{ and }r\mbox{ free for }\textsf{S}\\ t\lightning s&\equiv^{\star}_{\mathsf{Symm\_for\_\lightning}}&s\lightning t&\\ (s{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r&\equiv^{\star}_{\mathsf{E\invamp_{2}/I\otimes}}&s\lightning\langle r,t\rangle&\\ (s{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r&\equiv^{\star}_{\mathsf{E\invamp_{2}/I\invamp}}&t\lightning s\,{\color[rgb]{0,0,1}\bullet}\,r&\\ (s\,{\color[rgb]{0,0,1}\bullet}\,t)\lightning r&\equiv^{\star}_{\mathsf{E\invamp_{1}/E\invamp_{2}}}&t\lightning s{\color[rgb]{1,0,0}\blacktriangledown}r&\\ \langle t,s\rangle\lightning r&\equiv^{\star}_{\mathsf{E\otimes/E\invamp_{1}}}&s\lightning(r\,{\color[rgb]{0,0,1}\bullet}\,t)&\\ \langle t,s\rangle\lightning r&\equiv^{\star}_{\mathsf{I\otimes/E\invamp_{2}}}&t\lightning(r{\color[rgb]{1,0,0}\blacktriangledown}s)&\\ {\invamp}(a,b).s\lightning t&\equiv_{\mathsf{I\invamp/E\otimes}}&s{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}&\\ ({?}u.s)\lightning t&\equiv^{\star}_{\mathsf{I{?}/E{!}{}}}&s{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}}&\\ ({!}{a.t}){\color[rgb]{1,0,0}\bm{[}}\star:=p{\color[rgb]{1,0,0}\bm{]}}\lightning r&\equiv^{\star}_{\mathsf{I{!}{}/E{?}}}&p\lightning{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}r}&\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}\lightning r&\equiv^{\star}_{\mathsf{I\perp/E\star}}&s\lightning(r\lightning t)&\end{array} Proof. We give the proof for the rule ruleCCEqOneLUnitForBott , the remaining rules follow from similar reasonings. \begin{array}[]{llll}&t\lightning s\\ \equiv^{\star}&t{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}\lightning s&\beta\mathsf{\star}\\ \equiv^{\star}&\star\lightning(s\lightning t)&\mathsf{I\perp/E\star}\\ \equiv^{\star}&s\lightning t&\mathsf{Lunit\_for\_\lightning}\\ \end{array} ∎ We establish several auxiliar results to show that the relation \equiv^{\star} coincides with \equiv . The only challenge lies in proving that \equiv^{\star} captures \mathsf{split} , the fourth axiom of \equiv (Def. 13 ). The remaining axioms \mathsf{Prop} , \beta\mathsf{\star} , and \mathsf{\mathsf{Symm}\star} are common to both relations. To this end, we begin by defining the notions of a deep context and the dual of a deep context. Definition 47 . Deep contexts P are defined by the grammar: \begin{array}[]{lll}\textsf{P}&::=&\Box\,|\,{\invamp}(a,b).\textsf{P}\,|\,\textsf{P}{\color[rgb]{1,0,0}\blacktriangledown}t\,|\,t{\color[rgb]{1,0,0}\blacktriangledown}\textsf{P}\,|\,\textsf{P}\,{\color[rgb]{0,0,1}\bullet}\,t\,|\,t\,{\color[rgb]{0,0,1}\bullet}\,\textsf{P}\,|\,\langle\textsf{P},t\rangle\\ &&|\,\langle t,\textsf{P}\rangle\,|\,\textsf{P}\lightning t\,|\,t\lightning\textsf{P}\,|\,{?}u.\textsf{P}\,|\,\textsf{P}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=t{\color[rgb]{1,0,0}\bm{]}}\,|\,t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=\textsf{P}{\color[rgb]{1,0,0}\bm{]}}\,|\,{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}\textsf{P}}\end{array} We say t is free for P if the free variables of t are not captured in {\textsf{P}}\bm{\langle}{t}\bm{\rangle} . Similarly, a context P is free for a deep context Q if {\textsf{Q}}\bm{\langle}{\textsf{P}}\bm{\rangle} does not bind free occurrences of variables of P . Definition 48 (Dual of a deep context) . The dual of a deep context P , denoted \textsf{P}^{\perp} , is defined as the deep context \textsf{P}{\color[rgb]{1,0,0}\bm{\{}}\Box\backslash\!\!\backslash\Box{\color[rgb]{1,0,0}\bm{\}}} . Lemma 49 (Contrasubstitution lemma) . Suppose t is free for P . Then {\textsf{P}}\bm{\langle}{a}\bm{\rangle}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}}\equiv{\textsf{P}^{\perp}}\bm{\langle}{t}\bm{\rangle} . Proof. By induction on P . ∎ Lemma 50 (Dual Contravariant on Deep Context Composition) . Suppose Q is free for P . Then {\textsf{P}}\bm{\langle}{\textsf{Q}}\bm{\rangle}^{\perp}\equiv{\textsf{Q}^{\perp}}\bm{\langle}{\textsf{P}^{\perp}}\bm{\rangle} The following example illustrates why the condition that Q be free for P is required. Suppose \textsf{P}={\invamp}(c,d).\Box and \textsf{Q}=\Box{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle c,d\rangle{\color[rgb]{1,0,0}\bm{]}} . Then \begin{array}[]{l}{\textsf{P}}\bm{\langle}{\textsf{Q}}\bm{\rangle}={\invamp}(c,d).\Box{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle c,d\rangle{\color[rgb]{1,0,0}\bm{]}}\\ {\textsf{P}}\bm{\langle}{\textsf{Q}}\bm{\rangle}^{\perp}=\star{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle c,d\rangle{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\langle c,d\rangle:=\Box{\color[rgb]{1,0,0}\bm{]}}\\ \textsf{P}^{\perp}=\star{\color[rgb]{1,0,0}\bm{[}}\langle c,d\rangle:=\Box{\color[rgb]{1,0,0}\bm{]}}\\ \textsf{Q}^{\perp}=\Box{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle c,d\rangle{\color[rgb]{1,0,0}\bm{]}}\\ {\textsf{Q}^{\perp}}\bm{\langle}{\textsf{P}^{\perp}}\bm{\rangle}=\star{\color[rgb]{1,0,0}\bm{[}}\langle c,d\rangle:=\Box{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle c,d\rangle{\color[rgb]{1,0,0}\bm{]}}\\ \end{array} Notice that \begin{array}[]{l}{\textsf{P}}\bm{\langle}{\textsf{Q}}\bm{\rangle}^{\perp}=\star{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle c,d\rangle{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\langle c,d\rangle:=\Box{\color[rgb]{1,0,0}\bm{]}}\not\equiv\star{\color[rgb]{1,0,0}\bm{[}}\langle c,d\rangle:=\Box{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=\langle c,d\rangle{\color[rgb]{1,0,0}\bm{]}}={\textsf{Q}^{\perp}}\bm{\langle}{\textsf{P}^{\perp}}\bm{\rangle}\end{array} Proof. By induction on P . ∎ We are ready to prove that \mathsf{split} is captured by \equiv^{\star} (Lem. 51 ). Lemma 51 (Derivability of \mathsf{split} ) . {\textsf{P}^{\perp}}\bm{\langle}{\star}\bm{\rangle}\lightning r\equiv^{\star}{\textsf{P}}\bm{\langle}{r}\bm{\rangle} , if r is free for P . Proof. By induction on P , “inside out” using Lem. 50 , Lem. 36 , and Lem. 46 . In other words, we consider each possible case for the innermost term constructor used in constructing P . ∎ Proposition 52 . \equiv=\equiv^{\star} . Proof. We prove that \equiv\subseteq\equiv^{\star} and then that \equiv^{\star}\subseteq\equiv . We do so by showing that the axioms of \equiv are provable in \equiv^{\star} , for the first item, and then that the axioms of \equiv^{\star} are provable in \equiv , for the second one. 1. \equiv\subseteq\equiv^{\star} . For the first item we note the following: 1.1. \mathsf{Prop},\beta\mathsf{\star} , and \mathsf{\mathsf{Symm}\star} . \begin{array}[]{llll}{\textsf{S}}\bm{\langle}{t}\bm{\rangle}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}&\equiv_{\mathsf{Prop}}&{\textsf{S}}\bm{\langle}{t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=r{\color[rgb]{1,0,0}\bm{]}}}\bm{\rangle}\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}&\equiv_{\beta\mathsf{\star}}&t\\ t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}&\equiv_{\mathsf{\mathsf{Symm}\star}}&s{\color[rgb]{1,0,0}\bm{[}}\star:=t{\color[rgb]{1,0,0}\bm{]}}\end{array} where, in axiom \mathsf{Prop} , \mathsf{fv}(\mathtt{p})\cap\mathsf{fv}(\textsf{S})=\varnothing and r free for S . All three axioms are included in \equiv^{\star} , so we conclude immediately. 1.2. \mathsf{split} . t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning r\equiv_{\mathsf{split}}t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}} This axiom is provable in \equiv^{\star} , as follows from Lem. 49 and Lem. 51 . 2. \equiv^{\star}\subseteq\equiv . We now consider the second item. Once again, axioms \mathsf{Prop},\beta\mathsf{\star} , and \mathsf{split} are all included in \equiv . So it remains to show that the others are provable in \equiv . 2.1. t\equiv\star\lightning t \begin{array}[]{llll}&t\\ \equiv&t{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}&\beta\mathsf{\star}\\ =&a{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{0,0,1}\bm{\{}}a:=t{\color[rgb]{0,0,1}\bm{\}}}\\ \equiv&a{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning t&\mathsf{split}\\ =&\star{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}\lightning t&Def.~\ref{def:cos}\\ \equiv&\star\lightning t&\beta\mathsf{\star}\end{array} 2.2. (s{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r\equiv t\lightning(s\,{\color[rgb]{0,0,1}\bullet}\,r) \begin{array}[]{llll}&(s{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r\\ =&((s{\color[rgb]{1,0,0}\blacktriangledown}a)\lightning r){\color[rgb]{0,0,1}\bm{\{}}a:=t{\color[rgb]{0,0,1}\bm{\}}}\\ \equiv&((s{\color[rgb]{1,0,0}\blacktriangledown}a)\lightning r){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning t&\mathsf{split}\\ =&(s{\color[rgb]{1,0,0}\blacktriangledown}a){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\}}}\lightning t\\ =&(s\,{\color[rgb]{0,0,1}\bullet}\,r{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}})\lightning t\\ \equiv&(s\,{\color[rgb]{0,0,1}\bullet}\,r)\lightning t&\beta\mathsf{\star}\\ \equiv&t\lightning(s\,{\color[rgb]{0,0,1}\bullet}\,r)&\mathsf{Symm\_for\_\lightning}(Lem.~\ref{lemma:cceq_derived})\\ \end{array} 2.3. \langle r,t\rangle\lightning s\equiv r\lightning(s{\color[rgb]{1,0,0}\blacktriangledown}t) \begin{array}[]{llll}&\langle r,t\rangle\lightning s&\\ =&\langle r{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}},t\rangle\lightning s&\beta\mathsf{\star}\\ =&(a{\color[rgb]{1,0,0}\blacktriangledown}t){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\}}}\lightning s&Def.~\ref{def:cos}\\ \equiv&((a{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning s&Def.~\ref{def:cos}\\ =&((a{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r){\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}&\mathsf{split}\\ =&(s{\color[rgb]{1,0,0}\blacktriangledown}t)\lightning r\\ \end{array} 2.4. ({\invamp}(a,b).s)\lightning t\equiv_{\mathsf{I\invamp/E\otimes}}s{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}} \begin{array}[]{llll}&({\invamp}(a,b).s)\lightning t\\ =&({\invamp}(a,b).(s\lightning\star))\lightning t&\mathsf{Lunit\_for\_\lightning}\\ =&(({\invamp}(a,b).(s\lightning c))\lightning t){\color[rgb]{0,0,1}\bm{\{}}c:=\star{\color[rgb]{0,0,1}\bm{\}}}\\ \equiv&(({\invamp}(a,b).(s\lightning c))\lightning t){\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning\star&\mathsf{split}\\ \equiv&(({\invamp}(a,b).(s\lightning c))\lightning t){\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}&\mathsf{Lunit\_for\_\lightning}\\ =&({\invamp}(a,b).(s\lightning c)){\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}&Def.~\ref{def:cos}\\ \equiv&({\invamp}(a,b).(s\lightning c)){\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}}&\beta\mathsf{\star}\\ =&(s\lightning c){\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}&Def.~\ref{def:cos}\\ \equiv&c{\color[rgb]{1,0,0}\bm{\{}}c\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}{r}&Lem.~\ref{lemma:contra_contra_lemma}\\ =&s{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=t{\color[rgb]{1,0,0}\bm{]}}&Def.~\ref{def:cos}\\ =&s{\color[rgb]{1,0,0}\bm{[}}\langle b,c\rangle:=t{\color[rgb]{1,0,0}\bm{]}}&\beta\mathsf{\star}\\ \end{array} 2.5. ({?}u.s)\lightning t\equiv s{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}} \begin{array}[]{llll}&({?}u.s)\lightning t\\ \equiv&({?}u.s\lightning\star)\lightning t\\ =&(({?}u.s\lightning a)\lightning t){\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}\\ \equiv&(({?}u.s\lightning a)\lightning t){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning\star&\mathsf{split}\\ \equiv&(({?}u.s\lightning a)\lightning t){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}&\\ =&({?}u.s\lightning a){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}&Def.~\ref{def:cos}\\ =&({?}u.s\lightning a){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t{\color[rgb]{1,0,0}\bm{\}}}\\ =&(s\lightning a){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}}&Def.~\ref{def:cos}\\ =&a{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}}&Def.~\ref{def:cos}\\ \equiv&s{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t{\color[rgb]{1,0,0}\bm{]}}&\beta\mathsf{\star}\\ \end{array} 2.6. ({!}{a.t})\lightning s\equiv{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s} \begin{array}[]{llll}&{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}s}\\ =&({t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}b}){\color[rgb]{0,0,1}\bm{\{}}b:=s{\color[rgb]{0,0,1}\bm{\}}}\\ \equiv&({t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}b}){\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning s&{t{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}b}:{\perp},\mathsf{split}\\ =&b{\color[rgb]{1,0,0}\bm{\{}}b\backslash\!\!\backslash{!}{a.t}{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}\lightning s\\ =&({!}{a.t}){\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}\lightning s\\ \equiv&({!}{a.t})\lightning s\\ \end{array} 2.7. t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}\lightning r\equiv s\lightning(r\lightning t) \begin{array}[]{llll}&s\lightning(r\lightning t)\\ \equiv&(t\lightning r)\lightning s&\mathsf{Symm\_for\_\lightning}(Lem.~\ref{lemma:cceq_derived})\\ \equiv&(t\lightning r{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}})\lightning s&\beta\mathsf{\star}\\ =&a{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash t\lightning r{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\}}}\lightning s&Def.~\ref{def:cos}\\ =&t{\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\}}}\lightning s&Def.~\ref{def:cos}\\ =&(t{\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}\lightning r){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\lightning s&Def.~\ref{def:cos}\\ \equiv&(t{\color[rgb]{1,0,0}\bm{[}}\star:=a{\color[rgb]{1,0,0}\bm{]}}\lightning r){\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}&\mathsf{split}\\ =&t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}}\lightning r\\ \end{array} ∎ \StrongBisimulation * Proof. We proceed by induction on the derivation of t\equiv^{\star}s . We first demonstrate the result for the 10 axioms by performing a case analysis on the positions of the redexes within the terms. We then show that strong bisimulation is preserved under the inference rules. ∎ \SubjectReduction * Proof. Note that structural equivalence relates terms of the same type and under the same contexts, by definition. Thus we are left to verify that \Delta;\Gamma\vdash t:A and t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s implies \Delta;\Gamma\vdash s:A . This is proved by induction on t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s . ∎ Appendix D Strong Normalization Lemma 53 (Dual Properties) . Let A be a type and X,Y\subseteq{\cal T}_{A} then the following properties hold. 1. If X\subseteq Y then Y^{\perp}\subseteq X^{\perp} . 2. X\subseteq X^{\perp}{}^{\perp} . 3. X^{\perp}=X^{\perp}{}^{\perp}{}^{\perp} . Proof. Let’s prove each of the properties. 1. If t\in Y^{\perp} then \forall s\in Y we have that t\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} . In particular since X\subseteq Y then this implies that \forall s\in X we have that t\lightning s\in\textrm{SN}_{\bot} . 2. By the definition we have that X^{\perp}{}^{\perp}=\{r\in{\cal T}_{A}:\forall s\in X^{\perp},\ r\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot}.\} Let t\in X we have that \forall s\in X^{\perp} this implies that s\lightning t\vartriangleleft_{\bot}\textrm{SN}_{\bot} by the definition of the dual set X^{\perp} . Since s\lightning t\equiv t\lightning s , this implies that t\in X^{\perp}{}^{\perp} . 3. This follows from the previous properties. By the property 2 we have that X\subseteq X^{\perp}{}^{\perp} and by the property 1 we have that X^{\perp}{}^{\perp}{}^{\perp}\subseteq X^{\perp} . Then by the property 2 we have that X^{\perp}\subseteq(X^{\perp})^{\perp}{}^{\perp}=X^{\perp}{}^{\perp}{}^{\perp} thus proving that X^{\perp}=X^{\perp}{}^{\perp}{}^{\perp} . ∎ Proposition 54 . Let A be a type then: 1. For all u unrestricted variables we have that u\in\llbracket A\rrbracket . 2. \llbracket A\rrbracket\subseteq\textrm{SN}_{A} . Proof. We prove this by mutual induction on the type A . • If A=\alpha,\alpha^{\perp},\bot,\text{1} then for any unrestricted variable we have that u\in\textrm{SN}_{A} . By definition of the reducibility candidates we have in this particular case that \llbracket A\rrbracket=\textrm{SN}_{A} . • If A=A_{1}\otimes A_{2} then by the inductive hypothesis we have that there are unrestricted variables u_{1},u_{2} such that u_{1}\in\llbracket A_{1}\rrbracket,u_{2}\in\llbracket A_{2}\rrbracket then by the lemma 63 we have that the set \llbracket A_{1}\rrbracket\otimes\llbracket A_{2}\rrbracket\subseteq\textrm{SN}_{A_{1}\otimes A_{2}} and that \llbracket A_{1}\rrbracket\otimes\llbracket A_{2}\rrbracket\neq\varnothing . Thus since \llbracket A_{1}\otimes A_{2}\rrbracket=(\llbracket A_{1}\rrbracket\otimes\llbracket A_{2}\rrbracket)^{\perp}{}^{\perp} by the lemma 62 applied twice we conclude what we wanted to prove. • If A=A_{1}\invamp A_{2} then by the inductive hypothesis, for all unrestricted variables u we have that u\in\llbracket A_{1}^{\perp}\otimes A_{2}^{\perp}\rrbracket . Thus since \llbracket A_{1}\invamp A_{2}\rrbracket=\llbracket A_{1}^{\perp}\otimes A_{2}^{\perp}\rrbracket^{\perp} then by the lemma 62 we get what we wanted to prove. • If A={?}A_{1} then by the inductive hypothesis, for all unrestricted variables u we have that u\in\llbracket A^{\perp}\rrbracket . This implies that by the lemma 64 the following holds {?}\llbracket A_{1}^{\perp}\rrbracket\subseteq\textrm{SN}_{{?}A_{1}} and {?}\llbracket A_{1}^{\perp}\rrbracket\neq\varnothing . Thus since \llbracket{?}A_{1}\rrbracket=({?}\llbracket A_{1}^{\perp}\rrbracket)^{\perp}{}^{\perp} then by the lemma 62 applied twice we conclude what we wanted to prove. • If A={!}{A_{1}} then by the inductive hypothesis, for all unrestricted variables u we have that u\in\llbracket{?}A_{1}^{\perp}\rrbracket . Thus since \llbracket{!}{A_{1}}\rrbracket=\llbracket{?}A_{1}^{\perp}\rrbracket^{\perp} by the lemma 62 we get what we wanted to prove. ∎ Definition 55 . Given A a type, X\subseteq\textrm{SN}_{A} we say that X is reduction closed if for all t\in X and t^{\prime} such that t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}t^{\prime} we have that t^{\prime}\in X . Lemma 56 . If A is a type then \textrm{SN}_{A} is reduction closed. Proof. If t\in\textrm{SN}_{A} then for all reducts t^{\prime} we have that t^{\prime}\in{\cal T}_{A} by subject reduction and since t is strongly normalizing we get that t^{\prime} is strongly normalizing too. We conclude that t^{\prime}\in\textrm{SN}_{A} . ∎ Lemma 57 . If A is a type and X\subseteq\textrm{SN}_{A} then X^{\perp} is reduction closed. Proof. If t\in X^{\perp} then for all s\in X we have that t\lightning s\in\textrm{SN}_{\bot} , in particular this implies that t\in\textrm{SN}_{A^{\perp}} . If t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}t^{\prime} then by subject reduction t^{\prime}\lightning s\in{\cal T}_{\bot} and moreover t^{\prime}\lightning s\in\textrm{SN}_{\bot} since it is a reduct of t\lightning s . ∎ Proposition 58 . For all types A we have that \llbracket A\rrbracket is reduction closed. Proof. We proceed by induction on the type A . If A=\alpha,\alpha^{\perp},\bot,\text{1} then this follows from the lemma 56 . If A=A_{1}\otimes A_{2},A_{1}\invamp A_{2},{?}A_{1},{!}{A_{1}} then this follows from the induction hypothesis and from the application of the lemma 57 ∎ Lemma 59 (Adequacy for \invamp ) . If \Delta;\Gamma,a_{1}:A_{1},a_{2}:A_{2}\vdash t:\bot such that t\in\llbracket\bot\rrbracket and for all s_{1}\in\llbracket A_{1}\rrbracket,s_{2}\in\llbracket A_{2}\rrbracket we get that t{\color[rgb]{0,0,1}\bm{\{}}a_{1}:=s_{1}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a_{2}:=s_{2}{\color[rgb]{0,0,1}\bm{\}}}\in\llbracket\bot\rrbracket then this implies that {\invamp}(a_{1},a_{2}).t\in\llbracket A_{1}^{\perp}\invamp A_{2}^{\perp}\rrbracket . Proof. Since \llbracket A_{1}^{\perp}\invamp A_{2}^{\perp}\rrbracket=\llbracket A_{1}^{\perp}\otimes A_{2}^{\perp}\rrbracket^{\perp}=(\llbracket A_{1}^{\perp}\rrbracket\otimes\llbracket A_{2}^{\perp}\rrbracket)^{\perp} it suffices to prove that for any \langle r_{1},r_{2}\rangle\in(\llbracket A_{1}^{\perp}\rrbracket\otimes\llbracket A_{2}^{\perp}\rrbracket)^{\perp} we have that ({\invamp}(a_{1},a_{2}).t)\lightning\langle r_{1},r_{2}\rangle\in\llbracket\bot\rrbracket . Observe that the terms t , r_{1} and r_{2} are strongly normalizing by the proposition 54 . This means that the natural number |t|+|r_{1}|+|r_{2}| is well defined. We prove this by induction on |t|+|r_{1}|+|r_{2}| . The base case is straightforward. For the induction step we consider three different cases depending on the reduction step. 1. If t\to t^{\prime} , this follows straight from the inductive hypothesis. 2. If r_{1}\to r_{1}^{\prime} or r_{2}\to r_{2}^{\prime} , this follows straight from the inductive hypothesis. 3. If r=\langle r_{1},r_{2}\rangle and {\invamp}(a_{1},a_{2}).t\lightning\langle r_{1},r_{2}\rangle\to t{\color[rgb]{0,0,1}\bm{\{}}a_{1}:=r_{1}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a_{2}:=r_{2}{\color[rgb]{0,0,1}\bm{\}}} then this follows from the hypothesis. ∎ The following result is proved by induction on A . Lemma 60 . For all types A the following equality holds \llbracket A^{\perp}\rrbracket=\llbracket A\rrbracket^{\perp} Proof. We proceed by induction on the type A . • If A=\alpha,\alpha^{\perp},\text{1},\bot then we must prove that \textrm{SN}_{A}^{\perp}=\textrm{SN}_{A^{\perp}} . If t\in\textrm{SN}_{A}^{\perp} then for all s\in\textrm{SN}_{A} we have that t\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} then this implies that t\in{\cal T}_{A^{\perp}} and that t\in\textrm{SN}_{A^{\perp}} in particular. If t\in\textrm{SN}_{A^{\perp}} then we must prove that for all s\in\textrm{SN}_{A} we have that t\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Observe that because of the types considered, the term t\lightning s cannot have a root redex and since both terms t,s are strongly normalizing then this implies that t\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} . • If A=A_{1}\otimes A_{2} then (A_{1}\otimes A_{2})^{\perp}=A_{1}^{\perp}\invamp A_{2}^{\perp} and we have that \llbracket A_{1}^{\perp}\invamp A_{2}^{\perp}\rrbracket=(\llbracket A_{1}^{\perp}{}^{\perp}\rrbracket\otimes\llbracket A_{2}^{\perp}{}^{\perp}\rrbracket)^{\perp}=\llbracket A_{1}\otimes A_{2}\rrbracket^{\perp} • If A=A_{1}\invamp A_{2} then (A_{1}\invamp A_{2})^{\perp}=A_{1}^{\perp}\otimes A_{2}^{\perp} and we have that using the definition of reducibility candidates and the lemma 53 the following is valid: \llbracket A_{1}^{\perp}\otimes A_{2}^{\perp}\rrbracket=\llbracket A_{1}^{\perp}\otimes A_{2}^{\perp}\rrbracket^{\perp}{}^{\perp}=((\llbracket A_{1}^{\perp}\rrbracket\otimes\llbracket A_{2}^{\perp}\rrbracket)^{\perp}{}^{\perp})^{\perp}{}^{\perp}=\llbracket A_{1}\invamp A_{2}\rrbracket^{\perp} • If A={?}A_{1} then ({?}A_{1})^{\perp}={!}{A_{1}^{\perp}} and we have that \llbracket{{?}A_{1}}\rrbracket^{\perp}=\llbracket{!}{A_{1}^{\perp}}\rrbracket . • If A={!}{A_{1}} then ({!}{A_{1}})^{\perp}={?}A_{1}^{\perp} and we have that using the definition of reducibility candidates and the lemma 53 the following is valid: \llbracket{!}{A_{1}}\rrbracket^{\perp}=\llbracket{?}A_{1}^{\perp}\rrbracket^{\perp}{}^{\perp}=({?}\llbracket{A_{1}}\rrbracket^{\perp}{}^{\perp})^{\perp}{}^{\perp}=\llbracket{?}A_{1}\rrbracket^{\perp} ∎ Corollary 61 . For all types A the following equality holds \llbracket A\rrbracket=\llbracket A\rrbracket^{\perp}{}^{\perp} Proof. This follows from the fact that for all types A^{\perp}{}^{\perp}=A and from applying the last lemma 60 to A^{\perp} . ∎ Note that for any type A we have that any unrestricted variable u is such that u\in\textrm{SN}_{A} . Lemma 62 . Let X\subseteq\textrm{SN}_{A} such that X\neq\varnothing then: 1. If u is an unrestricted variable then u\in X^{\perp} . 2. X^{\perp}\subseteq\textrm{SN}_{A^{\perp}} . Proof. For the item 1 . Let t\in X then for u\in\textrm{SN}_{A^{\perp}} we have that t\lightning u\vartriangleleft_{\bot}\textrm{SN}_{\bot} since there is not a root redex and both t and u are strongly normalizing terms. For the item 2 . Let s\in X^{\perp} then for any t\in X we have that s\lightning t\vartriangleleft_{\bot}\textrm{SN}_{\bot} and this implies that s\in\textrm{SN}_{A^{\perp}} . ∎ Lemma 63 . Let X\subseteq\textrm{SN}_{A},Y\subseteq\textrm{SN}_{B} such that u\in X and v\in Y for all u,v unrestricted variables then: 1. X\otimes Y\neq\varnothing 2. X\otimes Y\subseteq\textrm{SN}_{A\otimes B} . Proof. For the item 1 . We have that \langle u,v\rangle\in{\cal T}_{A\otimes B} thus X\otimes Y\neq\varnothing . For the item 2 . For all terms \langle t,s\rangle\in X\otimes Y we have that since both t,s are strongly normalizing terms then \langle t,s\rangle is strongly normalizing too. ∎ Lemma 64 . Let X\subseteq\textrm{SN}_{A} such that u\in X for all u unrestricted variable then: 1. {?}X\neq\varnothing 2. {?}X\subseteq\textrm{SN}_{{?}A^{\perp}} . Proof. For the item 1 . Since X\subseteq\textrm{SN}_{A} then for all s\in X we have that v{\color[rgb]{0,0,1}\bm{\{}}w:=s{\color[rgb]{0,0,1}\bm{\}}}=v thus v\in{?}X . For the item 2 . If {?}u.t\in{?}X then since u\in X we have that t{\color[rgb]{0,0,1}\bm{\{}}u:=u{\color[rgb]{0,0,1}\bm{\}}}\in\textrm{SN}_{\bot} thus t\in\textrm{SN}_{\bot} and this implies that {?}u.t\in\textrm{SN}_{{?}A^{\perp}} . ∎ Lemma 65 . Let t\in{\cal T}_{\bot} and judgement \Delta;a:A,\Gamma\vdash t:\bot such that for all s\in\llbracket A\rrbracket we have that t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}\in\llbracket\bot\rrbracket then this implies that t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\ast{\color[rgb]{1,0,0}\bm{\}}}\in\llbracket A^{\perp}\rrbracket . Proof. If r\in\llbracket A\rrbracket then using the structural equivalence t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}\lightning r\equiv t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}} . Then we conclude using the hypothesis t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}\in\llbracket\bot\rrbracket . ∎ Lemma 66 (Adequacy for {!}{} ) . If \Delta;a:A\vdash t:\bot such that t\in\llbracket\bot\rrbracket and for all s\in\llbracket A\rrbracket we get that t{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}\in\llbracket\bot\rrbracket then this implies that {!}{a.t}\in\llbracket{!}{A^{\perp}}\rrbracket . Proof. Since \llbracket{!}{A}\rrbracket=({?}\llbracket A^{\perp}\rrbracket)^{\perp} then if {?}u.r\in{?}\llbracket A^{\perp}\rrbracket we must prove that {!}{a.t}\lightning{?}u.r\in\llbracket\bot\rrbracket . Observe that the terms t,r are strongly normalizing by the proposition 54 . This means that the natural number |t|+|r| is well defined. We prove this by induction on |t|+|r| . The base case is straightforward. For the induction step we consider three different cases depending on the reduction step. 1. If t\to t , this follows straight from induction. 2. If r\to r^{\prime} , this follows straight from induction. 3. If {!}{a.t}\lightning{?}u.r\to r{\color[rgb]{0,0,1}\bm{\{}}u:=t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}} then by the lemma 65 we get that t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\in\llbracket A\rrbracket and since by hypothesis r\in{?}\llbracket A^{\perp}\rrbracket then we can conclude that r{\color[rgb]{0,0,1}\bm{\{}}u:=t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}}\in\llbracket\bot\rrbracket . ∎ \Adequacy * Proof. We prove this by induction on the derivation of the term t . By the inductive hypothesis it suffices to consider substitutions such that their domain are the variables that became bound in the last step of the derivation. Most of the proof follows from the respective lemmas proved earlier. • If t=a or t=u then by definition of the substitution \sigma we get that t^{\sigma}\vartriangleleft_{A}\llbracket A\rrbracket . • If t=\langle t_{1},t_{2}\rangle then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t_{1}:A_{1}\quad\Delta;\Gamma^{\prime}\vdash t_{2}:A_{2}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=122.69427pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 8.05547pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash\langle t_{1},t_{2}\rangle:A_{1}\otimes A_{2}$}}}}\end{array} We must prove that for all \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that (\langle t_{1},t_{2}\rangle)^{\sigma}\vartriangleleft\llbracket A_{1}\otimes A_{2}\rrbracket . By hypothesis for all substitutions \nu\models\Delta,\Gamma and \tau\models\Delta,\Gamma^{\prime} we have that t_{1}^{\nu}\in\llbracket A_{1}\rrbracket and t_{2}^{\tau}\in\llbracket A_{2}\rrbracket . In particular since (\langle t_{1},t_{2}\rangle)^{\sigma}=\langle t_{1}^{\sigma},t_{2}^{\sigma}\rangle thus without loss of generality it suffices to prove that \langle t_{1},t_{2}\rangle\vartriangleleft\llbracket A_{1}\otimes A_{2}\rrbracket . Since \llbracket A_{1}\otimes A_{2}\rrbracket=(\llbracket A_{1}\rrbracket\otimes\llbracket A_{2}\rrbracket)^{\perp}{}^{\perp} then using the lemma 53 we conclude this case. • If t={\invamp}(a,b).t_{1} then this follows from the lemma 59 . • If t=t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}} then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma^{\prime},a:A_{1},b:A_{2}\vdash t_{1}:A\quad\Delta;\Gamma\vdash s:A_{1}\otimes A_{2}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=198.6673pt\hbox{\kern 3.00003pt$\textsc{{m-e$\otimes$}}$}}}\hbox{\kern 46.33313pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash{t_{1}}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array} We must prove that for all \sigma such that \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that (t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}})^{\sigma}\vartriangleleft\llbracket A\rrbracket . By hypothesis for all substitutions \tau\models\Delta,\Gamma^{\prime},a:A_{1},b:A_{2} and \nu\models\Delta,\Gamma we have that t_{1}^{\tau}\in\llbracket A\rrbracket and s^{\nu}\in\llbracket A_{1}\otimes A_{2}\rrbracket . In particular we can consider compatible substitutions \tau,\nu such that (t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}})^{\sigma}=t_{1}^{\tau}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s^{\nu}{\color[rgb]{1,0,0}\bm{]}} , thus without loss of generality it suffices to prove that t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\in\llbracket A\rrbracket . Using lemma 60 it suffices to prove that for all r\in\llbracket A^{\perp}\rrbracket the following holds t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\lightning r\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Using the structural equivalence we have that t_{1}{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\lightning r\equiv(t_{1}\lightning r){\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\equiv({\invamp}(a,b).t_{1}\lightning r)\lightning s , thus we will prove that ({\invamp}(a,b).t_{1}\lightning r)\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Since a,b\in\mathsf{fv}(t_{1}) and by inductive hypothesis for all compatible substitutions \tau\models\Delta,\Gamma^{\prime},a:A_{1},b:A_{2} we have that t_{1}^{\tau}\in\llbracket A\rrbracket then this implies that for all s_{1}\in\llbracket A_{1}\rrbracket,s_{2}\in\llbracket A_{2}\rrbracket we got that t_{1}{\color[rgb]{0,0,1}\bm{\{}}a:=s_{1}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}b:=s_{2}{\color[rgb]{0,0,1}\bm{\}}}\in\llbracket A\rrbracket . Using the lemma 60 we have that since t_{1}\in\llbracket A\rrbracket and r\in\llbracket A^{\perp}\rrbracket then t_{1}\lightning r\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Then we can apply the lemma 59 to conclude that {\invamp}(a,b).t_{1}\lightning r\in\llbracket A_{1}^{\perp}\invamp A_{2}^{\perp}\rrbracket and this implies that ({\invamp}(a,b).t_{1}\lightning r)\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} . • If t=t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2} then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t_{1}:A_{1}\invamp A_{2}\quad\Delta;\Gamma^{\prime}\vdash t_{2}:A_{2}^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=145.66646pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{2}$}}$}}}\hbox{\kern 31.64575pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2}:A_{1}$}}}}\end{array} We must prove that for all \sigma such that \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that (t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2})^{\sigma}\vartriangleleft\llbracket A\rrbracket . By hypothesis for all substitutions \tau\models\Delta,\Gamma^{\prime} and \nu\models\Delta,\Gamma we have that t_{1}^{\tau}\in\llbracket A_{1}\invamp A_{2}\rrbracket and t_{2}^{\nu}\in\llbracket A_{2}^{\perp}\rrbracket . In particular we can consider compatible substitutions \tau,\nu such that (t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2})^{\sigma}=t_{1}^{\tau}{\color[rgb]{1,0,0}\blacktriangledown}t_{2}^{\nu} , thus without loss of generality it suffices to prove that t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2}\in\llbracket A\rrbracket . Using lemma 60 it suffices to prove that for all s\in\llbracket A_{1}^{\perp}\rrbracket that (t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2})\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Using the structural equivalence we have that (t_{1}{\color[rgb]{1,0,0}\blacktriangledown}t_{2})\lightning s\equiv t_{1}\lightning(\langle s,t_{2}\rangle) , thus it suffices to prove that t_{1}\lightning(\langle s,t_{2}\rangle)\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Since by hypothesis t_{2}\in\llbracket A_{2}^{\perp}\rrbracket and s\in\llbracket A_{1}^{\perp}\rrbracket then this implies that \langle s,t_{2}\rangle\vartriangleleft\llbracket A_{1}^{\perp}\rrbracket\otimes\llbracket A_{2}^{\perp}\rrbracket and by the lemma 53 that \langle s,t_{2}\rangle\vartriangleleft\llbracket A_{1}^{\perp}\otimes A_{2}^{\perp}\rrbracket . Since by hypothesis t_{1}\in\llbracket A_{1}\invamp A_{2}\rrbracket then we can conclude that t_{1}\lightning(\langle s,t_{2}\rangle)\vartriangleleft_{\bot}\textrm{SN}_{\bot} . • If t=t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2} then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t_{1}:A_{1}\invamp A_{2}\quad\Delta;\Gamma^{\prime}\vdash t_{2}:A_{1}^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=145.66646pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{1}$}}$}}}\hbox{\kern 29.97914pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}:A_{2}$}}}}\end{array} We must prove that for all \sigma such that \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2})^{\sigma}\vartriangleleft\llbracket A\rrbracket . By hypothesis for all substitutions \tau\models\Delta,\Gamma^{\prime} and \nu\models\Delta,\Gamma we have that t_{1}^{\tau}\in\llbracket A_{1}\invamp A_{2}\rrbracket and t_{2}^{\nu}\in\llbracket A_{1}^{\perp}\rrbracket . In particular we can consider compatible substitutions \tau,\nu such that (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2})^{\sigma}=t_{1}^{\tau}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}^{\nu} , thus without loss of generality it suffices to prove that t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2}\in\llbracket A\rrbracket . Using lemma 60 it suffices to prove that for all s\in\llbracket A_{1}^{\perp}\rrbracket that (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2})\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} Using the structural equivalence we have that (t_{1}\,{\color[rgb]{0,0,1}\bullet}\,t_{2})\lightning s\equiv(t_{1}{\color[rgb]{1,0,0}\blacktriangledown}s)\lightning t_{2} , so that this case follows from the last one. • If t={?}u.t_{1} then the last step of the derivation is: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta,u:A^{\perp};\Gamma\vdash t_{1}:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=80.82156pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 7.45824pt\hbox{$\displaystyle\Delta;\Gamma\vdash{?}u.t_{1}:{?}A$}}}}\end{array} We must prove that for all \sigma such that \sigma\models\Delta,\Gamma we have that ({?}u.t)^{\sigma}\vartriangleleft\llbracket{?}A\rrbracket . By hypothesis for all substitutions \nu\models\Delta,\Gamma,u:A^{\perp} we have that t_{1}^{\nu}\vartriangleleft_{\bot}\textrm{SN}_{\bot} , this implies that ({?}u.t_{1})^{\sigma}\in{?}\llbracket A^{\perp}\rrbracket . Using the lemma 53 we conclude that ({?}u.t_{1})^{\sigma}\in\llbracket{?}A\rrbracket . • If t={!}{a.t_{1}} then this follows from the lemma 66 . • If t=t_{1}\lightning t_{2} then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t_{1}:A\quad\Delta;\Gamma^{\prime}\vdash t_{2}:A^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=119.47202pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 20.65273pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t_{1}\lightning t_{2}:{\perp}$}}}}\end{array} We must prove that for all \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that (t_{1}\lightning t_{2})^{\sigma}\vartriangleleft_{\bot}\llbracket\bot\rrbracket=\textrm{SN}_{\bot} . By hypothesis for all substitutions \nu\models\Delta,\Gamma and \tau\models\Delta,\Gamma^{\prime} we have that t_{1}^{\nu}\in\llbracket A\rrbracket and t_{2}^{\tau}\in\llbracket A^{\perp}\rrbracket . In particular we can consider compatible substitutions such that (t_{1}\lightning t_{2})^{\sigma}=t_{1}^{\nu}\lightning t_{2}^{\tau} thus using the lemma 60 we can conclude that (t_{1}\lightning t_{2})^{\sigma}\vartriangleleft_{\bot}\textrm{SN}_{\bot} . • If t={t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}} then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t_{2}:{?}A\quad\Delta;a:A\vdash t_{1}:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=127.73006pt\hbox{\kern 3.00003pt$\textsc{{m-e${?}$}}$}}}\hbox{\kern 28.974pt\hbox{$\displaystyle\Delta;\Gamma\vdash{t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}}:{\perp}$}}}}\end{array} We must prove that for all \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that ({t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}})^{\sigma}\in\textrm{SN}_{\bot} . By hypothesis for all substitutions \nu\models\Delta,\Gamma and \tau\models\Delta,a:A we have that t_{2}^{\nu}\vartriangleleft\llbracket{?}A\rrbracket and t_{1}^{\tau}\vartriangleleft\llbracket\bot\rrbracket . In particular we can consider compatible substitutions such that ({t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}})^{\sigma}={t_{1}^{\tau}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}^{\nu}} thus without loss of generality it suffices to prove that {t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}}\in\llbracket{?}A\rrbracket . Using lemma 60 it suffices to prove that for all r\in\llbracket\text{1}\rrbracket that {t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}}\lightning r\vartriangleleft_{\bot}\textrm{SN}_{\bot} . By the structural equivalence we get {t_{1}{\color[rgb]{0,0.6,0}\blacktriangleright}^{a}t_{2}}\lightning r\equiv({!}{a.t_{1}}\lightning s){\color[rgb]{1,0,0}\bm{[}}\star:=r{\color[rgb]{1,0,0}\bm{]}} and since r\in\llbracket\text{1}\rrbracket=\textrm{SN}_{\text{1}} then r is strongly normalizing, thus it suffices to prove that {!}{a.t_{1}}\lightning s\vartriangleleft_{\bot}\textrm{SN}_{\bot} and this follows from the lemma 66 . • If t=t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}} then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t_{2}:{!}{A}\quad\Delta,u:A;\Gamma^{\prime}\vdash t_{1}:C$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=140.08678pt\hbox{\kern 3.00003pt$\textsc{{m-e${!}{}$}}$}}}\hbox{\kern 20.4166pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:C$}}}}\end{array} We must prove that for all \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that (t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}})^{\sigma}\in\llbracket C\rrbracket . By hypothesis for all substitutions \nu\models\Delta,\Gamma and \tau\models\Delta,u:A,\Gamma^{\prime} we have that t_{2}^{\nu}\in\llbracket{!}{A}\rrbracket and t_{1}^{\tau}\in\llbracket C\rrbracket . In particular we can consider compatible substitutions such that (t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}})^{\sigma}=t_{1}^{\tau}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}^{\nu}{\color[rgb]{1,0,0}\bm{]}} thus it suffices to prove that t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\in\llbracket C\rrbracket . Using lemma 60 it suffices to prove that for all r\in\llbracket C^{\perp}\rrbracket that t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\lightning r\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Using the structural equivalence we get that t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\lightning r\equiv{?}u.(t_{1}\lightning r)\lightning t_{2} thus it suffices to prove that {?}u.(t_{1}\lightning r)\lightning t_{2}\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Since r\in\llbracket C^{\perp}\rrbracket then we get that t_{1}\lightning r\vartriangleleft_{\bot}\textrm{SN}_{\bot} and by hypothesis for all s\in\llbracket A\rrbracket we have that (t_{1}\lightning r){\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}}\vartriangleleft_{\bot}\textrm{SN}_{\bot} . This implies that {?}u.(t_{1}\lightning r)\in{?}\llbracket A^{\perp}\rrbracket and by the lemma 53 then {?}u.(t_{1}\lightning r)\in\llbracket{?}A^{\perp}\rrbracket . Since t_{2}\in\llbracket{!}{A}\rrbracket then we conclude that {?}u.(t_{1}\lightning r)\lightning t_{2}\in\textrm{SN}_{\bot} . • If t=t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}} then the last step of the derivation is the following: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash t_{2}:\text{1}\quad\Delta;\Gamma^{\prime}\vdash t_{1}:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=108.4443pt\hbox{\kern 3.00003pt$\textsc{{m-e$\text{1}$}}$}}}\hbox{\kern 6.52777pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}:A$}}}}\end{array} We must prove that for all \sigma\models\Delta,\Gamma,\Gamma^{\prime} we have that (t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}})^{\sigma}\in\llbracket A\rrbracket . By hypothesis for all substitutions \nu\models\Delta,\Gamma and \tau\models\Delta,\Gamma^{\prime} we have that t_{2}^{\nu}\in\llbracket\text{1}\rrbracket and t_{1}^{\tau}\in\llbracket A\rrbracket . In particular we can consider compatible substitutions such that (t_{1}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=t_{2}{\color[rgb]{1,0,0}\bm{]}})^{\sigma}=t_{1}^{\tau}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}^{\nu}{\color[rgb]{1,0,0}\bm{]}} thus it suffices to prove that t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\in\llbracket A\rrbracket . Using lemma 60 it suffices to prove that for all r\in\llbracket A^{\perp}\rrbracket that t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\lightning r\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Using the structural equivalence we get that t_{1}{\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\lightning r\equiv(t_{1}\lightning r){\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}} , thus it suffices to prove that (t_{1}\lightning r){\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\vartriangleleft_{\bot}\textrm{SN}_{\bot} . Since by the inductive hypothesis t_{1}\lightning r\vartriangleleft_{\bot}\textrm{SN}_{\bot} and since t_{2}\in\llbracket\text{1}\rrbracket=\textrm{SN}_{\text{1}} then we conclude that (t_{1}\lightning r){\color[rgb]{1,0,0}\bm{[}}\star:=t_{2}{\color[rgb]{1,0,0}\bm{]}}\vartriangleleft_{\bot}\textrm{SN}_{\bot} . ∎ Appendix E Weak Church Rosser Lemma 67 . Let \mathsf{L} be a positive eliminator context. Then the following items hold: 1. ({\invamp}(a,b).t)\mathsf{L} is well-typed iff {\invamp}(a,b).t\mathsf{L} is well-typed. 2. ({?}u.t)\mathsf{L} is well-typed iff {?}u.t\mathsf{L} is well-typed. 3. If \mathsf{dom}(\mathsf{L})\cap\mathsf{fv}(s)=\varnothing , then (t\lightning s)\mathsf{L} is well-typed iff t\mathsf{L}\lightning s is well-typed. Similarly, (s\lightning t)\mathsf{L} is well-typed iff s\lightning t\mathsf{L} is well-typed. Proof. This follows from the fact that in terms of the form t{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}} , t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}} and t{\color[rgb]{1,0,0}\bm{[}}\star:=s{\color[rgb]{1,0,0}\bm{]}} , the typing rules m-e \otimes , m-e {!}{} , and m-e 1 , resp., place no requirement on the type of t and allow any number of linear and unrestricted variables. ∎ Lemma 68 . Let \mathsf{L} be a positive eliminator context. Then the following items hold: 1. ({\invamp}(a,b).t)\mathsf{L}\equiv{\invamp}(a,b).t\mathsf{L} . 2. ({?}u.t)\mathsf{L}\equiv{?}u.t\mathsf{L} . 3. (t\lightning s)\mathsf{L}\equiv t\mathsf{L}\lightning s and (s\lightning t)\mathsf{L}\equiv s\lightning t\mathsf{L} , if \mathsf{dom}(\mathsf{L})\cap\mathsf{fv}(s)=\varnothing . 4. t{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s{\color[rgb]{1,0,0}\bm{]}}\mathsf{L}\equiv t{\color[rgb]{1,0,0}\bm{[}}\langle a,b\rangle:=s\mathsf{L}{\color[rgb]{1,0,0}\bm{]}} , if \mathsf{dom}(\mathsf{L})\cap\mathsf{fv}(s)\varnothing . 5. t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s{\color[rgb]{1,0,0}\bm{]}}\mathsf{L}\equiv t{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=s\mathsf{L}{\color[rgb]{1,0,0}\bm{]}} , if \mathsf{dom}(\mathsf{L})\cap\mathsf{fv}(s)=\varnothing . 6. t{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=s{\color[rgb]{1,0,0}\bm{]}}\mathsf{L}\equiv t\mathsf{L}{\color[rgb]{1,0,0}\bm{[}}\mathtt{p}:=s{\color[rgb]{1,0,0}\bm{]}} , if \mathsf{fv}(\mathsf{L})\cap\mathsf{fv}(\mathtt{p})=\varnothing . Proof. All the items can be proved by induction on \mathsf{L} . ∎ Lemma 69 (Reduction is compatible with substitution of linear variables) . Suppose t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s . Then 1. t{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s{\color[rgb]{0,0,1}\bm{\{}}a:=r{\color[rgb]{0,0,1}\bm{\}}} . 2. r{\color[rgb]{0,0,1}\bm{\{}}a:=t{\color[rgb]{0,0,1}\bm{\}}}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}r{\color[rgb]{0,0,1}\bm{\{}}a:=s{\color[rgb]{0,0,1}\bm{\}}} . Proof. By induction on t . ∎ Lemma 70 (Reduction is compatible with substitution of unrestricted variables) . Suppose t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s . Then 1. t{\color[rgb]{0,0,1}\bm{\{}}u:=r{\color[rgb]{0,0,1}\bm{\}}}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s{\color[rgb]{0,0,1}\bm{\{}}u:=r{\color[rgb]{0,0,1}\bm{\}}} . 2. r{\color[rgb]{0,0,1}\bm{\{}}u:=t{\color[rgb]{0,0,1}\bm{\}}}\twoheadrightarrow_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}r{\color[rgb]{0,0,1}\bm{\{}}u:=s{\color[rgb]{0,0,1}\bm{\}}} . Proof. By induction on t . ∎ Lemma 71 . Let t and t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}} be typable terms. 1. t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s implies t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}s{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}} . 2. r\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}s implies t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash r{\color[rgb]{1,0,0}\bm{\}}}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}t{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}} . Proof. Both items are proved simultaneously by induction on t . ∎ Lemma 72 (name=Weak Church-Rosser) . Let t be typed. Then t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}{}s and t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}{}r , implies there exists p such that s\twoheadrightarrow_{\mathsf{\lambda_{\textsf{{MELL}}}}}p and r\twoheadrightarrow_{\mathsf{\lambda_{\textsf{{MELL}}}}}p . Proof. Since \equiv is a strong-bisimulation, it suffices to consider the case where t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}{}s through a step \sigma and t\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}^{-}{}r through a step \rho . By induction on t . ∎ Appendix F Translations F.1 Parigot’s \lambda\mu F.1.1 T-Translation \TypePreservationForTTranslation * Proof. By induction on the derivation. 1. p-ax . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 39.67337pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=79.34674pt\hbox{\kern 3.00003pt$\textsc{{p-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma,x:A\vdash x:A\mid\Sigma$}}}}\end{array} Note that {x}^{\mathsf{T}}_{k}=x\lightning{!}{k} and thus we conclude from: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 86.7499pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=173.49979pt\hbox{\kern 3.00003pt$\textsc{{p-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},x:{?}{A}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k:({A}^{\mathsf{T}})^{\perp};\cdot\vdash x\lightning{!}{k}:{\perp}$}}}}\end{array} 2. p-lam . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.41669pt\hbox{$\displaystyle\penalty\Gamma,x:A\vdash N:B\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=94.1766pt\hbox{\kern 3.00003pt$\textsc{{p-lam}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash\lambda x.\,N:A\supset B\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 10.14697pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {?}{\Gamma}^{\mathsf{T}},x:{?}{A}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k^{\prime}:({B}^{\mathsf{T}})^{\perp};\cdot\vdash{N}^{\mathsf{T}}_{k^{\prime}}:{\perp}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=194.08907pt\hbox{\kern 3.00003pt$\textsc{Lem.~\ref{lemma:unrestricted_eq_bang_linear}(\ref{to_lin})}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k^{\prime}:({B}^{\mathsf{T}})^{\perp};a:{!}{{?}{A}^{\mathsf{T}}}\vdash{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=257.558pt\hbox{\kern 3.00003pt$\textsc{Lem.~\ref{lemma:unrestricted_eq_bang_linear}(\ref{to_lin})}$}}}\hbox{\kern 14.80396pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp};a:{!}{{?}{A}^{\mathsf{T}}},b:{!}{({B}^{\mathsf{T}})^{\perp}}\vdash{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=321.02693pt\hbox{\kern 3.00003pt$\textsc{{m-i$\invamp$}}$}}}\hbox{\kern 41.53831pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp};\cdot\vdash{\invamp}(a,b).{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}}:{?}{!}{({A}^{\mathsf{T}})^{\perp}}\invamp{?}{B}^{\mathsf{T}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=357.9714pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 40.04538pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k:{!}{{?}{A}^{\mathsf{T}}}\otimes{!}{({B}^{\mathsf{T}})^{\perp}};\cdot\vdash{\invamp}(a,b).{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}}\lightning k:{\perp}$}}}}\end{array} 3. p-app . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash P:A\supset B\mid\Sigma\quad\Gamma\vdash Q:A\mid\Sigma$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=142.41176pt\hbox{\kern 3.00003pt$\textsc{{p-app}}$}}}\hbox{\kern 37.56927pt\hbox{$\displaystyle\Gamma\vdash P\,\,Q:B\mid\Sigma$}}}}\end{array} Let \pi be the derivation: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.91321pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k^{\prime\prime}:({A}^{\mathsf{T}})^{\perp};\cdot\vdash{Q}^{\mathsf{T}}_{k^{\prime\prime}}:{\perp}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=143.29802pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 14.40273pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp};\cdot\vdash{?}k^{\prime\prime}.{Q}^{\mathsf{T}}_{k^{\prime\prime}}:{?}{A}^{\mathsf{T}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=177.46472pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}}$}}}\hbox{\kern 28.7083pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp};\cdot\vdash{!}{{?}k^{\prime\prime}.{Q}^{\mathsf{T}}_{k^{\prime\prime}}}:{!}{{?}{A}^{\mathsf{T}}}$}}}}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=221.5134pt\hbox{\kern 3.00003pt$\textsc{{m-i$\otimes$}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k:({B}^{\mathsf{T}})^{\perp};\cdot\vdash\langle{!}{{?}k^{\prime\prime}.{Q}^{\mathsf{T}}_{k^{\prime\prime}}},{!}{k}\rangle:{!}{{?}{A}^{\mathsf{T}}}\otimes{!}{({B}^{\mathsf{T}})^{\perp}}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 24.16986pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k^{\prime}:{!}{{?}{A}^{\mathsf{T}}}\otimes{!}{({B}^{\mathsf{T}})^{\perp}};\cdot\vdash{P}^{\mathsf{T}}_{k^{\prime}}:{\perp}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=215.6594pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k^{\prime}:{!}{({B}^{\mathsf{T}})^{\perp}};\cdot\vdash{P}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\langle{!}{{?}k^{\prime\prime}.{Q}^{\mathsf{T}}_{k^{\prime\prime}}},{!}{k}\rangle{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array} 4. p-name . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 2.92078pt\hbox{$\displaystyle\penalty\Gamma\vdash N:A\mid\Sigma,a:A$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=88.16861pt\hbox{\kern 3.00003pt$\textsc{{p-name}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash[a]N:{\perp}\mid\Sigma,a:A$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},a:({A}^{\mathsf{T}})^{\perp},k^{\prime}:({A}^{\mathsf{T}})^{\perp};\cdot\vdash{N}^{\mathsf{T}}_{k^{\prime}}:{\perp}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=184.36223pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 8.8362pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},a:({A}^{\mathsf{T}})^{\perp};\cdot\vdash{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=a{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=226.0845pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 10.14883pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},a:({A}^{\mathsf{T}})^{\perp},k:\text{1};\cdot\vdash{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=a{\color[rgb]{0,0,1}\bm{\}}}\lightning k:{\perp}\par$}}}}\end{array} 5. p-mu . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash N:{\perp}\mid\Sigma,a:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=77.32716pt\hbox{\kern 3.00003pt$\textsc{{p-mu}}$}}}\hbox{\kern 2.40392pt\hbox{$\displaystyle\Gamma\vdash\mu{a}.N:A\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 1.6667pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},a:({A}^{\mathsf{T}})^{\perp},k^{\prime}:\text{1};\cdot\vdash{N}^{\mathsf{T}}_{k^{\prime}}:{\perp}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=163.62622pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},a:({A}^{\mathsf{T}})^{\perp};\cdot\vdash{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\star{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=205.3485pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 2.28476pt\hbox{$\displaystyle{?}{\Gamma}^{\mathsf{T}},({\Sigma}^{\mathsf{T}})^{\perp},k:({A}^{\mathsf{T}})^{\perp};\cdot\vdash{N}^{\mathsf{T}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\star{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=k{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array} ∎ Lemma 73 . Suppose M\to_{\beta}N , then {M}^{\mathsf{T}}_{k}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}{N}^{\mathsf{T}}_{k} . Proof. By induction on M . ∎ Lemma 74 . Suppose M\to_{\mu}N , then {M}^{\mathsf{T}}_{k}={N}^{\mathsf{T}}_{k} . Proof. By induction on M . ∎ Lemma 75 . Suppose M\to_{\rho}N , then {M}^{\mathsf{T}}_{k}\equiv{N}^{\mathsf{T}}_{k} . Proof. By induction on M . ∎ Lemma 76 . Suppose M\to_{\theta}N , then {M}^{\mathsf{T}}_{k}\equiv{N}^{\mathsf{T}}_{k} . Proof. By induction on M . ∎ \CalcMELLSimulatesCalcParigotViaTTranslation * Proof. By induction on M\to_{\mu}N using Lem. 73 , Lem. 74 , Lem. 75 and Lem. 76 . ∎ F.1.2 Q-Translation \TypePreservationForQTranslation * Proof. By induction on the derivation. 1. p-ax . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 39.67337pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=79.34674pt\hbox{\kern 3.00003pt$\textsc{{p-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma,x:A\vdash x:A\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 82.65266pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=165.30533pt\hbox{\kern 3.00003pt$\textsc{{p-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},x:{A}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({A}^{\mathsf{Q}})^{\perp};\cdot\vdash{!}{x}\lightning k:{\perp}$}}}}\end{array} 2. p-lam . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.41669pt\hbox{$\displaystyle\penalty\Gamma,x:A\vdash N:B\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=94.1766pt\hbox{\kern 3.00003pt$\textsc{{p-lam}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash\lambda x.\,N:A\supset B\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 10.14697pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {\Gamma}^{\mathsf{\underline{Q}}},x:{A}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k^{\prime}:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime}}:{\perp}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=185.8946pt\hbox{\kern 3.00003pt$\textsc{Lem.~\ref{lemma:unrestricted_eq_bang_linear}(\ref{to_lin})}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k^{\prime}:({B}^{\mathsf{Q}})^{\perp};a:{!}{{A}^{\mathsf{\underline{Q}}}}\vdash{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=249.36354pt\hbox{\kern 3.00003pt$\textsc{Lem.~\ref{lemma:unrestricted_eq_bang_linear}(\ref{to_lin})}$}}}\hbox{\kern 13.81783pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp};a:{!}{{A}^{\mathsf{\underline{Q}}}},b:{!}{({B}^{\mathsf{Q}}_{k^{\prime}})^{\perp}}\vdash{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=312.83247pt\hbox{\kern 3.00003pt$\textsc{{m-i$\invamp$}}$}}}\hbox{\kern 41.46198pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp};\cdot\vdash{\invamp}(a,b).{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}}:({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=349.77695pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}}$}}}\hbox{\kern 50.76749pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp};\cdot\vdash{!}{({\invamp}(a,b).{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}})}:{!}{(({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}})}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=381.9992pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 45.94121pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:{?}({A}^{\mathsf{Q}}\otimes{!}{({B}^{\mathsf{Q}}_{k^{\prime}})^{\perp}});\cdot\vdash{!}{({\invamp}(a,b).{N}^{\mathsf{Q}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{[}}{!}{k^{\prime}}:=b{\color[rgb]{1,0,0}\bm{]}})}\lightning k:{\perp}$}}}}\end{array} 3. p-app . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash N:A\supset B\mid\Sigma\quad\Gamma\vdash O:A\mid\Sigma$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=143.72769pt\hbox{\kern 3.00003pt$\textsc{{p-app}}$}}}\hbox{\kern 37.56929pt\hbox{$\displaystyle\Gamma\vdash N\,\,O:B\mid\Sigma$}}}}\end{array} Let \pi be the derivation: \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty v:({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}},{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash k:({B}^{\mathsf{Q}})^{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=212.68839pt\hbox{\kern 3.00003pt$\textsc{{m-i${!}{}$}}$}}}\hbox{\kern 1.38878pt\hbox{$\displaystyle v:({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}},{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash{!}{k}:{!}{({B}^{\mathsf{Q}})^{\perp}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=244.91064pt\hbox{\kern 3.00003pt$\textsc{{m-e$\invamp_{2}$}}$}}}\hbox{\kern 10.19037pt\hbox{$\displaystyle v:({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}},{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash v{\color[rgb]{1,0,0}\blacktriangledown}{!}{k}:({A}^{\mathsf{Q}})^{\perp}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{l}v:({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}},{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash v{\color[rgb]{1,0,0}\blacktriangledown}{!}{k}:({A}^{\mathsf{Q}})^{\perp}\\ v:({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}},{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp},k^{\prime}:({A}^{\mathsf{Q}})^{\perp};\cdot\vdash{O}^{\mathsf{Q}}_{k^{\prime}}:{\perp}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=249.60452pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 1.31017pt\hbox{$\displaystyle v:({A}^{\mathsf{Q}})^{\perp}\invamp{?}{B}^{\mathsf{Q}},{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash{O}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=v{\color[rgb]{1,0,0}\blacktriangledown}{!}{k}{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=291.3268pt\hbox{\kern 3.00003pt$\textsc{{m-i${?}$}}$}}}\hbox{\kern 22.31009pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash{?}v.{O}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=v{\color[rgb]{1,0,0}\blacktriangledown}{!}{k}{\color[rgb]{0,0,1}\bm{\}}}:{?}({A}^{\mathsf{Q}}\otimes{!}{({B}^{\mathsf{Q}})^{\perp}})$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{l}{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash{?}v.{O}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=v{\color[rgb]{1,0,0}\blacktriangledown}{!}{k}{\color[rgb]{0,0,1}\bm{\}}}:{?}({A}^{\mathsf{Q}}\otimes{!}{({B}^{\mathsf{Q}})^{\perp}})\\ {\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k^{\prime\prime}:({B}^{\mathsf{Q}})^{\perp},k^{\prime}:{?}({A}^{\mathsf{Q}}\otimes{!}{({B}^{\mathsf{Q}})^{\perp}});\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime\prime}}:{\perp}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=245.04024pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 2.08348pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({B}^{\mathsf{Q}})^{\perp};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime\prime}:={?}v.{O}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=v{\color[rgb]{1,0,0}\blacktriangledown}{!}{k}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array} 4. p-name . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 2.92078pt\hbox{$\displaystyle\penalty\Gamma\vdash N:A\mid\Sigma,a:A$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=88.16861pt\hbox{\kern 3.00003pt$\textsc{{p-name}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Gamma\vdash[a]N:{\perp}\mid\Sigma,a:A$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},a:({A}^{\mathsf{Q}})^{\perp},k^{\prime}:({A}^{\mathsf{Q}})^{\perp};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime}}:{\perp}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=181.04277pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 9.03064pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},a:({A}^{\mathsf{Q}})^{\perp};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=a{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=222.76505pt\hbox{\kern 3.00003pt$\textsc{{m-i${\perp}$}}$}}}\hbox{\kern 10.34328pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},a:({A}^{\mathsf{Q}})^{\perp},k:\text{1};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=a{\color[rgb]{0,0,1}\bm{\}}}\lightning k:{\perp}\par$}}}}\end{array} 5. p-mu . The derivation ends in \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Gamma\vdash N:{\perp}\mid\Sigma,a:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=77.32716pt\hbox{\kern 3.00003pt$\textsc{{p-mu}}$}}}\hbox{\kern 2.40392pt\hbox{$\displaystyle\Gamma\vdash\mu{a}.N:A\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 1.6667pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\text{IH }\\ {\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},a:({A}^{\mathsf{Q}})^{\perp},k^{\prime}:\text{1};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime}}:{\perp}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=159.91788pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},a:({A}^{\mathsf{Q}})^{\perp};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\star{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=201.64015pt\hbox{\kern 3.00003pt$\textsc{{m-sub}}$}}}\hbox{\kern 2.28476pt\hbox{$\displaystyle{\Gamma}^{\mathsf{\underline{Q}}},({\Sigma}^{\mathsf{Q}})^{\perp},k:({A}^{\mathsf{Q}})^{\perp};\cdot\vdash{N}^{\mathsf{Q}}_{k^{\prime}}{\color[rgb]{0,0,1}\bm{\{}}k^{\prime}:=\star{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{0,0,1}\bm{\{}}a:=k{\color[rgb]{0,0,1}\bm{\}}}:{\perp}$}}}}\end{array} ∎ Lemma 77 . Suppose M\to_{\beta_{V}}N , then {M}^{\mathsf{Q}}_{k}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}{N}^{\mathsf{Q}}_{k} . Proof. By induction on M . ∎ Lemma 78 . Suppose M\to_{\mu_{V}}N , then {M}^{\mathsf{Q}}_{k}={N}^{\mathsf{Q}}_{k} . Proof. By induction on M . ∎ Lemma 79 . Suppose M\to_{\mu_{V}^{\prime}}N , then {M}^{\mathsf{Q}}_{k}\leftrightarrow_{\equiv}^{*}{N}^{\mathsf{Q}}_{k} . Proof. By induction on M . ∎ Lemma 80 . Suppose M\to_{\rho}N , then {M}^{\mathsf{Q}}_{k}\equiv{N}^{\mathsf{Q}}_{k} . Proof. By induction on M . ∎ Lemma 81 . Suppose M\to_{\theta}N , then {M}^{\mathsf{Q}}_{k}\equiv{N}^{\mathsf{Q}}_{k} . Proof. By induction on M . ∎ \CalcMELLSimulatesCalcParigotViaQTranslation * Proof. By induction on M\to_{\mu_{V}}N using Lem. 77 , Lem. 78 , Lem. 79 , Lem. 80 and Lem. 81 . ∎ F.2 Curien and Herbelin’s \overline{\lambda}\mu\tilde{\mu} \TypePreservationForTTranslationForBarLambdaMuTildeMu * Proof. By induction on the derivation. ∎ \CalcMELLSimulatesCalcParigotViaTTranslationForBarLambdaMuTildeMu * Proof. By induction on the reduction step t\to_{\bar{\lambda}\mu\tilde{\mu}}s . ∎ F.3 Hasegawa’s \mu\textsf{DCLL} Hasegawa [ 19 , 20 ] introduces \mu\textsf{DCLL} , an extension of the Dual Intuitionistic Linear Logic of Barber and Plotkin [ 9 , 8 ] to MELL . The system features both the intuitionistic (non-linear) arrow type \supset and the linear arrow type \multimap . Definition 82 (Types and terms of \mu\textsf{DCLL} ) . They are defined as follows: \begin{array}[]{r@{\hspace{.1cm}}c@{\hspace{.1cm}}l@{\hspace{.5cm}}r@{\hspace{.1cm}}c@{\hspace{.1cm}}l}A,B\hskip 2.84544pt&::=\hfil\hskip 2.84544pt&{\perp}\,|\,\alpha\,|\,A\supset B\,|\,A\multimap B\hfil\hskip 14.22636pt&M,N\hskip 2.84544pt&::=\hfil\hskip 2.84544pt&x\,|\,u\,|\,\Lambda u.\,M\,|\,M\,{\color[rgb]{0,0,1}{@}}\,N\,|\,\lambda x.\,M\,|\,M\,{\color[rgb]{0,0,1}\bullet}\,N\,|\,[a]M\,|\,\mu{a}.M\end{array} Typing rules for \mu\textsf{DCLL} are given below, where in \Gamma,\Gamma^{\prime} one assumes that \mathsf{dom}(\Gamma)\cap\mathsf{dom}(\Gamma^{\prime})=\varnothing and similarly for \Sigma,\Sigma^{\prime} . \begin{array}[]{c}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 38.77997pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=77.55994pt\hbox{\kern 3.00003pt$\textsc{{int-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta,u:A;\cdot\vdash u:A\mid\cdot$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 37.38173pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=74.76346pt\hbox{\kern 3.00003pt$\textsc{{lin-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;x:A\vdash x:A\mid\cdot$}}}}\end{array}\par\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.97223pt\hbox{$\displaystyle\penalty\Delta,u:A;\Gamma\vdash M:B\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=109.74146pt\hbox{\kern 3.00003pt$\textsc{{$\supset$-I}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash\Lambda u.\,M:A\supset B\mid\Sigma$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash M:A\supset B\mid\Sigma\quad\Delta;\cdot\vdash N:A\mid\cdot$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=157.58617pt\hbox{\kern 3.00003pt$\textsc{{$\supset$-E}}$}}}\hbox{\kern 32.77768pt\hbox{$\displaystyle\Delta;\Gamma\vdash M\,{\color[rgb]{0,0,1}{@}}\,N:B\mid\Sigma$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 7.08336pt\hbox{$\displaystyle\penalty\Delta;\Gamma,x:A\vdash M:B\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=111.9544pt\hbox{\kern 3.00003pt$\textsc{{$\multimap$-I}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash\lambda x.\,M:A\multimap B\mid\Sigma$}}}}\end{array}\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash M:A\multimap B\mid\Sigma\quad\Delta;\Gamma^{\prime}\vdash N:A\mid\Sigma^{\prime}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=178.33609pt\hbox{\kern 3.00003pt$\textsc{{$\multimap$-E}}$}}}\hbox{\kern 30.83322pt\hbox{$\displaystyle\Delta;\Gamma,\Gamma^{\prime}\vdash M\,{\color[rgb]{0,0,1}\bullet}\,N:B\mid\Sigma,\Sigma^{\prime}$}}}}\end{array}\\ \\ \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 15.70255pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash M:A\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=102.61308pt\hbox{\kern 3.00003pt$\textsc{{${\perp}$-I}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash[a]M:{\perp}\mid\Sigma,a:A$}}}}\end{array}\quad\begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash M:{\perp}\mid\Sigma,a:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=91.77162pt\hbox{\kern 3.00003pt$\textsc{{${\perp}$-E}}$}}}\hbox{\kern 2.40392pt\hbox{$\displaystyle\Delta;\Gamma\vdash\mu{a}.M:A\mid\Sigma$}}}}\end{array}\end{array} Our presentation of equality in \mu\textsf{DCLL} differs slightly from that of [ 19 , 20 ] in three ways. First, we distinguish linear variables ( e.g. x ) from non-linear variables ( e.g. u ). Second, the two extensionality axioms have been removed ( i.e. \Lambda x.\,M\,{\color[rgb]{0,0,1}{@}}\,x\doteq M and \lambda x.\,M\,{\color[rgb]{0,0,1}\bullet}\,x\doteq M , with x\notin\mathsf{fv}(M) ). In addition, op cit uses a “one-shot” \mu -binder in their presentation of ( \mu-R ). That is, in the right-hand side of ( \mu-R ), op cit removes both the occurrence of the \mu -binder and the (unique) occurrence of [a] in M , whereas we retain both 5 5 5 More precisely, the equation is N\,\,(\mu{a}.M)\doteq M[^{N(-)}/[a](-)] , where M[^{N(-)}/[a](-)] is obtained by replacing the unique occurrence of [a]O by N\,\,O in a capture-free way. . Our approach is also the one taken in the classical linear \lambda\mu -calculus of Bierman [ 11 ] . Definition 83 (Axioms for \mu\textsf{DCLL} ) . \mu\textsf{DCLL} -equivalence is defined as the contextual closure of the following equivalence axioms: \begin{array}[]{llll}(\Lambda u.\,M)\,{\color[rgb]{0,0,1}{@}}\,N&\doteq_{lin\beta}&M{\color[rgb]{0,0,1}\bm{\{}}u:=N{\color[rgb]{0,0,1}\bm{\}}}\\ (\lambda x.\,M)\,{\color[rgb]{0,0,1}\bullet}\,N&\doteq_{\beta}&M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}}\\ \end{array} \begin{array}[]{llll}N\,\,(\mu{a}.M)&\doteq_{\mu-R}&\mu{a}.(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd^{\star}}N{\color[rgb]{0,0.6,0}\bm{\}}})\\ \mu{a}.[a]M&\doteq_{\theta}&M&(a\notin\mathsf{fv}(M))\end{array} Definition 84 (Translation) . The translation of a formula and \mu\textsf{DCLL} -term are given by \begin{array}[]{llll}{{\perp}}^{\mathsf{H}}&:=&{\perp}\\ {\alpha}^{\mathsf{H}}&:=&\alpha\\ {(A\supset B)}^{\mathsf{H}}&:=&{?}({A}^{\mathsf{H}})^{\perp}\invamp{B}^{\mathsf{H}}\\ {(A\multimap B)}^{\mathsf{H}}&:=&({A}^{\mathsf{H}})^{\perp}\invamp{B}^{\mathsf{H}}\end{array} \begin{array}[]{llll}{x}^{\mathsf{H}}&:=&x\\ {(\Lambda u.\,M)}^{\mathsf{H}}&:=&{\invamp}(a,k).({M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=a{\color[rgb]{1,0,0}\bm{]}}\lightning k)\\ {(M\,{\color[rgb]{0,0,1}{@}}\,N)}^{\mathsf{H}}&:=&{M}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{!}{{N}^{\mathsf{H}}}\\ {(\lambda x.\,M)}^{\mathsf{H}}&:=&{\invamp}(x,k).({M}^{\mathsf{H}}\lightning k)\\ {(M\,{\color[rgb]{0,0,1}\bullet}\,N)}^{\mathsf{H}}&:=&{M}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{N}^{\mathsf{H}}\\ {([a]M)}^{\mathsf{H}}&:=&{M}^{\mathsf{H}}\lightning a\\ {(\mu{a}.M)}^{\mathsf{H}}&:=&{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\par\end{array} Lemma 85 . If \Delta;\Gamma\vdash M:A\mid\Sigma holds in \mu\textsf{DCLL} , then {\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}:{A}^{\mathsf{H}} holds in \lambda_{\textsf{{MELL}}} . Proof. By induction on the derivation of \Delta;\Gamma\vdash M:A\mid\Sigma . 1. int-ax \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 38.77997pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=77.55994pt\hbox{\kern 3.00003pt$\textsc{{int-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta,u:A;\cdot\vdash u:A\mid\cdot$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 37.25925pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=81.15741pt\hbox{\kern 3.00003pt$\textsc{{m-uax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}},u:{A}^{\mathsf{H}};\cdot\vdash u:{A}^{\mathsf{H}}$}}}}\end{array} 2. lin-ax \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 37.38173pt\hbox{$\displaystyle\penalty$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=74.76346pt\hbox{\kern 3.00003pt$\textsc{{lin-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;x:A\vdash x:A\mid\cdot$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 34.47215pt\hbox{$\displaystyle\penalty\vphantom{{}^{@}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=75.58322pt\hbox{\kern 3.00003pt$\textsc{{m-ax}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};x:{A}^{\mathsf{H}}\vdash x:{A}^{\mathsf{H}}$}}}}\end{array} 3. \supset -I \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 5.97223pt\hbox{$\displaystyle\penalty\Delta,u:A;\Gamma\vdash M:B\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=109.74146pt\hbox{\kern 3.00003pt$\textsc{{$\supset$-I}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash\Lambda u.\,M:A\supset B\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 21.45126pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 17.92476pt\hbox{$\displaystyle\penalty{\Delta}^{\mathsf{H}},u:{A}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}:{B}^{\mathsf{H}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=162.14714pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},a:{!}{{A}^{\mathsf{H}}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=a{\color[rgb]{1,0,0}\bm{]}}:{B}^{\mathsf{H}}$}}}}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=220.04967pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},a:{!}{{A}^{\mathsf{H}}},({\Sigma}^{\mathsf{H}})^{\perp},k:({B}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=a{\color[rgb]{1,0,0}\bm{]}}\lightning k:{\perp}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=235.04967pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 6.66655pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{\invamp}(a,k).{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{u}:=a{\color[rgb]{1,0,0}\bm{]}}\lightning k:{?}({A}^{\mathsf{H}})^{\perp}\invamp{B}^{\mathsf{H}}$}}}}\end{array} 4. \supset -E \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash M:A\supset B\mid\Sigma\quad\Delta;\cdot\vdash N:A\mid\cdot$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=157.58617pt\hbox{\kern 3.00003pt$\textsc{{$\supset$-E}}$}}}\hbox{\kern 32.77768pt\hbox{$\displaystyle\Delta;\Gamma\vdash M\,{\color[rgb]{0,0,1}{@}}\,N:B\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}:{?}({A}^{\mathsf{H}})^{\perp}\invamp{B}^{\mathsf{H}}\quad\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 2.77779pt\hbox{$\displaystyle\penalty{\Delta}^{\mathsf{H}};\cdot\vdash{N}^{\mathsf{H}}:{A}^{\mathsf{H}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=61.33347pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};\cdot\vdash{!}{{N}^{\mathsf{H}}}:{!}{{A}^{\mathsf{H}}}$}}}}\end{array}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=222.65665pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 48.56267pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{!}{{N}^{\mathsf{H}}}:{B}^{\mathsf{H}}$}}}}\end{array} 5. \multimap -I \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 7.08336pt\hbox{$\displaystyle\penalty\Delta;\Gamma,x:A\vdash M:B\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=111.9544pt\hbox{\kern 3.00003pt$\textsc{{$\multimap$-I}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash\lambda x.\,M:A\multimap B\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 30.77258pt\hbox{$\displaystyle\penalty\begin{array}[]{c}\enskip{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 28.95126pt\hbox{$\displaystyle\penalty{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},x:{A}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}:{B}^{\mathsf{H}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=184.19084pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},x:{A}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp},k:({B}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}\lightning k:{\perp}$}}}}\end{array}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=260.73601pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},x:{A}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp},k:({B}^{\mathsf{H}})^{\perp}\vdash{\invamp}(x,k).{M}^{\mathsf{H}}\lightning k:({A}^{\mathsf{H}})^{\perp}\invamp{B}^{\mathsf{H}}$}}}}\end{array} 6. \multimap -E \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma_{1}\vdash M:A\multimap B\mid\Sigma_{1}\quad\Delta;\Gamma_{2}\vdash N:A\mid\Sigma_{2}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=187.89178pt\hbox{\kern 3.00003pt$\textsc{{$\multimap$-E}}$}}}\hbox{\kern 29.44437pt\hbox{$\displaystyle\Delta;\Gamma_{1},\Gamma_{2}\vdash M\,{\color[rgb]{0,0,1}\bullet}\,N:B\mid\Sigma_{1},\Sigma_{2}$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty{\Delta}^{\mathsf{H}};{\Gamma_{1}}^{\mathsf{H}},({\Sigma_{1}}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}:({A}^{\mathsf{H}})^{\perp}\invamp{B}^{\mathsf{H}}\quad{\Delta}^{\mathsf{H}};{\Gamma_{2}}^{\mathsf{H}},({\Sigma_{2}}^{\mathsf{H}})^{\perp}\vdash{N}^{\mathsf{H}}:{A}^{\mathsf{H}}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=257.68446pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 35.92372pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma_{1}}^{\mathsf{H}},{\Gamma_{2}}^{\mathsf{H}},({\Sigma_{1}}^{\mathsf{H}})^{\perp},({\Sigma_{2}}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{N}^{\mathsf{H}}:{B}^{\mathsf{H}}$}}}}\end{array} 7. {\perp} -I \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 15.70255pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash M:A\mid\Sigma$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=102.61308pt\hbox{\kern 3.00003pt$\textsc{{${\perp}$-I}}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle\Delta;\Gamma\vdash[a]M:{\perp}\mid\Sigma,a:A$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{\kern 28.71631pt\hbox{$\displaystyle\penalty{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}:{A}^{\mathsf{H}}$}}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=154.46059pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 0.0pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp},a:({A}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}\lightning a:{\perp}$}}}}\end{array} 8. {\perp} -E \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty\Delta;\Gamma\vdash M:{\perp}\mid\Sigma,a:A$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=91.77162pt\hbox{\kern 3.00003pt$\textsc{{${\perp}$-E}}$}}}\hbox{\kern 2.40392pt\hbox{$\displaystyle\Delta;\Gamma\vdash\mu{a}.M:A\mid\Sigma$}}}}\end{array} \begin{array}[]{c}{\vbox{\hbox spread0.0pt{\hskip 0.0pt\hbox{$\displaystyle\penalty{\Delta}^{\mathsf{H}};{\Gamma}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp},a:({A}^{\mathsf{H}})^{\perp}\vdash{M}^{\mathsf{H}}:{\perp}$}\hskip 0.0pt}\hbox{\hbox{\kern 0.0pt\vrule height=2.75002pt,depth=-2.24998pt,width=136.11928pt\hbox{\kern 3.00003pt$\textsc{}$}}}\hbox{\kern 3.84712pt\hbox{$\displaystyle{\Delta}^{\mathsf{H}},({\Sigma}^{\mathsf{H}})^{\perp};{\Gamma}^{\mathsf{H}}\vdash{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}:{A}^{\mathsf{H}}$}}}}\end{array} ∎ Lemma 86 ( {(\cdot)}^{\mathsf{H}} commutes with linear and unrestricted substitution) . {M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}}}^{\mathsf{H}}={M}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\{}}x:={N}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\}}} and {M{\color[rgb]{0,0,1}\bm{\{}}u:=N{\color[rgb]{0,0,1}\bm{\}}}}^{\mathsf{H}}={M}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\{}}u:={N}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\}}} . Proof. By induction on M using Lem. 41 . ∎ Lemma 87 . {((\Lambda x.\,M)\,{\color[rgb]{0,0,1}{@}}\,N)}^{\mathsf{H}}\twoheadrightarrow_{\mathsf{\lambda_{\textsf{{MELL}}}}}{(M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}})}^{\mathsf{H}} Proof. \begin{array}[]{llll }&{((\Lambda x.\,M)\,{\color[rgb]{0,0,1}{@}}\,N)}^{\mathsf{H}}\\ =&{(\Lambda x.\,M)}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{!}{{N}^{\mathsf{H}}}\\ =&({\invamp}(a,k).({M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}\lightning k))\,{\color[rgb]{0,0,1}\bullet}\,{!}{{N}^{\mathsf{H}}}\\ \to_{\mathsf{\lambda_{\textsf{{MELL}}}}}&({M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:=a{\color[rgb]{1,0,0}\bm{]}}\lightning k){\color[rgb]{0,0,1}\bm{\{}}a:={!}{{N}^{\mathsf{H}}}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}k\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ =&({M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:={!}{{N}^{\mathsf{H}}}{\color[rgb]{1,0,0}\bm{]}}\lightning k){\color[rgb]{1,0,0}\bm{\{}}k\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ \equiv&{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}{!}{x}:={!}{{N}^{\mathsf{H}}}{\color[rgb]{1,0,0}\bm{]}}\\ \to_{\mathsf{\lambda_{\textsf{{MELL}}}}}&{M}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\{}}x:={N}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\}}}\\ =&{(M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}})}^{\mathsf{H}}&Lem.~\ref{lemma:htra_commutes_with_substitution}\end{array} ∎ Lemma 88 . {((\lambda x.\,M)\,{\color[rgb]{0,0,1}\bullet}\,N)}^{\mathsf{H}}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}{(M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}})}^{\mathsf{H}} Proof. \begin{array}[]{llll }&{((\lambda x.\,M)\,{\color[rgb]{0,0,1}\bullet}\,N)}^{\mathsf{H}}\\ =&{(\lambda x.\,M)}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{N}^{\mathsf{H}}\\ =&({\invamp}(x,k).({M}^{\mathsf{H}}\lightning k))\,{\color[rgb]{0,0,1}\bullet}\,{N}^{\mathsf{H}}\\ \to_{\mathsf{\lambda_{\textsf{{MELL}}}}}&({M}^{\mathsf{H}}\lightning k){\color[rgb]{0,0,1}\bm{\{}}x:={N}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\}}}{\color[rgb]{1,0,0}\bm{\{}}k\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ =&({M}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\{}}x:={N}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\}}}\lightning k){\color[rgb]{1,0,0}\bm{\{}}k\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ \equiv&{M}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\{}}x:={N}^{\mathsf{H}}{\color[rgb]{0,0,1}\bm{\}}}\\ =&{(M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}})}^{\mathsf{H}}&Lem.~\ref{lemma:htra_commutes_with_substitution}\\ \end{array} ∎ Lemma 89 . {\mathsf{C}}\bm{\langle}{t\lightning a}\bm{\rangle}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash s{\color[rgb]{1,0,0}\bm{\}}}=t\mathsf{L} , for some \mathsf{L} which depends on \mathsf{C} and s Proof. By induction on \mathsf{C} . ∎ Lemma 90 . {(N\,\,(\mu{a}.M))}^{\mathsf{H}}\equiv{(\mu{a}.(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd^{\star}}N{\color[rgb]{0,0.6,0}\bm{\}}}))}^{\mathsf{H}} Proof. Since M has a unique occurrence of a subterm of the form [a]O , it must have the form {\mathsf{C}}\bm{\langle}{[a]O}\bm{\rangle} . Thus {M}^{\mathsf{H}}={{\mathsf{C}}^{\mathsf{H}}}\bm{\langle}{{O}^{\mathsf{H}}\lightning a}\bm{\rangle} . \begin{array}[]{llll }&{(N\,\,(\mu{a}.M))}^{\mathsf{H}}\\ =&{N}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{(\mu{a}.M)}^{\mathsf{H}}\\ =&{N}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ =&{N}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{{\mathsf{C}}^{\mathsf{H}}}\bm{\langle}{{O}^{\mathsf{H}}\lightning a}\bm{\rangle}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ =&{N}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{O}^{\mathsf{H}}\mathsf{L}&Lem.~\ref{lemma:contrasubstitution_and_refocussing}\\ \equiv&({N}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{O}^{\mathsf{H}})\mathsf{L}&Lem.~\ref{lemma:elim_cos_cceq}\\ =&({{\mathsf{C}}^{\mathsf{H}}}\bm{\langle}{({N}^{\mathsf{H}}\,{\color[rgb]{0,0,1}\bullet}\,{O}^{\mathsf{H}})\lightning a}\bm{\rangle}){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}&Lem.~\ref{lemma:contrasubstitution_and_refocussing}\\ =&{(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd^{\star}}N{\color[rgb]{0,0.6,0}\bm{\}}})}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}&\\ =&{(\mu{a}.(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd^{\star}}N{\color[rgb]{0,0.6,0}\bm{\}}}))}^{\mathsf{H}}\end{array} ∎ Lemma 91 . {(\mu{a}.[a]M)}^{\mathsf{H}}\equiv{M}^{\mathsf{H}} , if a\notin\mathsf{fv}(M) Proof. \begin{array}[]{lll}&{(\mu{a}.[a]M)}^{\mathsf{H}}\\ =&{([a]M)}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ =&({M}^{\mathsf{H}}\lightning a){\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash\star{\color[rgb]{1,0,0}\bm{\}}}\\ =&a{\color[rgb]{1,0,0}\bm{\{}}a\backslash\!\!\backslash{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}{\color[rgb]{1,0,0}\bm{\}}}\\ =&{M}^{\mathsf{H}}{\color[rgb]{1,0,0}\bm{[}}\star:=\star{\color[rgb]{1,0,0}\bm{]}}\\ \equiv&{M}^{\mathsf{H}}\\ \end{array} ∎ Proposition 92 . If M\doteq N , then {M}^{\mathsf{Q}}_{k}\doteq_{\mathsf{\lambda_{\textsf{{MELL}}}}}{N}^{\mathsf{Q}}_{k} . Proof. By induction on M\doteq N , using Lem. 90 , Lem. 88 , Lem. 90 , and Lem. 91 . In summary, 1. {((\Lambda u.\,M)\,{\color[rgb]{0,0,1}{@}}\,N)}^{\mathsf{H}}\twoheadrightarrow_{\mathsf{\lambda_{\textsf{{MELL}}}}}{(M{\color[rgb]{0,0,1}\bm{\{}}u:=N{\color[rgb]{0,0,1}\bm{\}}})}^{\mathsf{H}} . 2. {((\lambda x.\,M)\,{\color[rgb]{0,0,1}\bullet}\,N)}^{\mathsf{H}}\to_{\mathsf{\lambda_{\textsf{{MELL}}}}}{(M{\color[rgb]{0,0,1}\bm{\{}}x:=N{\color[rgb]{0,0,1}\bm{\}}})}^{\mathsf{H}} . 3. {(N\,\,(\mu{a}.M))}^{\mathsf{H}}\equiv{(\mu{a}.(M{\color[rgb]{0,0.6,0}\bm{\{}}a{\lhd^{\star}}N{\color[rgb]{0,0.6,0}\bm{\}}}))}^{\mathsf{H}} . 4. {(\mu{a}.[a]M)}^{\mathsf{H}}\equiv{M}^{\mathsf{H}} , if a\notin\mathsf{fv}(M) . ∎