This paper provides an arithmetical proof of strong normalization for lambda-Sym-Prop and establishes a translation to lambda-bar-mu-mu-tilde-star-calculus, introducing the concept of zoom-in sequences of redexes.
Contribution
It offers a new arithmetical proof of strong normalization for lambda-Sym-Prop and connects it to lambda-bar-mu-mu-tilde-star-calculus using a novel method involving zoom-in sequences.
Findings
01
Proved strong normalization of lambda-Sym-Prop
02
Established translation to lambda-bar-mu-mu-tilde-star-calculus
03
Introduced the concept of zoom-in sequences of redexes
Abstract
In this paper we give an arithmetical proof of the strong normalization of lambda-Sym-Prop of Berardi and Barbanera [1], which can be considered as a formulae-as-types translation of classical propositional logic in natural deduction style. Then we give a translation between the lambda-Sym-Prop-calculus and the lambda-bar-mu-mu-tilde-star-calculus, which is the implicational part of the lambda-bar-mu-mu-tilde-calculus invented by Curien and Herbelin [3] extended with negation. In this paper we adapt the method of David and Nour [4] for proving strong normalization. The novelty in our proof is the notion of zoom-in sequences of redexes, which leads us directly to the proof of the main theorem.
t^{\mathfrak{e}}=\left\{\begin{array}[]{ll}x&\;\;\;\textrm{ if $\;\;t=x$},\\
\lambda y(\lambda x({\pi}_{2}(y)\star u^{\mathfrak{e}})\star{\pi}_{1}(y))&\;\;\;\textrm{ if $\;\;t=\lambda xu$},\\
\lambda x(e^{\mathfrak{e}}\star t^{\mathfrak{e}})&\;\;\;\textrm{ if $\;\;t=\tilde{\mu}x\lfloor t,e\rfloor$},\\
u^{\mathfrak{e}}&\;\;\;\textrm{ if
$\;\;t=\overline{u}$}.\end{array}\right.
t^{\mathfrak{e}}=\left\{\begin{array}[]{ll}x&\;\;\;\textrm{ if $\;\;t=x$},\\
\lambda y(\lambda x({\pi}_{2}(y)\star u^{\mathfrak{e}})\star{\pi}_{1}(y))&\;\;\;\textrm{ if $\;\;t=\lambda xu$},\\
\lambda x(e^{\mathfrak{e}}\star t^{\mathfrak{e}})&\;\;\;\textrm{ if $\;\;t=\tilde{\mu}x\lfloor t,e\rfloor$},\\
u^{\mathfrak{e}}&\;\;\;\textrm{ if
$\;\;t=\overline{u}$}.\end{array}\right.
e^{\mathfrak{e}}=\left\{\begin{array}[]{ll}\overline{\alpha}&\;\;\;\textrm{ if $\;\;e=\alpha$},\\
\langle t^{\mathfrak{e}},h^{\mathfrak{e}}\rangle&\;\;\;\textrm{ if $\;\;e=t.h$},\\
\lambda\overline{\alpha}(e^{\mathfrak{e}}\star t^{\mathfrak{e}})&\;\;\;\textrm{ if $\;\;e=\mu\alpha\lfloor t,e\rfloor$},\\
h^{\mathfrak{e}}&\;\;\;\textrm{ if
$\;\;e=\widetilde{h}$}.\end{array}\right.
e^{\mathfrak{e}}=\left\{\begin{array}[]{ll}\overline{\alpha}&\;\;\;\textrm{ if $\;\;e=\alpha$},\\
\langle t^{\mathfrak{e}},h^{\mathfrak{e}}\rangle&\;\;\;\textrm{ if $\;\;e=t.h$},\\
\lambda\overline{\alpha}(e^{\mathfrak{e}}\star t^{\mathfrak{e}})&\;\;\;\textrm{ if $\;\;e=\mu\alpha\lfloor t,e\rfloor$},\\
h^{\mathfrak{e}}&\;\;\;\textrm{ if
$\;\;e=\widetilde{h}$}.\end{array}\right.
M^{\mathfrak{f}}=\left\{\begin{array}[]{ll}x&\;\;\;\textrm{ if $\;\;M=x$},\\
\lfloor Q^{\mathfrak{f}},\widetilde{P^{\mathfrak{f}}}\rfloor&\;\;\;\textrm{ if $\;\;M=(P\star Q)$},\\
\overline{\tilde{\mu}xN^{\mathfrak{f}}}&\;\;\;\textrm{ if $\;\;M=\lambda xN$},\\
\overline{(P^{\mathfrak{f}}.\widetilde{Q^{\mathfrak{f}}})}&\;\;\;\textrm{ if $\;\;M=\langle P,Q\rangle$},\\
\lambda x\mu\beta\lfloor N^{\mathfrak{f}},\widetilde{x}\rfloor&\;\;\;\textrm{ if $\;\;M=\sigma_{1}(N)$,
$x\notin Fv(N^{\mathfrak{f}})$ and $\beta\notin Fv(\lfloor N^{\mathfrak{f}},\widetilde{x}\rfloor)$},\\
\lambda xN^{\mathfrak{f}}&\;\;\;\textrm{ if $\;\;M=\sigma_{2}(N)$ and $x\notin Fv(N^{\mathfrak{f}})$}.\end{array}\right.
M^{\mathfrak{f}}=\left\{\begin{array}[]{ll}x&\;\;\;\textrm{ if $\;\;M=x$},\\
\lfloor Q^{\mathfrak{f}},\widetilde{P^{\mathfrak{f}}}\rfloor&\;\;\;\textrm{ if $\;\;M=(P\star Q)$},\\
\overline{\tilde{\mu}xN^{\mathfrak{f}}}&\;\;\;\textrm{ if $\;\;M=\lambda xN$},\\
\overline{(P^{\mathfrak{f}}.\widetilde{Q^{\mathfrak{f}}})}&\;\;\;\textrm{ if $\;\;M=\langle P,Q\rangle$},\\
\lambda x\mu\beta\lfloor N^{\mathfrak{f}},\widetilde{x}\rfloor&\;\;\;\textrm{ if $\;\;M=\sigma_{1}(N)$,
$x\notin Fv(N^{\mathfrak{f}})$ and $\beta\notin Fv(\lfloor N^{\mathfrak{f}},\widetilde{x}\rfloor)$},\\
\lambda xN^{\mathfrak{f}}&\;\;\;\textrm{ if $\;\;M=\sigma_{2}(N)$ and $x\notin Fv(N^{\mathfrak{f}})$}.\end{array}\right.
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Full text
\lmcsheading
13(3:34)2017
1–LABEL:LastPage
Mar. 11, 2016
Sep. 28, 2017
Strong normalization of \ls- and \lmts-calculi
Péter Battyányi\rsupera
\lsuperaDepartment of Computer Science, Faculty of Informatics,
University of Debrecen, Kassai út 26, 4028 Debrecen, Hungary
In this paper we give an arithmetical proof of the strong normalization of \ls of Berardi and Barbanera
[BB96], which can be considered as a formulae-as-types translation of classical propositional
logic in natural deduction style.
Then we give a translation between the \ls-calculus and the \lmts-calculus, which is the implicational part of
the λμμ~-calculus invented by Curien and Herbelin [CH00] extended with negation.
In this paper we adapt the method of David and Nour [DN05] for proving strong normalization.
The novelty in our proof is the notion of zoom-in sequences of redexes, which leads us directly to the proof of the main theorem.
It was revealed by the works of Murthy [Mur91] and Griffin [Gri90] that the Curry-Howard isomorphism,
which establishes a correspondence between natural deduction style proofs in intuitionistic logic and terms
of the typed λ-calculus, can be extended to the case of classical logic, as well. Since their discovery many
calculi appeared aiming to give an encoding of proofs formulated either
in classical natural deduction or in classical sequent calculus.
The λμ-calculus presented by Parigot in [Par90] finds its origin in the so called Free Deduction (FD).
Parigot resolves the deterministic nature of intuitionistic natural deduction: unlike in the case of intuitionistic natural
deduction, when eliminating an instance of a cut in FD, there can be several choices for picking out the subdeductions to be
transformed. By introducing variables of a new kind, the so called μ-variables, Parigot distinguishes formulas that
are not active at the moment but the current continuation can be passed over to them. Besides the usual β-reduction,
Parigot introduces a new reduction rule called the μ-rule corresponding to structural cut eliminations made necessary
by the occurrence of new forms of cuts due to the rule in connection with the μ-variables. The result is a calculus,
the λμ-calculus (Parigot [Par92]), which is in relation with classical natural deduction.
The μ′-rule is the symmetric counterpart of the μ-rule. It was introduced by Parigot [Par93] with the intention
of keeping the unicity of representation of data (Nour [Nou97]), the price was, however, that confluence had been lost.
In the presence of other simplification rules besides μ and μ′, even the strong normalization property is lost
(Battyányi [Bat07]).
Historically, the first calculus reflecting the symmetry of classical propositional logic was the \ls-calculus of Berardi
and Barbanera [BB96] establishing a formulae-as-types connection with natural deduction in classical logic.
The calculus \ls uses an involutive negation which is not defined as A→⊥. There are negated and non-negated atomic types,
and the main connective is not the arrow but the classical ∧ and ∨. Berardi and Barbanera make use of the natural symmetry
of classical logic expressed by the de Morgan laws in defining negated types. In their paper,
Berardi and Barbanera proved that \ls is strongly normalizable with a symmetric version of the Tait-Girard reducibility
method (Tait [Tai67]). In this paper, leaning on the combinatorial proof applied by David and Nour in [DN07],
we prove that \ls is strongly normalizing. The novelty in our proof is the application of so-called zoom-in sequences of redexes,
which was inspired by the work in Raamsdonk et al. [RSSX99]. We prove strong normalizability by verifying that it is closed under
substitution.
From the assumption that U[x:=V] is strongly normalizing and U, V are strongly normalizing, we can identify a subterm U′
of a reduct of U such that U′[x:=V] also is strongly normalizing. The reduction sequence leading to U′ is a so-called
zoom-in sequence of redexes: each subsequent element is a subterm of the one-step reduct of the preceding one. We prove that
zoom-in sequences have useful invariant properties,
which makes it relatively easy for us to set the stage for the main theorem.
Due to its intrinsic symmetry in dealing with the typing relation, the \ls-calculus also proves to be very close to the calculus
named by Nour as classical combinatory logic (CCL). Nour [Nou06] defined a calculus of combinators which is equivalent to the
full classical propositional logic in natural deduction style. Then a translation is given in both directions between \ls and CCL.
Curien and Herbelin introduced the λμμ~-calculus (Curien et al. [CH00]), which established a correspondence, via the
Curry-Howard isomorphism, between classical Gentzen-style sequent calculus and a logical calculus. The λμμ~-calculus
possesses a rather strong symmetry: it has right-hand side and left-hand side terms (also referred to as environments).
The strong normalization of the calculus was proved by Polonovski [Pol04], and a proof formalizable in first order Peano
arithmetic was found by David and Nour [DN05].
As to the connection between the λμ and the λμμ~-calculus, Curien and Herbelin [CH00] defined a translation both
for the call-by-value and the call-by-name part of the λμ-calculus into the λμμ~-calculus. Rocheteau [Roc05] finished
this work by defining
simulations between the two calculi in both directions. In this paper we define the \lmts-calculus, which is the λμμ~-calculus
extended with negation, and we describe translations between the \lmts-calculus and the \ls-calculus. As a consequence,
we obtain that, if one of the calculi is strongly normalizable, then the other one necessary admits this property.
The proof applied in the paper is an adaptation of that of David and Nour [DN05]. David and Nour [DN05] gave
arithmetic proofs, that is, proofs formalizable in first-order Peano arithmetic, for the strong normalizability of the λμμ~- and
Parigot’s symmetric λμ-calculus. It is demonstrated that the set of strongly normalizable terms are closed under substitution.
The goal is achieved by applying implicitly an alternating substitution to find out which part of the substitution would be
responsible for being not strongly normalizable provided the basis of the substitution and the terms written in are strongly
normalizable. In this paper we reach the same goal by identifying a minimal non strongly normalizing sequence of redexes provided
an infinite reduction sequence is given. We call this sequence of redexes a minimal zoom-in reduction sequence. The idea of zoom-in
sequence was inspired by Raamsdonk et al. [RSSX99], where perpetual reduction strategies are defined in order to locate the minimal
non strongly normalizing subterms of the elements of an infinite reduction sequence. Again, alternating substitutions are defined
inductively starting from two sets of terms, and it is proven that zoom-in reduction sequences do not lead out of these substitutions.
With this in hand, the method of David and Nour [DN05] can be applied.
We prove the strong normalization of the \ls-calculus, though our proof works with some slight modification in the
case of the λμμ~-calculus, as well (Battyányi [Bat07]). However, instead of repeating the proof here, we give a translation of
the \ls-calculus into the λμμ~-calculus, and vice versa. In fact, to make the connection more visible we define the
\lmts-calculus, which is the λμμ~-calculus extended with terms expressing negated types. Hence, we also obtain a new proof
of strong normalization of the λμμ~-calculus.
The paper is organized as follows. In the first section we introduce the \ls-calculus of Berardi and Barbanera,
and, as the first step towards strong normalization, prove that the permutation rules can be postponed. In the next section
we show that the β, β⊥, π and π⊥ rules together are strongly normalizing. Section 3 introduces
the λμμ~-calculus defined by Curien and Herbelin, and we augment the calculus with negation in order to make the comparison
of the \ls- and the λμμ~-calculi simpler. Section 4 provides translations between the \ls- and
the \lmts-calculi such that the strong normalization of one of the calculi implies that of the other.
The last section contains conclusions with regard to the results of the paper.
1. The \ls-calculus
The λSym-calculus was
introduced by Berardi and Barbanera [BB96]. It is
organized entirely around the duality in classical logic.
It has a negation “built-in”: the negation of A is not
defined as A→⊥. Each type is rather related to its
natural negated type by the notion of duality
introduced by negation in classical logic. In fact, Berardi and
Barbanera defined a calculus equivalent to first order Peano
arithmetic. However, we only consider here its propositional part,
denoted by \ls, since all the other calculi treated by us in
this work are concerned with propositional logic.
{defi}
The set of types are built from two sets of base
types
A={a,b,…} (atomic types) and
A⊥={a⊥,b⊥,…} (negated
atomic types).
(1)
The set of m-types is defined by the following grammar
[TABLE]
where α ranges over A and α⊥ over
A⊥.
2. (2)
The set of types is defined by the following grammar
[TABLE]
3. (3)
We define the negation of an m-type as follows
[TABLE]
In this way we get an involutive negation,
i.e. for every m-type A, (A⊥)⊥=A.
4. (4)
The complexity of a type is defined inductively as follows.
We denote by Var the set of term-variables.
The set of terms T of the \ls-calculus together with their typing rules are defined as
follows. In the definition below the type of a variable must be an
m-type and Γ denotes a context (the set of declarations of variables).
[TABLE]
[TABLE]
2. (2)
We say that M has type A, if there is a context Γ such that Γ⊢M:A.
We consider A as fixed for a certain element Γ⊢M:A of the typability relation.
3. (3)
As usual, we denote by Fv(M), the set of the free variables of the term M.
4. (4)
The complexity of a term of T is defined as follows.
(*) If E[−] is a context with type ⊥ and E[−]=[−], P has type ⊥ and E[−] does not bind
any free variables in P.
2. (2)
Let us take the union of the above rules.
Let → stand for the compatible closure of this union and, as usual, →∗ denote the reflexive, symmetric and transitive
closure of →. The notions of reduction sequence, normal form and normalization are defined with respect to →.
3. (3)
Let M,N be terms. Assume M→∗N. The length (i.e. the number of steps) of the reduction →∗ is
denoted by lg(M→∗N).
We enumerate below some theoretical properties of the \ls-calculus following Berardi and Barbanera [BB96] and de Groote [Gro01].
Proposition 1** (Type-preservation property).**
If Γ⊢P:A and P→∗Q, then Γ⊢Q:A.
Proposition 2** (Subformula property).**
If Π is a derivation of Γ⊢P:A and P is in normal
form, then every type occurring in Π is a subformula of a type
occurring in Γ, or a subformula of A.
Theorem 3** (Strong normalization).**
If Γ⊢P:A, then P is strongly normalizable, i.e. every reduction sequence starting from P is finite.
Berardi and Barbanera proved Theorem 3 for the
extension of the \ls-calculus equivalent to first-order
Peano-arithmetic. The proof of this result by Berardi and Barbanera
[BB96] is based on reducibility candidates, but the
definition of the interpretation of a type relies on
non-arithmetical fixed-point constructions.
We present a syntactical and arithmetical proof of the strong normalization of the \ls-calculus in Section 3.
The proof was inspired by a method of David and Nour [DN05]. First we establish that the permutation rules η, η⊥ and
Triv can be postponed so that we can restrict our attention uniquely to the rules β, β⊥, π, and π⊥.
1.1. Permutation rules
First of all, we prove that the η- and
η⊥-reductions can be postponed w.r.t. β, β⊥,
π, and π⊥.
{defi}
(1)
Let λβπ-calculus denote the calculus with only the reduction rules →β, →β⊥, →π, and →π⊥.
2. (2)
Let →βπ stand for the union of →β,→β⊥,→π,→π⊥ and let M→eN denote the fact that
M→ηN or M→η⊥N.
3. (3)
We denote by
→β0 (resp. by →β0⊥) the β-reduction (λxM⋆N)→βM[x:=N] (resp. the β⊥-reduction (N⋆λxM)→β⊥M[x:=N]), where x occurs at most once in M.
4. (4)
We use the standard notation →+ and →∗ for the transitive and reflexive, transitive closure of a reduction,
respectively.
We examine the behaviour of a →e rule followed by a →β and a →β0 rule in Lemmas 4 and 5.
Lemma 4**.**
If U→eV→βW, then U→βV′→e∗W or U→β0V′→βW for some V′.
Proof 1.1**.**
We assume →e is an η-reduction, the proof of the case of →β is similar.
The proof is by induction on cxty(U). The only interesting case is U=(U1⋆U2). We consider only some of the subcases.
(1)
U1=λx(U3⋆x), with x∈/Fv(U3), and V=(U3⋆U2)→βU4[y:=U2]=W, where U3=λyU4. In this case U=(λx(U3⋆x)⋆U2)→β0(U3⋆U2)→βU4[y:=U2]=W, so
→η→β turns into →β0→β.
2. (2)
U1=λxU3, U3→ηU4 and V=(λxU4⋆U2)→βU4[x:=U2]=W. Then U→βV′=U3[x:=U2]→ηU4[x:=U2]=W.
3. (3)
U1=λxU3, U2→ηU4 and V=(λxU3⋆U4)→βU3[x:=U4]=W. Then U→βV′=U3[x:=U2]→η∗U3[x:=U4].
Lemma 5**.**
If U→eV→β0W, then U→β0W or U→β0V′→eW or U→β0V′→β0W for some V′.
Proof 1.2**.**
By induction on cxty(U). We assume U=(U1⋆U2) and we consider some of the more interesting cases.
(1)
U1=λx(U3⋆x), with x∈/Fv(U3), and V=(U3⋆U2)→β0U4[y:=U2]=W, where U3=λyU4. In this case U=(λx(U3⋆x)⋆U2)→β0(U3⋆U2)→β0U4[y:=U2]=W, thus
→η→β0 turns into →β0→β0.
2. (2)
U1=λxU3, U3→ηU4 and V=(λxU4⋆U2)→β0U4[x:=U2]=W. Then U→β0V′=U3[x:=U2]→ηU4[x:=U2]=W.
3. (3)
U1=λxU3, U2→ηU4 and V=(λxU3⋆U4)→β0U3[x:=U4]=W. Then U→β0V′=U3[x:=U2]→ηU3[x:=U4] provided x occurs in U3. Otherwise U→β0U3=W.
We obtain easily the following lemma on the behaviour of several →e rules followed by a →β or a →β0 rule.
Lemma 6**.**
*If U→e∗V→β0W, then U→β0+V′→e∗W for some V′, and
By induction on lg(U→e∗V→βW).
Use Lemmas 4 and 6.
Lemma 8**.**
If U→e∗V→β⊥W, then U→β⊥+V′→e∗W for some V′.
Proof 1.5**.**
Similar to that of the previous lemma.
We investigate now how a →e rule behaves when followed by a →π or →π⊥ rule.
Lemma 9**.**
If U→eV→πW (resp. U→eV→π⊥W), then U→πV′→eW or U→πW
(resp. U→π⊥V′→eW or U→π⊥W) for some V′.
Proof 1.6**.**
Observe that in case of U→eV→πW the following possibilities can occur:
either U=λx(V⋆x) and V→πW or U=(⟨P1,P2⟩⋆σ(Q)) and V=(⟨P1′,P2′⟩⋆σ(Q′)),
where exactly one of Pi→ePi′, Q→eQ′ holds, the other two terms are left unchanged.
From this, the statement easily follows.
We are now in a position to prove the main result of the section.
Lemma 12**.**
The η- and the η⊥-reductions are strongly normalizing.
Proof 1.9**.**
The η- and η⊥-reductions on M reduce the complexity of M.
{defi}
(1)
Let λβπη-calculus denote the calculus obtained from the λβπ-calculus by adding the η- and
η⊥-reductions to it.
2. (2)
Let →βπη denote the union of →β,
→β⊥, →π, →π⊥, →η and
→η⊥.
3. (3)
Assume M is a term strongly normalizable in the λβπ-calculus. Then we denote by ηβπ(M)
the length of the longest reduction sequence →βπ∗ starting from M.
Corollary 13**.**
If the λβπ-calculus is strongly normalizing, then the λβπη-calculus is also strongly normalizing.
Proof 1.10**.**
Let M be a term, we prove by induction on ηβπ(M) that M is strongly normalizable in the λβπη-calculus. Assume S is an infinite βπη-reduction sequence starting from M. If S begins with a →βπ, then the induction
hypothesis applies. In the case when S
contains only →e-reductions, we are done by Lemma 12. Otherwise
there is an initial subsequent M→e+M′→βπN. By Lemma 10, we have M→βπ+M′′→e∗N. Thus, we can apply the induction hypothesis to
M′′.
In the rest of the section we deal with the rule Triv.
For strong normalization, it is enough to show
that →Triv can be postponed w.r.t. →βπη.
Lemma 14**.**
If U→Triv∗V→βπηW, then U→βπη+V′→Triv∗W for some V′.
Proof 1.11**.**
It is enough to prove that if U→TrivV→βπηW, then U→βπηV′→TrivW for some V′.
Observe that if U=E[V]→TrivV→βπηW, then V:⊥ and W:⊥, from which the statement follows.
Lemma 15**.**
The reduction →Triv is strongly normalizing.
Proof 1.12**.**
The reduction →Triv on M reduces the complexity of M.
Corollary 16**.**
If the λβπ-calculus is strongly normalizing, then the λPropSym-calculus
is also strongly normalizing.
In this section, we give an arithmetical proof for the strong normalization of the λβπ-calculus.
In the sequel we detail the proofs for
the β- and π-reductions only, all the proofs below can be
extended with the cases of the β⊥- and π⊥-reduction rules
in a straightforward way. We intend to examine how substitution behaves with respect to strong normalizability.
The first milestone in this way is Lemma 20. Before stating the lemma, we formulate some auxiliary statements.
{defi}
(1)
Let SNβπ denote the set of strongly normalizable terms of the λβπ-calculus.
2. (2)
Let M∈SNβπ, then ηc(M) stands for the pair ⟨ηβπ(M),cxty(M)⟩.
Lemma 17**.**
Let us suppose M∈SNβπ, N∈SNβπ and
(M⋆N)∈/SNβπ. Then there are P∈SNβπ, Q∈SNβπ
such that M→βπ∗P and N→βπ∗Q and (P⋆Q)∈/SNβπ is a redex.
Proof 2.1**.**
By induction on ηc(M)+ηc(N). Assume M∈SNβπ, N∈SNβπ and
(M⋆N)∈/SNβπ. When (M⋆N)→(M′⋆N) or (M⋆N)→(M⋆N′), then the induction hypothesis applies.
Otherwise (M⋆N)→P∈/SNβπ, and we have the result.
{defi}
(1)
A proper term is a term differing from a variable.
2. (2)
For a type A, ΣA denotes the set of simultaneous substitutions of the form
[x1:=N1,…,xk:=Nk] where Ni (1≤i≤n) is proper and has type A.
3. (3)
A simultaneous substitution σ∈ΣA is said to be in SNβπ, if, for every x∈dom(σ), σ(x)∈SNβπ holds.
Lemma 18**.**
Let M,N be terms such that M→βπ∗N.
(1)
If N=λxP, then M=λxP1 with P1→βπ∗P.
2. (2)
If N=⟨P,Q⟩, then M=⟨P1,Q1⟩ with P1→βπ∗P and Q1→βπ∗Q.
3. (3)
If N=σi(P), then M=σi(P1) with P1→βπ∗P, for i∈{1,2}.
Proof 2.2**.**
Straightforward.
We remark that in the presence of the →η and →η⊥ rules the above lemma would not work.
For example, λx(y⋆x)→ηy.
Lemma 19**.**
If M∈SNβπ and x∈Var, then (M⋆x)∈SNβπ (resp. (x⋆M)∈SNβπ).
Proof 2.3**.**
Let us suppose M∈SNβπ and (M⋆x)∈/SNβπ.
By Lemma 17, we must have M→βπ∗λyM1∈SNβπ
such that (M⋆x)→βπ∗(λyM1⋆x)→βπM1[y:=x] and M1[y:=x]∈/SNβπ.
Being a subterm of a reduct of M∈SNβπ, we also have M1∈SNβπ. Moreover, M1[y:=x]
is obtained from M1 by α-conversion, hence M1[y:=x]∈SNβπ, a contradiction.
{defi}
(1)
Let M,N be terms.
(a)
We denote by M≤N (resp. M<N) the fact that M is a sub-term
(resp. a strict sub-term) of N.
2. (b)
We denote by M≺N the fact that M≤P for some N→βπ+P
or M<N. We denote by ⪯ the
reflexive closure of ≺.
3. (c)
Let R be a βπ-redex. We write M→RN if N is the term M
after the reduction of R.
2. (2)
Let R=[R1,…,Rn] where Ri is a βπ-redex (1≤i≤n).
Then R is called zoom-in if, for every 1≤i<n,
Ri→RiRi′ and Ri+1≤Ri′. Moreover, R is minimal, if, for each Ri=(Pi⋆Qi),
we have Pi, Qi∈SNβπ and (Pi⋆Qi)∈/SNβπ. We write M→RN, if
M→R1...→RnN.
For the purpose of proving the strong normalization of the calculus,
it is enough to show that the set of strongly normalizable terms is closed under substitution.
To this end, we show that, if U, S∈SNβπ and U[x:=S]∈/SNβπ, then there is a term W≤U of a
special form such that W∈SNβπ and W[x:=S]∈/SNβπ. Moreover, we show that the sequence of redexes
leading to W is not completely general, this is a zoom-in sequence defined below. Reducing the outermost redexes of a
zoom-in sequence preserve some useful properties,
which is the statement of Lemma 21.
Lemma 20**.**
Let U, S∈SNβπ and suppose U[x:=S]∈/SNβπ. Then there are terms P,V⪯U and a zoom-in minimal R such that
U[x:=S]→RV[x:=S], (x⋆P)≤V (or (P⋆x)≤V), P[x:=S]∈SNβπ
and (x⋆P)[x:=S]∈/SNβπ (or (P⋆x)[x:=S]∈/SNβπ).
Proof 2.4**.**
The proof goes by induction on ηc(U). If U is other than an application, we can apply the induction hypothesis.
Assume U=(U1⋆U2) with Ui[x:=S]∈SNβπ(i∈{1,2}) and U[x:=S]∈/SNβπ.
By Lemma 17 and the induction hypothesis we may assume that (U1⋆U2)[x:=S]→ρU′∈/SNβπ,
where ρ∈{β,β⊥,π,π⊥}. Let us suppose ρ=β, the other cases can be treated similarly.
If U1=λyU1′, then the induction hypothesis applies to U1′[y:=U2]. Otherwise U1=x, and we have obtained the result.
Next we define an alternating substitution: we start from two sets of terms of complementary types and the substitution is
defined in a way that we keep track of which newly added sets of substitutions come from which of the two sets.
The reason for this is that Lemma 20 in itself is not enough for proving the strong normalizability
of \ls even if we would consider the β and β⊥ rules alone.
We have to show that, if we start from a term (U1⋆U2), where U1 and U2∈SNβπ and we assume that
U1[x:=U2]∈/SNβπ, then there are no deep interactions between the terms which come from U1 and from U2.
We can identify a subterm of a reduct of U1 which is the cause for being non SNβπ, when performing a substitution
with U2.
{defi}
(1)
A set A of proper terms is called ⪯-closed from
below if, for all terms U,U′, if U′⪯U, U∈A and U′
is proper, then U′∈A.
2. (2)
Let A,B be sets ⪯-closed from below and A a type.
We define simultaneously two sets of substitutions
(a)
ΠA(B)⊆ΣA and ΘA⊥(A)⊆ΣA⊥ as follows.
–
∅∈ΠA(B),
–
[y1:=V1τ1,…,ym:=Vmτm]∈ΠA(B) if Vi∈B such that type(Vi)=A and τi∈ΘA⊥(A)(1≤i≤m).
–
∅∈ΘA⊥(A).
–
[x1:=U1ρ1,…,xm:=Umρm]∈ΘA⊥(A)
if Ui∈A such that type(Ui)=A⊥ and ρi∈ΠA(B)(1≤i≤m).
2. (b)
Let SA(A,B)={Uρ∣U∈A and ρ∈ΠA(B)}∪{Vτ∣V∈B and τ∈ΘA⊥(A)}.
It is easy to see that, from U≤V and V∈SA(A,B), it follows U∈SA(A,B).
Lemma 21**.**
Let n be an integer, A a type
of length n and R=[R1,…,Rm]
a zoom-in minimal sequence of redexes. Assume the property H “if U,
V∈SNβπ and cxty(type(V))<n, then U[x:=V]∈SNβπ” holds. If R1∈SA(A,B) for some
sets A and B⪯-closed from below, then
Rm∈SA(A,B).
Proof 2.5**.**
The proof goes by induction on m. We prove the induction step from m=1 to m=2, the proof is
the same when m∈N is arbitrary. We only
treat the more interesting cases. Assume R1∈SA(A,B).
(1)
R1=(λxQ⋆S)→βR1′=Q[x:=S]* and R2≤R1′.*
(a)
Suppose R1=Uρ for some U∈A and ρ∈ΠA(B). Then U=(U1⋆U2)
with U1ρ=λxQ and U2ρ=S, and, since ρ∈ΣA, U1 must be proper.
Then we have U1=λxU1′ and
U1′ρ=Q for some U1′. Now,
R1′=U1′[x:=U2]ρ∈SA(A,B), which yields R2∈SA(A,B).
2. (b)
Assume now R1=Vτ. Then V=(V1⋆V2)
with V1τ=λxQ and V2τ=S, and, since τ∈ΣA⊥, V2 must be proper.
If V1 is proper, then, as before, we obtain the result. Otherwise V1τ=Uρ=λxQ.
Since U∈A is proper, U=λxU1 and
U1ρ=Q for some U1. Then U1ρ1∈SA(A,B) with ρ1=ρ+[x:=V2τ],
since type(V2τ)=type(S)=A. This implies R2∈SA(A,B).
2. (2)
R1=(⟨Q1,Q2⟩⋆σ1(S))→π(Q1⋆S)=R1′* and R2≤R1′.*
(a)
Assume R1=Uρ for some U∈A and ρ∈ΠA(B). Then U1ρ=⟨Q1,Q2⟩ and
U2ρ=σ1(S).
Let U1 and U2 be proper. Then U1=⟨U1′,U1′′⟩ and U2=σ1(U2′)
such that U1′ρ=Q1, U1′′ρ=Q2 and U2′ρ=S. We have R1′=(U1′⋆U2′)ρ∈SA(A,B),
which yields the result.
-
Assume U2∈Var. Then Vτ=σ(S), and cxty(type(S))<
cxty(type(σS))=n.
Then assumption H and the fact that ⟨Q1,Q2⟩∈SNβπ, together with Lemma 19,
lead to (Q1⋆S)∈SNβπ, which is not possible.
Since ρ∈ΣA, U1∈Var is impossible.
2. (b)
Assume R1=Vτ for some V∈B and τ∈ΘA⊥(A). Then V1τ=⟨Q1,Q2⟩ and
V2τ=σ1(S), where V=(V1⋆V2).
Let V1 and V2 be proper. Then V1=⟨V1′,V1′′⟩ and V2=σ1(V2′)
such that V1′τ=Q1, V1′′τ=Q2 and V2′τ=S. We have R1′=(V1′⋆V2′)τ∈SA(A,B).
-
Assume V1∈Var. Then Uρ=⟨Q1,Q2⟩, where cxty(type(Q1))<
cxty(type(⟨Q1,Q2⟩))=n.
Then assumption H and the fact that S∈SNβπ, together with Lemma 19, lead to (Q1⋆S)∈SNβπ,
which is not possible. Since τ∈ΣA⊥, the case of V2∈Var is impossible.
The next lemma identifies the subterm of U being responsible for the non strong normalizability of U[x:=V].
Lemma 22**.**
Let n be an integer and A a type of length n. Assume the property H “if U,
V∈SNβπ and cxty(type(V))<n, then U[x:=V]∈SNβπ” holds.
(1)
Let U be a proper term, σ∈ΣA and a∈/Im(σ). If Uσ,P∈SNβπ and Uσ[a:=P]∈/SNβπ, then
there exists U′ such that (U′⋆a)⪯U and
σ′∈ΣA such that U′σ′∈SNβπ and (U′σ′⋆a)[a:=P]∈/SNβπ.
2. (2)
Let U be a proper term, σ∈ΣA⊥ and a∈/Im(σ). If Uσ,P∈SNβπ and Uσ[a:=P]∈/SNβπ, then
there exists U′ such that (a⋆U′)⪯U and
σ′∈ΣA⊥ such that U′σ′∈SNβπ and (a⋆U′σ′)[a:=P]∈/SNβπ.
Proof 2.6**.**
Let us consider only case (1). We identify the reason of Uσ[a:=P] being non strongly normalizable,
we find a subterm (U′⋆a) of a reduct of U such that, for a substituted instance of (U′⋆a),
(U′⋆a)σ′∈SNβπ and (U′⋆a)σ′[a:=P]∈/SNβπ. This will contradict by
some minimality assumption concerning U in the next lemma. For this we define two sets
of substitutions as in Definition 2 with the sets A and
B as below. We note that Property H of the previous lemma implicitly ensures
that the type of U and the type of the elements in σ can be of the same lengths.
Let
[TABLE]
[TABLE]
Then Uσ∈SA(A,B). By Lemma 20, there exists a minimal zoom-in
R=[R1,…,Rn] and there are terms
U∗ and V⪯Uσ such that Uσ[a:=P]→RV[a:=P] and (U∗⋆a)≤V and
(U∗⋆a)∈SNβπ and (U∗⋆a)[a:=P]∈/SNβπ or (a⋆U∗)≤V and (a⋆U∗)∈SNβπ
and (a⋆U∗)[a:=P]∈/SNβπ. Assume the former. By Lemma 21,
(U∗⋆a)∈SA(A,B). Then (U∗⋆a)=Sρ for some S∈A or (U∗⋆a)=Wτ
for some W∈B. Since a∈/Im(σ), the latter is impossible. The former case, however, yields S=(U′⋆a)
with U′ρ=U∗ for some U′∈A, which proves our assertion.
The next lemma states closure of strong normalizability under substitution.
Lemma 23**.**
If M,N∈SNβπ, then M[x:=N]∈SNβπ.
Proof 2.7**.**
We are going to prove a bit more general statement. Suppose
M,Ni∈SNβπ are proper, type(Ni)=A(1≤i≤k).
Let τi∈ΣA⊥ are such that τi∈SNβπ(1≤i≤k) and let ρ=[x1:=N1τ1,…,xk:=Nkτk]. Then we have Mρ∈SNβπ.
The proof is by induction on (cxty(A),ηβπ(M),cxty(M), Σiηβπ(Ni),Σicxty(Ni)) where, in Σiηβπ(Ni)
and Σicxty(Ni), we count each occurrence of the
substituted variable. For example if k=1 and x1 has n
occurrences, then Σiηβπ(Ni)=n⋅ηβπ(N1).
The only nontrivial case is when M=(M1⋆M2) and
Mρ∈/SNβπ. By the induction hypothesis Miρ∈SNβπ(i∈{1,2}). We select some of the typical cases.
(A)
M1ρ→βπλzM′* and M′[z:=M2]∈/SNβπ.*
M1* is
proper, then there is an M3 such that M1=λzM3 and
M3ρ→βπM′. In this case (M3[z:=M2])ρ∈/SNβπ
and since ηβπ(M3[z:=M2])<ηβπ(M), the induction
hypothesis gives the result.*
2. 2.
M1∈Var. Then M1=x∈dom(ρ),
ρ(x)=Njτj→βπλzM′ for some (1≤j≤k). Since
Nj is proper, there is an N′ such that Nj=λzN′,
N′τj→βπM′. Then N′τj[z:=M2ρ]∈/SNβπ and
type(z)=type(Nj)⊥=type(τj), so, by the previous
lemma, we have N′′≺N′ and τ′ such that (N′′τ′⋆M2ρ)∈/SNβπ. Now we have (N′′τ′⋆M2ρ)=(y⋆M2ρ)[y:=N′′τ′], type(N′′)=type(τ′)⊥=A
and ηβπcxty(N′′)<ηc(Nj), which contradicts the induction
hypothesis.
2. (B)
M1ρ→βπ⟨M′,M′′⟩* and either
(M′⋆M2)∈/SNβπ or (M′′⋆M2)∈/SNβπ. Suppose the former.*
M1,M2* are proper, then there are
M3,M4 such that M1=⟨M3,M4⟩
and M3ρ→βπM′, or M4ρ→βπM′′. Assume the former.
Then we have (M3⋆M2)ρ∈/SNβπ and
ηβπ((M3⋆M2))<ηβπ(M), a contradiction.*
2. 2.
M1=x∈dom(ρ), then ρ(x)=Njτj→βπ⟨M′,M′′⟩,
Nj is proper and Nj=⟨U,V⟩, Uτj→βπM′ or Vτj→βπM′′. Now (Uτj⋆M2)=(y⋆M2)[y:=Uτj]∈/SNβπ, but
cxty(type(U))<cxty(type(Nj)), a contradiction again.
3. 3.
M2∈Var. This is similar to the previous case. By the
same argument as in part (A)-2.-(a) of the proof of the previous
lemma, M1 and M2 cannot be both variables. This completes
the proof of the lemma.
Theorem 24**.**
The λβπ-calculus is strongly normalizing.
Proof 2.8**.**
It is enough to show that,
for every term, M, N∈SNβπ implies (M⋆N)∈SNβπ.
Supposing M,N∈SNβπ, Lemma 19 gives (M⋆x)∈SNβπ,
which yields, by the previous lemma, (M⋆N)=(M⋆x)[x:=N]∈SNβπ.
3. The λμμ~- and the \lmts-calculus
In this section, we introduce the λμμ~-calculus together with one of its extensions,
the \lmts-calculus, by which we establish a translation of the \ls-calculus and thus obtain
the strong normalization of the \lmts-calculus as a consequence.
3.1. The λμμ~-calculus
The λμμ~-calculus was introduced by Curien and Herbelin
([Her95] and [CH00]). We examine here the calculus defined
by Curien et al. [CH00], which is a simply typed one. The
λμμ~-calculus was invented for representing proofs in classical
Gentzen-style sequent calculus: under the Curry-Howard
correspondence a version of Gentzen-style sequent calculus is
obtained as a system of simple types for the λμμ~-calculus.
Moreover, the system presents a clear duality between
call-by-value and call-by-name evaluations.
{defi}
There are three kinds of terms, defined by the following grammar,
and there are two kinds of variables.
We assume that we use the same set of variables in the \lmts-calculus, too.
In the literature, different authors use different terminology. Here, we will call them either c-terms, or l-terms
or r-terms. Similarly, the variables will be called either
l-variables (and denoted as x,y,...) or r-variables (and denoted as a,b,...).
[TABLE]
As usual, we denote by Fv(u), the set of the free variables of the term u.
{defi}
The types are built from atomic formulas
(or, in other words, atomic types) with the connector
→.
We assume that the same set of type variables A is used in the \lmts-calculus, also.
The typing system is a sequent calculus based on
judgements of the following form.
p:(Γ⊳△)Γ⊳t:A∣△Γ∣e:A⊳△
where Γ (resp. △) is a set of declarations of the form x:A (resp. a:A), x (resp. a) denoting a l-variable (resp.
an r-variable) and A representing a type, such that x (resp.
a) occurs at most once in an expression of Γ (resp. △) of the
form x:A (resp. a:A). We say that Γ an l-context and △ is an r-context, respectively.
The typing rules are as follows
[TABLE]
[TABLE]
[TABLE]
{defi}
The cut-elimination procedure (on the logical side) corresponds to
the reduction rules (on the terms) given below.
[TABLE]
Let us take the union of the above rules.
Let ↪ stand for the compatible closure of this union and, as usual, ↪∗ denote the reflexive, symmetric and transitive
closure of ↪. The notions of reduction sequence, normal form and normalization are defined with respect to ↪.
We present below some theoretical properties of the λμμ~-calculus
(Herbelin [Her95], Curien and Herbelin [CH00], de Groote [Gro01], Polonovski [Pol04] and David and Nour [DN07]).
Proposition 25** (Type-preservation property).**
If Γ⊳t:A∣△ (resp. Γ∣e:A⊳△, resp.
p:(Γ⊳△)) and t↪∗t′ (resp. e↪∗e′, resp. p↪∗p′), then Γ⊳t′:A∣△ (resp. Γ∣e′:A⊳△, resp.
p′:(Γ⊳△)).
Proposition 26** (Subformula property).**
If Π is a derivation of Γ⊳t:A∣△ (resp. Γ∣e:A⊳△, resp.
p:(Γ⊢△)) and t (resp. e, resp. p) is in normal
form, then every type occurring in Π is a subformula of a type
occurring in Γ∪△, or a subformula of A (only for t and e).
Theorem 27** (Strong normalization property).**
If Γ⊳t:A∣△ (resp. Γ∣e:A⊳△, resp.
p:(Γ⊳△)), then t (resp. e, resp. p) is strongly normalizable,
i.e. every reduction sequence starting from t
(resp. e, resp. p) is finite.
The proof of Theorem 27 can be found in the thesis of Polonovski [Pol04],
as well as in the work of David and Nour [DN07], where an
arithmetical proof is presented.
3.2. The \lmts-calculus
Since we work in a sequent calculus, where negation is implicitly built in the rules,
the typing rules of the λμμ~-calculus do not handle negation.
However, for a full treatment of propositional logic we
found it more convenient to introduce rules concerning negation. Since c-terms, which could
have been candidates for objects of type ⊥, are distinctly
separated from terms, adding new term- and type-forming operators seems to be the easiest way to
define negation.
{defi}
(1)
The terms of the \lmts-calculus
are defined by the following grammar.
[TABLE]
As an abuse of terminology, in the sequel when speaking about the
syntactic elements of the \lmts-calculus, we may not distinguish
l-, r- and c-terms, we may speak about terms in general.
We denote by T the set of terms of the \lmts-calculus.
2. (2)
The complexity of a term of T is defined as follows.
cxty(x)=cxty(α)=0,
cxty(λxt)=cxty(t)=cxty(t)+1,
cxty(e)=cxty(e)+1,
cxty(μαp)=cxty(μ~xp)=cxty(p)+1,
cxty(⌊t,e⌋)=cxty((t.e))=cxty(t)+cxty(e).
{defi}
The type inference rules are the same as in the λμμ~-calculus with two
extra rules added for the types of the complemented terms.
Moreover, we introduce an equation between types (for all types A, (A⊥)⊥=A)
to ensure that our negation is involutive.
[TABLE]
We also define the complexity of types in the \lmts-calculus.
cxty(A)=0 for atomic types,
cxty(A→B)=cxty(A)+cxty(B)+1,
cxty(A⊥)=cxty(A).
That is, the complexity of a type A provides us with the number of arrows in A. The presence of negation makes it
necessary for us to introduce new rules handling negation.
{defi}
Besides the reduction rules already present in λμμ~, we endow the
calculus with some more new rules to handle the larger set of
terms. In what follows cl stands for the name: complementer
rule. We shall refer to the cl1,l- and cl1,r-rules by a
common notation as the cl1-rules.
[TABLE]
In the sequel, we continue to apply the notation ↪ and ↪∗ in relation with this new calculus.
Obviously, the statements analogous to Propositions 25 and 26 are still valid.
4. Relating the \ls-calculus to the \lmts-calculus
Rocheteau [Roc05] defined a translation between the λμμ~-calculus and the λμ-calculus, treating both a call-by-value
and a call-by-name aspect of λμμ~. In this subsection, we give a translation (in both directions) between the \ls-calculus
and the \lmts-calculus, which is a version of the λμμ~-calculus extended with negation. The translations are such that strong
normalization of one calculus follows from that of the other in both directions. We omit issues of evaluation strategies, however.
In the end of the section we give an exact description of the correspondence between the two translations. Preparatory to presenting
the translations, let us introduce some definitions and notation below. We assume that the two calculi have the same sets of variables
and atomic types. Moreover, as an abuse of notation, if α:A⊥ stems from the r-variable α:A in the
\lmts-calculus, then we suppose that in the \ls-calculus α denotes a variable with type A⊥.
4.1. A translation of the
\lmts-calculus into the
\ls-calculus
{defi}
(1)
Let us consider the \ls-calculus. For i∈{1,2}, we write πi(y)=λz(y⋆σi(z)).
Then, we can observe that y:A1∧A2⊢πi(y):Ai, for i∈{1,2}.
2. (2)
We define a translation .e:T⟶T as follows.
[TABLE]
[TABLE]
[TABLE]
3. (3)
The translation .e also applies to types.
•
Ae=A, where A is an atomic type,
•
(A⊥)e=(Ae)⊥,
•
(A→B)e=(Ae)⊥∨Be.
4. (4)
Let Γ, △ be l- and r-contexts, respectively. Then
Γe={x:Ae∣x:A∈Γ} and similarly for △. Furthermore, for any r-context △, let △⊥={α:A⊥∣α:A∈△}.
Lemma 28**.**
(1)
If Γ⊳t:A∣△, then Γe,(△e)⊥⊢te:Ae.
2. (2)
If Γ∣e:A⊳△, then Γe,(△e)⊥⊢ee:(Ae)⊥.
3. (3)
If p:(Γ⊳△), then Γe,(△e)⊥⊢pe:⊥.
Proof 4.1**.**
The above statements are proved simultaneously according to the
length of the \lmts-deduction. We remark that .e is defined in Definition 4.1 exactly
in the way to make the assertions of the lemma true.
Let us examine some of the more interesting cases.
(1)
Suppose
[TABLE]
Then we have, by the induction hypothesis and Notation 4.1,
[TABLE]
[TABLE]
[TABLE]
Thus we can conclude
[TABLE]
[TABLE]
From which, we obtain
[TABLE]
2. (2)
Assume now
[TABLE]
Then we have
[TABLE]
3. (3)
From
[TABLE]
we obtain
[TABLE]
Our next aim is to prove that \lmts can be simulated by the
\ls-calculus. To this end we introduce a new notion of equality
in the \ls-calculus.
{defi}
We define an equivalence relation ∼ on T, which is the smallest relation compatible with the term forming rules and containing ((M⋆N),(N⋆M)).
•
x∼x,
•
if M∼M′, then λxM∼λxM′ and σi(M)∼σi(M′) for i∈{1,2},
•
if M∼M′ and N∼N′, then ⟨M,N⟩∼⟨M′,N′⟩ and (M⋆N)∼(M′⋆N′)
and (M⋆N)∼(N′⋆M′).
We say that M and N are equal up to symmetry provided M∼N.
Lemma 29**.**
Let M,M′,N,N′∈T.
(1)
If M∼M′ and N∼N′, then M[x:=N]∼M′[x:=N′].
2. (2)
If M∼M′ and M′→N, then there is N′ for which M→N′ and N∼N′.
Proof 4.2**.**
1. By induction on cxty(M). 2. By 1.
Lemma 30**.**
Let u,t,e∈T. Then (u[x:=t])e=ue[x:=te] and
(u[a:=e])e=ue[a:=ee].
Proof 4.3**.**
By induction on cxty(u).
Now we can formulate our assertion about the simulation of the \lmts-calculus by the \ls-calculus.
Theorem 31**.**
Let v,w∈T.
(1)
If v↪rw and r∈{β,μ,μ~,sl,sr}, then ve→+we.
2. (2)
If v↪rw and r∈{cl1,l,cl1,r,cl2}, then ve∼we.
Proof 4.4**.**
(1)
Let us only treat the typical cases.
(a)
If v=⌊λxu,(t.e)⌋↪β⌊t,μ~x⌊u,e⌋⌋=w, then
ve=(⟨te,ee⟩⋆λy(λx(π2(y)⋆ue)⋆π1(y)))→β⊥(λx(π2(⟨te,ee⟩)⋆ue)⋆π1(⟨te,ee⟩))→∗(λx(ee⋆ue)⋆te)=we.
2. (b)
If v=⌊μap,e⌋↪μp[a:=e]=w, then, by Lemma
30,
ve=(ee⋆λape)→β⊥pe[a=ee]=we.
3. (c)
If v=μa⌊w,a⌋↪slw, a∈/w, then
ve=λa(a⋆we)→η⊥we.
2. (2)
(a)
If v=u↪cl1,lu=w, then ve=(u)e=ue=we.
2. (b)
If v=⌊v,u⌋↪cl2⌊u,v⌋=w, then
ve=⌊v,u⌋e=(ue⋆ve)∼we.
Corollary 32**.**
The \lmts-calculus is strongly normalizable.
Proof 4.5**.**
Let σ be a reduction sequence in the \lmts-calculus, assume σ is v0↪v1…↪vn and σ contains k≥0 number of β-, μ-, μ~-, sl- or sr-reductions. By Theorem 31, v0e, v1e,…, vne forms a sequence of \ls-terms, where either vie→vi+1e or vie∼vi+1e(0≤i≤n−1) and, for every β-, μ-, μ~-, sl- or sr-reduction, there corresponds a reduction step in the \ls-calculus. By Lemma 29, we obtain that ∼ can be postponed, that is, there are w0, w1,…, wk+1 in T such that w0=v0e, wk+1=vne and w0→…→wk∼wk+1. This means that we can establish a reduction sequence of length k starting from v0e in the \ls-calculus. Hence, by Theorem 24 and Corollary 16, an
infinite reduction sequence starting from v0 can contain only a finite number of β-, μ-, μ~-, sl- or sr-reductions. Thus there would exist an infinite reduction sequence in the \lmts-calculus consisting entirely of cl1,l-, cl1,r- and cl2-reductions, which is impossible.
4.2. A translation of the \ls-calculus into the \lmts-calculus
Now we are going to deal with the converse relation. That is we
will present a translation of the \ls-calculus into the \lmts-calculus which faithfully
reflects the typability relations of one calculus in the other
one. Then we prove that our translation is in fact a simulation of the
\ls-calculus in the \lmts-calculus.
{defi}
(1)
The translation .f:T⟶T is defined as follows.
[TABLE]
2. (2)
The translation .f applies to the types as follows.
•
αf=α,
•
(α⊥)f=α⊥,
•
(A∧B)f=(Af→(Bf)⊥)⊥,
•
(A∨B)f=(Af)⊥→Bf.
We remark that .f maps the terms of the \ls-calculus
with type ⊥ to c-terms of the \lmts-calculus, which have
no types. We also have, for all types A, (A⊥)f=(Af)⊥. Therefore the translation .f maps equal types to equal types.
Lemma 33**.**
(1)
If Γ⊢M:A and A=⊥, then Γf⊳Mf:Af.
2. (2)
If Γ⊢M:⊥, then Mf:(Γf⊳).
Proof 4.6**.**
The proof proceeds by a simultaneous induction on the length of the
derivation in the \ls-calculus. We can observe again that the notion of .f in Definition 4.2
is conceived in a way to make the statements of the lemma true.
Let us only examine some of the typical cases of the first assertion.
(1)
Suppose
[TABLE]
Then, applying the induction hypothesis,
[TABLE]
2. (2)
If
[TABLE]
then, we obtain
[TABLE]
3. (3)
From
[TABLE]
we obtain
[TABLE]
Now we turn to the proof of the simulation of the \ls-calculus in the \lmts-calculus.
Lemma 34**.**
Let M,N∈T. Then (M[x:=N])f=Mf[x:=Nf].
Proof 4.7**.**
By induction on cxty(M).
Theorem 35**.**
Let M,N∈T. If M→N, then Mf↪+Nf.
Proof 4.8**.**
Let us prove some of the more interesting cases.
(1)
If M=(λxP⋆Q)→βP[x:=Q]=N, then, applying Lemma 34,
We could have as well demonstrated that the \lmts-calculus is strongly normalizable by applying
the method presented in Section 3 as accomplished by Battyányi [Bat07]. The following result states that in this
case the strong normalizability of the \ls-calculus would arise as a direct consequence
of that of the \lmts-calculus.
Corollary 36**.**
If the \lmts-calculus is strongly normalizable, then the same is
true for the \ls-calculus as well.
In this subsection we examine the connection between the two transformations.
We prove that both compositions
.ef:T⟶T and .fe:T⟶T
are such that we can get back the original terms by performing some steps of reduction
on uef or on Mfe, respectively. That is, the following
theorems are valid. The case of .fe is the easier one.
First we describe the effect of .fe on the typing relations.
Theorem 38 states that, if M is an \ls-term, then M can be related to Mfe
by the reductions in the \ls-calculus. We note that we are not able to obtain u from uef
in such a way. We can find a term T instead such that uef↪∗T(u). The function T can intuitively
be considered as the description how \ls-connectives can be embedded into the \lmts-calculus.
It turns out that the \lmts-calculus translates the \ls-terms not so smoothly as it was the case with the
other direction.
{defi}
We define a function T assigning a \lmts-term to a
\lmts-term.
•
T(x)=x,
•
T(λxu)=μ~y⌊T(u)[x:=p1(y)],p2(y)⌋,
•
T(μαp)=μ~αT(p),
•
T(u)=T(u),
•
T(α)=α,
•
T((u.v))=⟨T(u),T(v)⟩,
•
T(μ~xp)=μ~xT(p),
•
T(h)=T(h),
•
T(⌊t,e⌋)=⌊T(t),T(e)⌋.
Theorem 40**.**
Let u∈T. We have uef↪∗T(u).
Proof 4.13**.**
By induction on cxty(u). We consider only some of the cases.
We remark that we cannot expect T(u) to be expressible with the help of T. Namely, we can show that, if
=\lmts denotes the reflexive, transitive closure of the compatible union of the reduction relations in
the \lmts-calculus, then none of the assertions below are valid.
(1)
There exists a a \lmts-term Φ such that, for every c-term c, T(c)=\lmtsΦ(c).
2. (2)
There exists a a \lmts-term Φ1 such that, for every l-term t, T(t)=\lmtsΦ1(t).
3. (3)
There exists a a \lmts-term Φ2 such that, for every r-term e, T(e)=\lmtsΦ2(e).
5. Conclusion
The paper is mainly devoted to an arithmetical proof of the strong normalization of the \ls-calculus introduced by
Berardi and Barbanera [BB96]. The proof is an adaptation of the work of David and Nour [DN05]. The novelty of our
paper is the application of the method of zoom-in sequences of redexes: we achieve the main theorem by identifying the
minimal non-strongly normalizing redexes of an infinite reduction sequence, which we call a zoom-in sequence of redexes.
The idea of zoom-in sequences was inspired by the notion of perpetual reduction strategies introduced by Raamsdonk et al. [RSSX99]. Following the proof of the strong normalization of the \ls-calculus, the λμμ~-calculus is introduced, which was defined
by Curien and Herbelin [CH00]. The same proof of strong normalization as we have presented for the \ls-calculus would also
work for the calculus of Curien and Herbelin as was shown by Battyányi [Bat07]. However, instead of adapting the proof method for the
λμμ~-calculus, we designed a translation of the \ls-calculus in the \lmts-calculus and vice versa,
where the \lmts-calculus is the λμμ~-calculus augmented with terms explicitly expressing negation and with
rules handling them. The translation allows us to assert strong normalization for the \lmts- and, hence, for the λμμ~-calculus.
On the technical side, we remark that there were two main difficulties that rendered the proof a little more involved. First,
we had to work with an alternating substitution defined inductively starting from two sets of terms. The reason was that we had
to prove a more general statement to locate the supposedly non strongly normalizing part of a term emerging as a result of a
substitution. Simple substitutions would not have been enough for our purpose. The second difficulty was that in order
to establish a key property of zoom-in sequences in Lemma 21 we had to move forward the Hypothesis “H” from the
main theorem, thus making the application of the hypothesis implicit in the sequel. We think that the elimination of
both problems would considerably enhance the paper’s intelligibility.
It seems promising to investigate whether the present method of verifying strong normalization can be applied to systems other
than simple typed logical calculi, for example, proof nets (Laurent [Lau13]). Another fields of interest could be intuitionistic
and classical typed systems with explicit substitutions (Rose [Ros96]). To handle these systems, the present proof must be
simplified, we have to pay attention in our proof, for example, that the substitutions are defined by two sets of terms of
different types. Finally, we remark that it is a natural requirement of a proof formalizable in first order arithmetic to
enable us to find an upper bound for the lengths of the reduction sequences. At its present form, our proof does not make
it possible, this raises another demand for the simplification of the results.
Acknowledgment
We wish to thank René David and the anonymous referees for helpful discussions and remarks.
Bibliography20
The reference list from the paper itself. Each links out to its DOI / PubMed record.
1[BB 96] F. Barbanera and S. Berardi. A symmetric lambda calculus for classical program extraction . Information and computation (125), pp. 103-117, 1996.
2[Bat 07] P. Battyányi. Normalization properties of symmetric logical calculi . Ph D thesis, University of Chambéry, 2007.
3[CH 00] P.-L. Curien and H. Herbelin. The duality of computation . ACM SIGPLAN Notices, 2000.
4[DN 05] R. David and K. Nour. Arithmetical proofs of strong normalization results for the symmetric λ μ μ ′ 𝜆 𝜇 superscript 𝜇 ′ \lambda\mu\mu^{\prime} -calculus . TLCA 2005, Lecture Notes in Computer Science (3461), pp. 162-178, Springer Verlag, Berlin, 2005.
5[DN 07] R. David and K. Nour. Arithmetical proofs of strong normalization results for symmetric lambda calculi . Fundamenta Informaticae (77), pp. 1001-1022, 2007.
6[Gri 90] T. Griffin. A formulae-as-type notion of control , POPL 1990, pp. 47-58, ACM Press, New York, 1990.
7[Lau 13] O. Laurent. An introduction to proof nets , Course Notes, Ecole normale supérieure de Lyon, 2013.
8[Mur 91] C. R. Murthy. An evaluation semantics for classical proofs . Proceedings of the sixth annual IEEE symposium, pp. 96-107, 1991.