Research article Special Issues

Normalization proofs for the un-typed μμ-calculus

  • A long-standing open problem of Parigot has been solved by David and Nour, namely, they gave a syntactical and arithmetical proof of the strong normalization of the untyped μμ'-reduction. In connection with this, we present in this paper a proof of the weak normalization of the μ and μ'-rules. The algorithm works by induction on the complexity of the term. Our algorithm does not necessarily give a unique normal form: sometimes we may get different normal forms depending on our choice. We also give a simpler proof of the strong normalization of the same reduction. Our proof is based on a notion of a norm defined on the terms.

    Citation: Péter Battyányi, Karim Nour. Normalization proofs for the un-typed μμ-calculus[J]. AIMS Mathematics, 2020, 5(4): 3702-3713. doi: 10.3934/math.2020239

    Related Papers:

    [1] Chunhong Li, Dandan Yang, Chuanzhi Bai . Some Opial type inequalities in (p, q)-calculus. AIMS Mathematics, 2020, 5(6): 5893-5902. doi: 10.3934/math.2020377
    [2] Xiaoli Zhang, Shahid Khan, Saqib Hussain, Huo Tang, Zahid Shareef . New subclass of q-starlike functions associated with generalized conic domain. AIMS Mathematics, 2020, 5(5): 4830-4848. doi: 10.3934/math.2020308
    [3] Özgür Boyacıoğlu Kalkan . On normal curves and their characterizations in Lorentzian n-space. AIMS Mathematics, 2020, 5(4): 3510-3524. doi: 10.3934/math.2020228
    [4] Muhammad Sabil Ur Rehman, Qazi Zahoor Ahmad, Hari M. Srivastava, Bilal Khan, Nazar Khan . Partial sums of generalized q-Mittag-Leffler functions. AIMS Mathematics, 2020, 5(1): 408-420. doi: 10.3934/math.2020028
    [5] Gerardo Sánchez Licea . Sufficiency for singular trajectories in the calculus of variations. AIMS Mathematics, 2020, 5(1): 111-139. doi: 10.3934/math.2020008
    [6] Zhongbin Zheng, Jinwu Fang, Wentao Cheng, Zhidong Guo, Xiaoling Zhou . Approximation properties of modified (p, q)-Szász-Mirakyan-Kantorovich operators. AIMS Mathematics, 2020, 5(5): 4959-4973. doi: 10.3934/math.2020317
    [7] Cemil Tunç, Alireza Khalili Golmankhaneh . On stability of a class of second alpha-order fractal differential equations. AIMS Mathematics, 2020, 5(3): 2126-2142. doi: 10.3934/math.2020141
    [8] Ahmet S. Cevik, Eylem G. Karpuz, Hamed H. Alsulami, Esra K. Cetinalp . A Gröbner-Shirshov basis over a special type of braid monoids. AIMS Mathematics, 2020, 5(5): 4357-4370. doi: 10.3934/math.2020278
    [9] Shuhai Li, Lina Ma, Huo Tang . Meromorphic harmonic univalent functions related with generalized (p, q)-post quantum calculus operators. AIMS Mathematics, 2021, 6(1): 223-234. doi: 10.3934/math.2021015
    [10] Waseem Ahmad Khan, Kottakkaran Sooppy Nisar, Dumitru Baleanu . A note on (p, q)-analogue type of Fubini numbers and polynomials. AIMS Mathematics, 2020, 5(3): 2743-2757. doi: 10.3934/math.2020177
  • A long-standing open problem of Parigot has been solved by David and Nour, namely, they gave a syntactical and arithmetical proof of the strong normalization of the untyped μμ'-reduction. In connection with this, we present in this paper a proof of the weak normalization of the μ and μ'-rules. The algorithm works by induction on the complexity of the term. Our algorithm does not necessarily give a unique normal form: sometimes we may get different normal forms depending on our choice. We also give a simpler proof of the strong normalization of the same reduction. Our proof is based on a notion of a norm defined on the terms.


    Natural deduction is not intrinsically symmetric but Parigot has introduced the so called "Free Deduction" [1], which is completely symmetric. The λμ-calculus derives from there. To get a confluent calculus he had, in his terminology, to fix the inputs on the left. To keep the symmetry, it is enough to keep the same terms and to add a new reduction rule (called the μ-reduction) which is the symmetric counterpart of the μ-reduction. The μ-reduction also corresponds to the elimination of a cut. We then get a symmetric calculus that is, together with the β-rule, called the symmetric λμ-calculus.

    The μ-reduction has been considered by Parigot for the following reasons. The λμ-calculus (with the β-reduction and the μ-reduction) has some good properties: confluence in the un-typed version, subject reduction and strong normalization in the typed calculus. But this system has, from a computer science point of view, a drawback: the unicity of the representation of data is lost. It is known that, in the λ-calculus, any term of type N (the usual type for the integers) is β-equivalent to a Church integer. This is no more true in the λμ-calculus: we can find normal terms of type N that are not Church integers. Parigot has remarked in [2] that by adding the μ-reduction and some simplification rules the unicity of the representation of data is recovered and subject reduction is preserved, at least for the simply typed system, even though the confluence is lost. In [3], Nour presents three different methods for finding the value of a classical integer in the λμ-calculus. It turns out that the introduction of the μ-rule greatly simplifies the problem: a λμ-normal term of integer type reduces to its value when we add the μ-rule to the calculus. We are concerned with a more relaxed form of the λμ-calculus proposed by de Groote [4]. His aim was twofold by this proposition: on the one hand, the more flexible μ-reduction considered as a call-by-value rule allows to retain the property of confluency [4,5] and enables the definition of an abstract machine for the λμ-calculus [4], and, on the other hand, Saurin [6] showed that the separation property could be restored, which has been lost in the Parigot-style λμ-calculus.

    We consider here the de Groote-style λμ-calculus with the only rules μ and μ. It was known that, for the un-typed calculus, the μ-reduction is strongly normalizing [5] but the strong normalization of the μμ-reduction in the un-typed setting was an open problem raised long ago by Parigot [2]. In his thesis, Polonovsky [7] has proved that the μ˜μ-calculus has the strong normalization property, which is the untyped part of a calculus corresponding to the classical Gentzen-style deduction via the Curry-Howard isomorphism and very similar in nature to the μμ-calculus. His proof was based on a modified Tait-Girard reasoning using reducibility candidates. As mentioned before, Py [5] has given a simple proof of the strong normalization of the μ-rule in itself, while David and Nour has presented in [8] an arithmetical proof of the termination of the μμ-reduction. Studying this reduction by itself is interesting since a μ (or μ)-reduction can be seen as a way "to put the arguments of the μ where they are used" and it is useful to know that this is terminating. They also gave an arithmetical proof of the strong normalization of the βμμ-reduction in the simply typed calculus.

    The proof in [8] consists of two main components: first the strong normalization of the untyped μμ-reduction is demonstrated and then a proof of the normalization of the βμμ-reduction is given along the same lines. In the proof in question, the normalization of the untyped μμ-calculus is obtained by a quite sophisticated argument with sets of alternating μ- and μ-substitutions. Then this argument is extended to the β-reduction by reasoning with types: the lengths of the types in the range of the substitution is also taken into account as one of the members of the multiset underlying the induction. The proof of the strong normalization of the μμ-reduction is almost as difficult as that of the βμμ-reduction: the case of the β-rule differs from that of the μμ-reduction only in considerations on the lengths of the types. In our paper, we present simpler proofs for the μμ-rule. First of all, we demonstrate that the reduction is weakly normalizing. We give an algorithm that necessarily leads to a normal form. We remark that the algorithm does not necessarily lead to a unique normal form: depending on our choice we may obtain different normal forms of the same term. Then we prove strong normalization: instead of tracing back to the substitution that could in principle cause the term to not be strongly normalizing, as was accomplished by David and Nour [8], we establish a norm for the μμ-terms that is decreasing and strict inequality holds for certain subterms of the reducts. This leads to a contradiction. Intuitively, our norm gives an upper estimation on the lengths of the reduction sequences consisting of μ or μ-redexes that are created when performing an uppermost μ or μ-redex. By the introduction of that norm, we can eliminate the appearance of alternating sets of substitutions defined by mutual induction in [8]. Our proofs are arithmetical, which means that we use combinatorial reasoning that can be formalized in first order Peano arithmetic.

    The paper is organized as follows: In the next section we give the necessary definitions, in Section 3 we demonstrate that the untyped μμ-reduction is weakly normalizing. We give an algorithm for obtaining a normal form of an arbitrary μμ-term. Then we turn to the proof of the strong normalization. Our proof considerably simplifies that of David and Nour [8] by finding a norm which estimates from above the lengths of the μμ-reduction sequences created by reducing the uppermost μ or μ-redexes. We conclude with some future work.

    In this section we present the part of the λμμ-calculus that interests us.

    Definition 2.1 (Terms).

    1. Let Vλ={x,y,z,} denote a set of λ-variables and Vμ={α,β,γ,} denote a set of μ-variables, respectively. The term formation rules are the following.

    T:=Vλ(T)T[Vμ]TμVμ.T

    2. The complexity of a term is defined inductively as follows:

    cxty(x)=1, cxty((M)N)=cxty(M)+cxty(N)+1 and cxty(μα.M)=cxty([α]M)=cxty(M)+1.

    3. For every term M, we define by induction on M the set of free μ-variables of M:

    Fv(x)=, Fv((M)N)=Fv(M)Fv((N), Fv([α]M)=Fv(M){α} and Fv(μα.M)=Fv(M){α}.

    4. In a term the μ operator binds the variables. We therefore consider the terms modulo equivalence under renaming of variables bound by μ.

    Remark 2.2. To better understand the intuition behind the formation of terms, we will present a typed version of this calculus, though we are concerned with the untyped calculus throughout the paper.

    The types are built from atomic types and the constant with the connectors ¬ and . In the definition below Γ denotes a (possibly empty) context, that is, a set of declarations of the form x:A (resp. α:¬A) for a λ-variable x (resp. a μ-variable α) and type A such that a λ-variable x (resp. a μ-variable α) occurs at most once in an expression x:A (resp. α:¬A) of Γ. The typing rules are as follows.

    Γ,x:Ax:AaxΓM:ABΓN:AΓ(M)N:Be
    Γ,α:¬AM:AΓ,α:¬A[α]M:iΓ,α:¬AM:Γ+μαM:Ae

    We say that the term M is typable with type A, if there is a set of declarations Γ such that ΓM:A holds.

    The typed version of μμ-calculus restricts the set of terms. For example we can not write a term of the form ([α]M)N.

    Definition 2.3 (Substitution).

    1. A simultaneous substitution is an expression of the form

    σ=[α1:=s1N1,,αk:=skNk]

    where 1ik, si{l,r}, αi is a μ-variable and Ni is a term.

    2. If σ=[α1:=s1N1,,αk:=skNk], α a μ-variable, N a term and s{l,r}, we denote by σ+α:=sN the simultaneous substitution

    [α1:=s1N1,,αk:=skNk,α:=sN].

    3. Let σ=[α1:=s1N1,,αk:=skNk] and M a term. We define by induction the term Mσ. We can assume that the variables of the terms Ni are not linked by μ in the term M.

    ● If M=x, then Mσ=x.

    ● If M=(M1)M2, then Mσ=(M1σ)M2σ.

    ● If M=μα.M, then Mσ=μα.Mσ.

    ● If M=[α]M and α{α1,,αk}, then Mσ=[α]Mσ.

    ● If M=[αi]M for 1ik and si=r, then Mσ=[αi](Mσ)Ni.

    ● If M=[αi]M for 1ik and si=l, then Mσ=[αi](Ni)Mσ.

    Definition 2.4 (Redex).

    1. A μ-redex is a term of the form (μα.M)N and we call μα.M[α:=rN] its contractum. Intuitively, M[α:=rN] is obtained from M by replacing every subterm in M of the form [α]U by [α](U)N.

    2. A μ-redex is a term of the form (N)μα.M and we call μα.M[α:=lN] its contractum. Intuitively, M[α:=lN] is obtained from M by replacing every subterm in M of the form [α]U by [α](N)U.

    3. If a term contains no μ-redex (resp. μ-redex), then it is said to be μ-normal (resp. μ-normal). A term is said to be in normal form (or simply normal) if it is μ and μ-normal. We denote by NF (resp. NFμ or NFμ) the set of normal terms (resp. of μ-normal terms or μ-normal terms).

    Remark 2.5.

    1. The intuitive meaning of the reduction of (μα.M)N to μα.M[α:=rN] is that the argument N of the function μα.M is passed as an argument to all the functions in M named by the symbol [α].

    2. The intuitive meaning of the reduction of (N)μα.M to μα.M[α:=lN] is that the function N having μα.M as argument becomes the functional part of the application by every subterm of M named by the symbol [α].

    Definition 2.6 (Reduction).

    1. Let M and M be two terms.

    We write MμM, if M is obtained from M by replacing a μ-redex of M by its contractum.

    We write MμM, if M is obtained from M by replacing a μ-redex of M by its contractum.

    2. Let stand for one of the relations μ,μ. We denote by (resp. μ or μ) the reflexive and transitive closure of (resp. μ or μ). For example, MM if MM1M2Mk=M. Finally, We denote by + the transitive closure of , i.e. M+M if there is k>0 such that MM1M2Mk=M.

    Remark 2.7.

    1. We can show that the reduction μ (resp. μ) is confluent. On the other hand, the reduction is not. Indeed, if x,y are two different λ-variables and M=(μα.x)μβ.y, then Mμμα.x and Mμμβ.y.

    2. We will also be able to verify that the reduction preserves types, i.e. if ΓM:A and MN, then ΓN:A.

    3. Note that reducing a redex in a term can:

    ● modify the other redexes (perform substitutions in some of them and duplicate others),

    ● create new redexes.

    We will immediately give some examples of the creation of redexes.

    ((μα.M)N)Oμ(μα.M[α:=rN])O,(O)(μα.M)Nμ(O)μα.M[α:=rN],(O)(N)μα.Mμ(O)μα.M[α:=lN],((N)μα.M)Oμ(μα.M[α:=lN])O.

    Definition 2.8 (Normalization).

    1. A λ-term M is said to be weakly normalizable (resp. μ-weakly normalizable or μ-weakly normalizable) if there exists MNF (resp. MNFμ or MNFμ) such that MM (resp MμM or MμM). We denote by WN (resp WNμ or WNμ) the set of weakly normalizable (resp. μ-weakly normalizable or μ-weakly normalizable) terms.

    2. A term M is said to be strongly normalizable, if there exists no infinite reduction paths starting from M. That is, any possible sequence of reductions eventually leads to a normal term. We denote by SN the set of strongly normalizable terms.

    In the sequel, we study the μμ-calculus with respect to the properties "weak normalization" and "strong normalization".

    Although we know that the μμ-calculus has the strong normalization property, we will present a very simple demonstration of the weak normalization of this calculus. The goal is to present a simple algorithm for finding one of the normal forms of a given term.

    The following result means that a simultaneous substitution in a μ or μ-normal term cannot create a μ abstraction.

    Lemma 3.1. Let M be a term and σ a simultaneous substitution.

    1. If MNFμ and Mσμμα.M for some term M, then M=μα.M for some term M.

    2. If MNFμ and Mσμμα.M for some term M, then M=μα.M for some term M.

    Proof. We only prove the first item by induction on cxty(M).

    ● It is clear that Mx and M[α]M1.

    ● If M=(M1)M2, then Mσ=(M1σ)M2σ and, since MNFμ we have M1μα.M1, therefore, by IH, M1σμμα.M1, hence, Mσμμα.M. A contradiction.

    We deduce that M=μα.M for some term M.

    The following result is fundamental. In particular, it allows μ-normalizing a substitution when the terms in the image are normal and also characterizes the μ-redexes of the μ-normal form obtained. We will see later that the iteration of the algorithm resulting from this lemma constitutes a normalization algorithm.

    Lemma 3.2. Let M,NNF, σ=[α1:=rN,,αk:=rN] and

    σ=[β1:=lN,,βk:=lN].

    1. Then MNFμ such that MσμM and the μ-redexes of M are of the form [β](V)N if N=μγ.U for some term U. In particular MσWNμ and MσWN if Nμγ.U.

    2. Then MNFμ such that MσμM and the μ-redexes of M are of the form [β](N)U if N=μγ.V for some term V. In particular MσWNμ and MσWN if Nμγ.V.

    Proof. We only prove the first item by induction on cxty(M).

    ● The result is obvious if M=x.

    ● If M=μα.M or M=[β]M where βαi and 1ik, it is enough to apply the IH on M.

    ● If M=[αi]M where 1ik, then Mσ=[αi](Mσ)N. By IH, MNFμ such that MσμM. We distinguish two cases.

    - If Mμα.W, then Mσμ(M)NNFμ.

    - If M=μα.W, then, by Lemma 3.1, M=μα.W and

    Mσ=[αi](μα.Wσ)Nμ[αi]μα.W[σ+α:=rN]. By IH, we have W[σ+α:=rN]WNμ, then MσWNμ.

    The requirement for the μ-redex can be checked in both of the above cases.

    ● If M=(M1)M2, then Mσ=(M1σ)M2σ and, by IH, M1,M2NFμ such that M1σμM1, M2σμM2, thus Mμ(M1)M2. Since MNF, by Lemma 3.1, M1 and M2 do not begin with μ, hence MWNμ. We can easily check the property for the μ-redexes.

    The goal of Lemma 3.4 is to finish the normalization of a term after the application of Lemma 3.2.

    Definition 3.3 (μ- and μ-good)

    1. A term M is said to be μ-good if MNFμ and its μ-redexes are of the form [β](V)μγ.U.

    2. A term M is said to be μ-good if MNFμ and its μ-redexes are of the form [β](μγ.V)U.

    Lemma 3.4.

    1. If M is μ-good, then MNF such that MμM and M=μγ.V for some term V iff M=μγ.U for some term U; in particular MWN.

    2. If M is μ-good, , then MNF such that MμM and M=μγ.V for some term V iff M=μγ.U for some term U; in particular MWN.

    Proof. We only prove the first point by induction on cxty(M).

    ● The result is obvious if M=x.

    ● If M=μα.N or M=[α]N where N is not a μ-redex, then N is μ-good and it is enough to apply the IH on N.

    ● If M=[α](V)μγ.U, then U and V are μ-goods and, by IH, U,VNF such that UμU, VμV and Vμδ.W (since MNFμ), thus Mμ[α]μγ.U[γ:=lV], therefore, by point 2 of Lemma 3.2, U[γ:=lV]WN and MWN.

    ● If M=(M1)M2, then M1 and M2 are μ-goods and, by IH, M1,M2NF such that M1μM1, M2μM2, M1μδ.W1 (since MNFμ) and M2μδ.W2 (since M is good), thus Mμ(M1)M2WN and MWN.

    We can now prove our weak normalization result.

    Theorem 3.5. The μμ-calculus weakly normalizes, i.e. for every term M, we have MWN.

    Proof. Let M be a term. We prove by induction on cxty(M) that MWN.

    ● The result is obvious if M=x.

    ● If M=μα.M or M=[α]M, it is enough to apply the IH on M.

    ● If M=(M1)M2, then, by IH, M1,M2NF such that M1M1 and M2M2. We distinguish four cases.

    - If M1μα.M1 and M2μβ.M2, then M(M1)M2NF.

    - If M1=μα.M1 and M2μβ.M2, then

    M(μα.M1)M2μμα.M1[α:=rM2]. By Lemma 3.2,

    M1[α:=rM2]WN, then MWN.

    - If M1μα.M1 and M2=μβ.M2, then

    M(M1)μβ.M2μμβ.M2[β:=lM1]. By Lemma 3.2,

    M2[β:=lM1]WN, then MWN.

    - If M1=μα.M1 and M2=μβ.M2, then we can conclude in two different ways.

    * We have M(μα.M1)μβ.M2μμα.M1[α:=rμβ.M2]. By Lemma 3.2, TNFμ such that M1[α:=rμβ.M2]μT and the μ-redexes of T are of the form [γ](V)μβ.M2, then, T is μ-good and, by Lemma 3.4, TWN, thus MWN.

    * We have M(μα.M1)μβ.M2μμβ.M2[β:=lμα.M1]. By Lemma 3.2, TNFμ such that M2[β:=lμα.M1]μT and the μ-redexes of T are of the form [γ](μα.M1)U, then, T is μ-good and, by Lemma 3.4, TWN, thus MWN.

    Remark 3.6. We summarize what we did to present a normalization algorithm.

    1. Lemma 3.2 gives an algorithm to μ-normalize (resp. μ-normalize) terms of the form Mσ where MNF, σ=[α1:=rN,,αk:=rN] (resp. σ=[α1:=lN,,αk:=lN]) and NNF.

    2. Lemma 3.4 gives an algorithm (using the first one) to normalize μ-normal (resp. μ-normal) terms having only μ-redexes (resp. μ-redexes) of the form [β](V)μγ.U (resp. [β](μγ.V)U).

    3. Theorem 3.5 gives an algorithm to normalize a term M (by induction on cxty(M)). In the case where M is an application, the first two algorithms are successively used. Case 3 in the proof of Theorem 3.5 leaves us with a nondeterministic choice concerning the process of finding a normal form of M. This means that instead of one uniquely determined normal form we end up with one of the possible normal forms of M.

    In this section, we improve the result of the previous section by showing that every term is strongly normalizable.

    First, we begin by stating classical and simple properties that will be used in our proofs. We will not detail the proofs of the first two lemmas. The reader is referred to [2] and [5] for the proofs of these results.

    Lemma 4.1. Let M,N be terms, s{r,l} and σ a simultaneous substitution. Then M[α:=sN]σ=Mσ[α:=sNσ].

    Proof. By induction on cxty(M).

    Lemma 4.2. Let M,N,M,N be terms such that MM and NN, and s{r,l}. Then M[α:=sN]M[α:=sN], M[α:=sN]M[α:=sN] and M[α:=sN]M[α:=sN].

    Proof. We prove the first two properties for one step reductions by induction on cxty(M). The third one comes directly from the first two properties.

    Lemmas 4.3, 4.4, 4.6 and 4.9 below can also be found in [8]. They help us explain why a term might not be in SN. In order to make our presentation self-contained, we recall the proofs of the lemmas from [8], perhaps, in a bit more detailed way. Lemma 4.3 says that an application reduces to a μ-abstraction only if either its left or right member reduces to a μ-abstraction.

    Lemma 4.3. Let (M)Nμα.P. Then either Mμα.M1 and M1[α:=rN]P or Nμα.N1 and N1[α:=lM]P.

    Proof. By induction on the length of the reduction (M)Nμα.P.

    If (M)NOμα.P, we distinguish several cases.

    ● If O=(M)N where MM or O=(M)N where NN, then we simply apply IH on O, then, by Lemma 4.2, we obtain the result.

    ● If M=μα.M1 and O=μα.M1[α:=rN], then M1[α:=rN]P.

    ● If N=μα.N1 and O=μα.N1[α:=lM], then N1[α:=rM]P.

    The next lemma generalizes Lemma 3.1.

    Lemma 4.4. Let M be a term and σ a simultaneous substitution. If Mσμα.P for some P, then there exists a Q such that Mμα.Q and QσP.

    Proof. By induction on cxty(M). The only possibilities are M=μα.M1 and M=(M1)M2. The former case is trivial. In the latter, we have (M1σ)M2σμα.P. By Lemma 4.3, either M1σμα.N1, N1[α:=rM2σ]P or M2σμα.N2, N2[α:=lM1σ]P. Suppose the former holds. By IH, there is an R such that M1μα.R and RσN1. Then, by Lemmas 4.1 and 4.2, Mμα.R[α:=rM2] and R[α:=rM2]σ=Rσ[α:=rM2σ]N1[α:=rM2]σP. Our assertion holds with Q=R[α:=rM2].

    Definition 4.5 (Function η). If a term M is strongly normalizable, then, since the reduction tree of M is locally finite by König Lemma, we can denote the length of the longest reduction sequence of M by η(M).

    The previous definition helps us to demonstrate properties of strongly normalizable terms. Indeed if MM, then η(M)>η(M).

    Lemma 4.6. Let M, N be terms such that M, NSN and (M)NSN. Then either Mμα.M such that μα.M[α=rN]SN or Nμβ.N such that μβ.N[β=lM]SN.

    Proof. By induction on η(M)+η(N). If MM and (M)NSN, then η(M)<η(M) and the IH applies. The situation is similar when NN and (M)NSN. If M=μα.M1 and μα.M1[α:=rN]SN, or N=μβ.N1 and μβ.N1[β:=lM]SN, then the result is obvious.

    Definition 4.7 (Relation and ).

    1. We use the notation NM if N is a subterm of M, and the notation NM if N is a subterm of M other than M.

    2. Let M, N be terms. The notation NM will signify the fact that there is an M such that MMN holds and either M+M or NM is valid. The symbol will be the reflexive closure of . The relations and are transitive. Moreover, NM iff there is an M such that MM and NM.

    Remark 4.8. The above definition should be made precise by talking about subterm occurrences addressed by a finite list of index symbols. To facilitate understanding, we ignore the exact treatment of subterm occurrences together with the problem of variable collisions induced by the substitutions. Obviously, a nameless representation of terms would eliminate all these difficulties.

    Lemma 4.9. Let M,NSN such that M[α:=rN]SN (resp. M[α:=lN]SN) for some α. Then there is an [α]M1M for which M1[α:=rN]SN (resp. M1[α:=lN]SN) and (M1[α:=rN])NSN (resp. (M1[α:=lN])N)SN).

    Proof. The proof proceeds by induction on cxty(M),η(M). Let us only treat the case of M[α:=rN]SN.

    ● If M=μβ.M1, the result is trivial.

    ● If M=[β]M1, then we have two cases to distinguish.

    - If β=α, then if M1[α:=rN]SN, the IH applies. Otherwise our assertion follows with the M1 under discussion.

    - If βα, then the IH gives the result.

    ● If M=(M1)M2, then, by Lemma 4.6, either M1[α:=rN]μβ.M1 and μβ.M1[β:=rM2[α:=rN]]SN or M2[α:=rN]μγ.M2 and μγ.M2[γ:=lM1[α:=rN]] SN. Suppose the former case holds, the latter being similar. Then, by Lemma 4.4, there is an M3 such that M1μβ.M3 and M3[α:=rN]M1. By this we have, by Lemmas 4.1 and 4.2, μβ.M3[β:=rM2][α:=rN]=μβ.M3[α:=rN][β:=rM2[α:=rN]] μβ.M1[β:=rM2[α:=rN]]SN. But then, since η(μβ.M3[β:=rM2])<η(M), we can apply the IH.

    Our new proof of the strong normalization of the μμ-calculus is based on the introduction of a norm for the terms which does not increase through a reduction.

    Definition 4.10 (Norm for terms). Let M be a term. Let us define a norm for M, denoted by |M|, by induction on cxty(M) :

    |M|={0ifM=x,|M1|+|M2|ifM=(M1)M2,max{|M2||[α]M2M1}+1ifM=μα.M1andαFv(M1),0ifM=μα.M1andαFv(M1),0ifM=[α]M1.

    For every M the norm of M is a natural number. Intuitively, by this norm we can find an upper bound for the lengths of the reduction sequences consisting of the redexes created from top to bottom when performing an uppermost μ- or μ-redex.

    The main idea of our proof is to demonstrate that the norm is non-increasing with respect to μ and μ-redexes, and, furthermore, we show that it strictly decreases on certain subterms of the contractum. Namely, assuming the uppermost redex is (μα.M)N, then the subterms U[α:=rN], where [α]UM, have smaller norms than (μα.M)N. Similarly for (N)μα.M. This will lead to a contradiction, since if we assume that we have an application (M)N of minimal norm which is not in SN and we may assume that M=μα.M. Then, by Lemma 4.9, we can find a subterm of the contractum of (M)N which is not in SN and is such that its norm is strictly less than that of (M)N.

    The following lemma is very simple but worth noting.

    Lemma 4.11. Let [α]M1M[β:=sN] and s{r,l}.

    1. If αβ, then M1=M2[β:=sN] where [α]M2M.

    2. If α=β, then M1=(M2[β:=sN])N if s=r and M1=(N)M2[β:=sN] if s=l where [α]M2M.

    Proof. By induction on cxty(M).

    We now show how the norm we defined behaves with the reductions.

    Lemma 4.12. Let M,N be terms and s{r,l}. Then |M[α:=sN]|=|M|.

    Proof. We accomplish the proof for s=r. The proof goes by induction on cxty(M).

    The only interesting case is M=μβ.M1.

    ● If βFv(M1), then, by Lemma 4.11 and applying the IH,

    |μβ.M1[α:=rN]|=max{|M1|/[β]M1M1[α:=rN]}+1=max{|M2[α:=rN]|/[β]M2M1}+1=|μβ.M1|.

    ● In case of βFv(M1), the equation |μβ.M1[α:=rN]|=|μβ.M1|=0 is valid.

    The next lemma implies that, if we have a redex (μα.M)N, then, for every [α]M1M, the norm of ([α]M1)[α:=rN] will be strictly less than that of (μα.M)N. The situation is similar for the topmost μ-redex.

    Lemma 4.13. Let M,M,N be terms and s{r,l}. If [α]MM, then |μα.M|>|M[α:=sN]|.

    Proof. By Lemma 4.12, we have |μα.M|=max{|P|/[α]PM}+1>|M|=|M[α:=sN]|.

    The following lemma states that the norm of the contractum is not greater than that of the redex.

    Lemma 4.14. Let M,N be terms. Then |(μα.M)N||μα.M[α:=rN]| and |(M)μα.N| |μα.N[α:=lM]|.

    Proof. We deal with the case of the μ-reduction only.

    ● Let us suppose first αFv(M). By Lemmas 4.11 and 4.12,

    |μα.M[α:=rN]|=max{|M1|/[α]M1M[α:=rN]}+1=max{|(M2[α:=rN])N|/[α]M2M}+1=max{|M2|/[α]M2M}+|N|+1=|μα.M|+|N|=|(μα.M)N|.

    ● If αFv(M), then |(μα.M)N|=|μα.M|+|N|=|N||μαM[α:=rN]|=0.

    As a consequence, we can assert that the norm is not increasing regarding the reduction sequences.

    Lemma 4.15. Let MN. Then |M||N|.

    Proof. It is enough to show that MN implies |M||N|. The proof goes by induction on cxty(M). The only interesting case is M=(M1)M2.

    ● If M1M1 or M2M2, it's obvious.

    ● If M1=μα.M3, N=μα.M3[α:=rM2], or M2=μβ.M3, N=μβ.M3[α:=lM1], applying Lemma 4.14, we obtain the result.

    We can now prove the strong normalization result.

    Theorem 4.16. The μμ-calculus has the strong normalization property, i.e. for every term M, we have MSN.

    Proof. It is enough to prove that, for arbitrary M,NSN, (M)NSN as well. Let M,NSN such that (M)NSN, with the property that |(M)N|,η(M)+η(N) is minimal. Then, by Lemma 4.9, either Mμα.M and μα.M[α=rN]SN or Nμβ.N and μβ.N[β=lM]SN. Suppose the former is valid. On account of Lemma 4.15, M+μαM contradicts the minimality of (M)N, so we may assume M=μαM. In accordance with Lemma 4.9, there exists an [α]M1M such that M1[α:=rN]SN and (M1[α:=rN])NSN. By Lemma 4.13, this contradicts the minimality of (M)N again.

    We have presented in this paper a rather simple algorithm for normalizing a term. We have also found a very simple proof of the strong normalization of the μμ-calculus. We know that if we add to our calculus the simplification rules ρ and θ, we lose the strong normalization property [9]. It is therefore interesting to show that this calculus is weakly normalizing and to look for algorithms that terminate on every term. As future work, it also seems to be promising to study the weak and the strong normalization properties of the λμμ-calculus (with the reduction β) in a typed frame.

    The authors declare no conflict of interest in this paper.



    [1] M. Parigot, Free Deduction: An Analysis of "Computations" in Classical Logic, In: A. Voronkov, editors. Logic Programming Lecture Notes in Artificial Intelligence 592, Berlin, Heidelberg: Springer-Verlag, 1992, 361-380.
    [2] M. Parigot, λμ-calculus: An algorithmic interpretation of classical natural deduction, In: A. Voronkov, editors. Logic Programming and Automated Reasoning, LPAR 1992, Lecture Notes in Artificial Intelligence 624, Berlin, Heidelberg: Springer-Verlag, 1992, 190-201.
    [3] K. Nour, La valeur d'un entier classique en λμ-calcul, Archive Math. Logic, 36 (1997), 461-473. doi: 10.1007/s001530050076
    [4] P. de Groote, An environment machine for the λμ-calculus, Math. Struct. Comput. Sci., 8 (1998), 637-669. doi: 10.1017/S0960129598002667
    [5] W. Py, Confluence en λμ-calcul [dissertation], University of Chambéry, 1998, 117.
    [6] A. Saurin, Böhm theorem and Böhm trees for the Λμ-calculus, Theor. Comput. Sci., 435 (2012), 106-138. doi: 10.1016/j.tcs.2012.02.027
    [7] E. Polonovsky, Substitutions explicites, logique et normalisation [dissertation], Paris 7, 2004, 257.
    [8] R. David, K. Nour, Arithmetical proofs of strong normalization results for symmetric lambda calculi, Fundamenta Informaticae, 77 (2007), 489-510.
    [9] P. Battyányi, Normalization properties of symmetric logical calculi [dissertation], University of Chambéry, 2007, 118.
  • Reader Comments
  • © 2020 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0)
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Metrics

Article views(4036) PDF downloads(214) Cited by(0)

Other Articles By Authors

/

DownLoad:  Full-Size Img  PowerPoint
Return
Return

Catalog