The Lambek calculus with iteration: two variants
Stepan Kuznetsov

TL;DR
This paper extends the Lambek calculus with a unary iteration operator, presenting two variants of calculi, analyzing their equivalence, strength, and complexity, and relating them to Kleene algebras and action logic.
Contribution
It introduces two new variants of Lambek calculus with iteration, compares their expressive power, and establishes their computational complexity and relation to Kleene algebras.
Findings
The first calculus variant is strictly stronger than the second.
The first system is $ ext{Pi}_1^0$-hard and not recursively enumerable.
The two variants are equivalent in certain infinite derivation frameworks.
Abstract
Formulae of the Lambek calculus are constructed using three binary connectives, multiplication and two divisions. We extend it using a unary connective, positive Kleene iteration. For this new operation, following its natural interpretation, we present two lines of calculi. The first one is a fragment of infinitary action logic and includes an omega-rule for introducing iteration to the antecedent. We also consider a version with infinite (but finitely branching) derivations and prove equivalence of these two versions. In Kleene algebras, this line of calculi corresponds to the *-continuous case. For the second line, we restrict our infinite derivations to cyclic (regular) ones. We show that this system is equivalent to a variant of action logic that corresponds to general residuated Kleene algebras, not necessarily *-continuous. Finally, we show that, in contrast with the case without…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Advanced Algebra and Logic · semigroups and automata theory
11institutetext: Steklov Mathematical Institute of RAS, Moscow, Russia
11email: [email protected]
The Lambek Calculus with Iteration: Two Variants
Stepan Kuznetsov This work is supported by the Russian Science Foundation under grant 16-11-10252. Accepted for presentation at WoLLIC 2017 and publication in Springer LNCS.
Abstract
Formulae of the Lambek calculus are constructed using three binary connectives, multiplication and two divisions. We extend it using a unary connective, positive Kleene iteration. For this new operation, following its natural interpretation, we present two lines of calculi. The first one is a fragment of infinitary action logic and includes an omega-rule for introducing iteration to the antecedent. We also consider a version with infinite (but finitely branching) derivations and prove equivalence of these two versions. In Kleene algebras, this line of calculi corresponds to the *-continuous case. For the second line, we restrict our infinite derivations to cyclic (regular) ones. We show that this system is equivalent to a variant of action logic that corresponds to general residuated Kleene algebras, not necessarily *-continuous. Finally, we show that, in contrast with the case without division operations (considered by Kozen), the first system is strictly stronger than the second one. To prove this, we use a complexity argument. Namely, we show, using methods of Buszkowski and Palka, that the first system is -hard, and therefore is not recursively enumerable and cannot be described by a calculus with finite derivations.
Keywords:
Lambek calculus, positive iteration, infinitary action logic, cyclic proofs
1 The Infinitary Lambek Calculus with Positive Iteration
The Lambek calculus [12] deals with formulae that are built using three connectives, (product), , and (left and right divisions). These connectives enjoy a natural interpretation as operations on formal languages (completeness shown by Pentus [17]). There are, however, also other interesting and well-respected operations on formal languages, and it is quite natural to try to extend by adding these operations as new connectives.
One of the most common of such operations is iteration, or Kleene star: for a language over an alphabet its iteration is defined as follows:
[TABLE]
As one can notice, always includes the empty word, . The original Lambek calculus, however, obeys so-called Lambek’s non-emptiness restriction, that is, the empty sequence is never allowed in (this restriction is motivated by linguistic applications; from the algebraic point of view, this means that we’re considering residuated semigroups instead of residuated monoids). Therefore, throughout this paper we consider a modified version of Kleene star, called positive iteration:
[TABLE]
In this paper, we introduce several extensions of the Lambek calculus with this new connective, establish connections between them, and prove some complexity bounds.
Formulae of the Lambek calculus with positive iteration, usually called types, are built from a countable set of variables (primitive types) using three binary connectives, , , and , and one unary connective, + (written in the postfix form, ). The set of all types is denoted by . Types are denoted by capital Latin letters; capital Greek letters stand for finite linearly ordered sequences of types.
Derivable objects are sequents of the form , where and is a non-empty finite sequence of types.
Now let’s define the first calculus for positive iteration, . The axioms and the rules for , , and are the same as in the original Lambek calculus :
[TABLE]
[TABLE]
[TABLE]
[TABLE]
For +, this calculus includes a countable set of right rules:
[TABLE]
and one left rule
[TABLE]
This rule is an -rule, or an infinitary rule. Application of such a rule makes the proof tree infinite. This is somewhat unpleasant from the computational point of view, but, as we show later on, it appears to be inevitable.
The rules and come from the rules for iteration in infinitary action logic, [4]. Our system differs from in the following two points.
enriches the “pure” (multiplicative) Lambek calculus , while is based on the full Lambek calculus , including also additive conjunction () and disjunction (). This means that complexity lower bounds for are stronger results than lower bounds for . 2. 2.
In contrast to , in we have Lambek’s non-emptiness restriction, and therefore use positive iteration instead of Kleene star.
The cut rule of the form
[TABLE]
is admissible in . This fact is proved by the same transfinitary cut-elimination procedure, as presented by Palka [14] for (for a restricted fragment of cut elimination was independently shown by Ryzhkova [21]).
The admissibility of yields the fact that the rules , , , and, most interestingly, are invertible.
The Lambek calculus , defined by axioms and rules , , , , , and , is a conservative fragment of . Cut elimination for was known already by Lambek [12].
The calculus defined in this section is sound with respect to the intended interpretation on formal languages, where + is interpreted as positive iteration:
[TABLE]
and the Lambek connectives are interpreted in the same way as for :
[TABLE]
The arrow, , is interpreted as the subset relation.
Completeness with respect to this interpretation is an open problem.
2 -completeness of
In this section we prove that derivability in is - (co-r.e.-) hard. Basically, we follow the same strategy as Buszkowski [4], namely, encoding the totality problem for context-free grammars. Our construction, however, is more involved: instead of embedding context-free grammars into the Lambek environment as Ajdukiewicz – Bar-Hillel basic categorial grammars, we use another translation by Safiullin [22] which yields a categorial grammar that assigns exactly one type to each letter of the alphabet. This trick allows us to avoid using additive operations, and prove the complexity lower bound for the extension of the original, purely multiplicative Lambek calculus . For the purely multiplicative fragment of , the lower complexity bound was left as an open problem by Buszkowski in [4]. Here we solve not that problem exactly, but its version with Lambek’s restriction.
Throughout this paper, all languages do not contain the empty word. Accordingly, all context-free grammars do not contain -rules. By we denote the set of all context-free grammars such that the language generated by is the set of all non-empty words, . The problem is -hard. Indeed, as shown in [4], total, the totality problem for context-free grammars possibly using the empty word, reduces to . In its turn, total itself is known to be undecidable, and standard proofs of this fact actually yield more: they reduce a well-known - (r.e.-) complete problems, e.g., Post’s correspondence problem [7, Theorem 9.22] or halting problem for Turing machines [5, Example 5.43], to the complement of total. This makes total and themselves -complete.
We can further restrict ourselves to context-free grammars over a two-letter alphabet, . Denote the -free totality problem over by . The original problem is reduced to in the following way. Let be a context-free grammar that defines a language over . The homomorphism is a one-to-one correspondence between and \{u\in\{b,c\}^{+}\mid\mbox{ucb^{n+1} as a subword}\}. Now we can computably transform into a new context-free grammar for the language h(\mathcal{L}(\mathcal{G}))\cup\{u\in\{b,c\}^{+}\mid\mbox{ubb^{n+1} as a subword}\} over . Clearly, . This establishes the necessary reduction and -hardness of .
Finally, we consider the alternation problem for context-free grammars over , denoted by . A context-free grammar belongs to if the language it generates includes the language (as a subset). Clearly, is also -hard by reduction of , since .
Now we need an encoding of context-free grammars in the Lambek calculus. A Lambek categorial grammar with unique type assignment over the alphabet consists of types (without the + connective) ( is called the target type), and a word belongs to the language generated by this grammar iff the sequent is derivable in . These grammars have the same expressive power as context-free grammars (without -rules).
Theorem 2.1 (A. Safiullin, 2007)
For every context-free language there exists, and can be effectively constructed from the original context-free grammar, a Lambek categorial grammar with unique type assignment. [22]
The inverse translation, from Lambek categorial grammars to context-free grammars, is also available due to Pentus [15] (in this paper we don’t need it). In order to make this paper logically self-contained, we revisit Theorem 2.1 and give its full proof in the Appendix (in Safiullin’s paper [22], the proof is only briefly sketched).
Now we’re ready to prove the main result of this section.
Theorem 2.2
The derivability problem for is -complete.
Proof
The fact that this problem belongs to class (the upper bound) is established by the same argument as for in [14].
To prove -hardness of the derivability problem in (the lower bound), we encode . For every context-free grammar over we algorithmically construct an -sequent such that
[TABLE]
First we apply Theorem 2.1 to and obtain a Lambek categorial grammar with unique type assignment. In this case, it consists of three types, , , and . Next, let .
Now, since the and rules are invertible, the sequent is derivable in iff for any positive natural numbers , , …, , , …, the sequent is derivable in , and, since it doesn’t contain +, by conservativity also in the Lambek calculus . By definition of Lambek grammar, this is equivalent to . Therefore, is derivable iff the language generated by includes all words of the form , i.e., .
3 The Calculus with Infinite Derivation Branches
In this section we define , another infinitary calculus that extends with positive iteration, in the spirit of sequent systems with non-well-founded derivations for other logics [2][13][24]. Compared to , has a finite number of rules and each rule has a finite number of premises. The tradeoff is that now derivation trees are allowed to have infinite depth.
The Lambek part (rules for , , and ) is taken from . The rules for positive iteration are as follows:
[TABLE]
[TABLE]
As said before, we allow infinitely deep derivations. For the cut-free version, any trees with possibly infinite paths are allowed, but for the calculus with one has to be extremely cautious. Clearly, allowing arbitrary infinite proofs would yield dead circles without actually using rules for +:
[TABLE]
Such “derivations” should be ruled out. There are, however, trickier cases like the following:
[TABLE]
Here in the only infinite path we can see an infinite number of applications. However, the resulting sequent, , is not valid under the formal language interpretation (e.g., ) and therefore should not be derivable.
For the calculus with , we impose the following constraint on the infinite derivation tree: in each infinite path there should be an infinite number of applications of with the same active occurrence of (the occurrence is tracked by individuality from bottom to top), cf. [2, Definition 5.5].
In our example that “derives” , the occurrence of that is active in the lower application of tracks to the left premise, and the that goes further to the infinite path is another occurrence generated by cut. For the cut-free system, this constraint holds automatically.
Also notice that the rules in are asymmetric: we don’t introduce the rules where appears to the right of . Yet, this calculus is equivalent to the symmetric system (Proposition 1). A motivation for this asymmetry is explained in the end of Section 4.
We generalize both and by adding the additive disjunction, , governed by the following rules:
[TABLE]
and denote the extensions by and respectively.
The cut-free calculi and (and, therefore, their conservative fragments and ) are equivalent.
Proposition 1
A sequent is derivable in iff it is derivable in .
Proof (sketch of)
The “only if” part is trivial: the -rule is derivable in and so are the rules. All other rules are the same.
For the “if” part, we make use of the -elimination result by Palka [14]. We consider the -th negative mapping that replaces any negative occurrence of (polarity is defined as usual) by and show that if a sequent is derivable in , than all its negative mappings are also derivable. In the negative mapping, however, there are no negative occurrences of +, and therefore its cut-free derivation doesn’t have infinite branches. Moreover, we replace each rule application with the following subderivation:
[TABLE]
The sequent is derivable in , using the -rule. Thus, the negative mapping of the original is derivable in using cut, and, by cut elimination, has a cut-free derivation. Then we go backwards and show, following the argument of Palka [14], that the original sequent is derivable in .
4 The Cyclic Calculus
Now let’s consider the following example:
[TABLE]
We see that actually we don’t have to develop the derivation tree further, since the sequent on top already appears lower in the derivation, and now this tree can be built up to an infinite one in a regular way.
We define the notion of cyclic proof as done in [24][25] (for GL, the Gödel – Löb logic) and call this system . In contrast to the situation with GL, however, here is strictly weaker than () due to complexity reasons. Indeed, is -hard, while in derivations are finite and the derivability problem is recursively enumerable (belongs to ). This is true even in the signature without .
For the extension of with additive disjunction, we show that the cyclic system is equivalent to the corresponding variant of action logic considered by Pratt [19], Kozen [10], and Jipsen [9]. The difference is due to Lambek’s non-emptiness restriction and the use of positive iteration instead of Kleene star.
Formally, cyclic derivations are defined as follows. The system has the same axioms and rules as , but infinite derivations are not allowed. Instead, for each application of the rule that yields we trace the active occurrence of upwards and are allowed to stop if we again get the same sequent, with the same occurrence of . This sequent is backlinked to the original one, forming a cycle. The cut rule is also allowed. Note that in the bottom of each cycle we always have the rule with the active occurrence of which is traced through the cycle, thus satisfying the constraint needed for infinite derivations with cut. Clearly, every cyclic derivation can be expanded into an infinite one. On the other hand, the cyclic system is not equivalent to due to complexity reasons.
This system appears to have much in common with various coinductive proof systems [1][8][11][18][20]. These connections are worth further investigation.
The cyclic system happens to be equivalent to a non-sequential calculus defined below, which is the positive iteration variant of the axioms for action algebras by Pratt [19]:
[TABLE]
[TABLE]
[TABLE]
[TABLE]
The rules for , , and correspond to the non-sequential formulation of the Lambek calculus [12].
Lemma 1
The following rule is admissible in :
[TABLE]
This lemma is actually a modification of a well-known alternative formulation of the calculus for action logic (connecting it to Kleene algebra). The difference, again, is in using positive iteration instead of Kleene star.
Proof
The second premise yields , and since is derivable, we get , and therefore and then . By transitivity with this yields , and therefore . Combining this with , we get , and it is sufficient to show . Denote by . We have and also . Indeed, using distributivity conditions: and , that are derivable in , we replace with , and applying the axiom for + and monotonicity, we see that all four disjuncts here yield , and therefore . Hence, by the rule for +, we obtain .
Lemma 2
The following rule is admissible in :
[TABLE]
Lemma 2 is essential for emulating cyclic reasoning in the non-sequential calculus . The parameter corresponds to the number of applications in the cycle.
Proof
First we prove that
[TABLE]
is derivable in this calculus. We denote the right-hand side of this formula by and show and (this yields by Lemma 1). The first is trivial. For the second, using distributivity conditions, we replace with
[TABLE]
All types in this long disjunction, except and , belong to the disjunction (and therefore yield ). For the two exceptions we have the following: and .
Now we prove the lemma itself by deriving . To do this, we need to show for any disjunct in . For , …, this is stated in the premises. Since that is derivable and follows from the last premise, we get , and therefore . Thus, , then , and by transitivity with we get for any . It remains to show . We have and also as a premise. One can easily prove and thus establish .
Finally, by transitivity from and we obtain .
Theorem 4.1
A sequent (of the form ) is derivable in iff it is derivable in .
Proof
The “if” part is easier. The rules operating Lambek connectives (, , and ) can be emulated in the sequential calculus due to Lambek [12]. The rules for in directly correspond to the rules for in .
The following cyclic derivation yields from and , thus establishing the rule for + from :
[TABLE]
The track of goes through the cycle, and the rule is applied to it at every round.
Finally, for , we first derive (using and ), and then, following Pratt [19], transform it into :
[TABLE]
In this derivation we’ve used other rules of , which were previously shown to be valid in . Together with (derivable using ), this yields the last axiom of , .
For “only if” part, we first replace all cycles in the derivation by applications of the rule from Lemma 2. We proceed by induction on the number of cycles. For the induction step, let the derivation end with an application of , involved in a cycle. Let be the number of applications of to the active occurrence of that is tracked along this cycle. Let the goal sequent be ; the same sequent appears on top of the cycle:
[TABLE]
Let (if or contains more than one formula, we add ’s between them; if or is empty, we omit the corresponding division). The sequent is derivable in the Lambek calculus. Then we go down the cycle path, replacing the active with . We start with and increase each time we come across applied to the active . After this substitution, this application becomes trivial: instead of
[TABLE]
we get
[TABLE]
and actually forget about the left premise of the rule. All other rules remain valid. In the end, this gives us , or . Moreover, the derivation of this sequent was obtained by substitution and cutting some branches from the original derivation, and therefore contains less cycles. By induction, we can suppose that was derived without cycles, using the rule from Lemma 2.
Next, for an arbitrary from 1 to , we go upwards along the trace of the active and find the -th application of :
[TABLE]
Now we cut off the right (cyclic) derivation branch and replace in the goal with . Next, we trace it down back to the original sequent, replacing with . The index starts from 1 and gets increased each time we pass through the rule with the active . Again, these applications trivialize, all other rules remain valid. In the end, we get derivable with a less number of cycles. This yields .
Finally, having , , …, , and , we apply Lemma 2 and obtain . Using cut, we invert , , and , decompose and arrive at the original goal sequent .
This finishes the non-trivial part of the proof: now we have a normal, non-cyclic derivation, and it remains to show that other rules of used in it are admissible in . (Formally speaking, the languages of and are different. In , instead of sequents of the form , we consider .)
The rules for Lambek connectives (, , and ), and also the cut rule, are admissible in due to Lambek [12]. The rules for correspond directly. Finally, the and are validated as follows (here we use previously validated Lambek rules):
[TABLE]
[TABLE]
Note that, despite the fact that the calculus for is symmetric, the asymmetry in the rules of is essential for our reasoning, because if we allow both left and right rules for +, the rule from Lemma 2, that is used to emulate cyclic derivation, would transform into
[TABLE]
and for this rule we don’t know whether it is admissible in .
5 Further Work and Open Questions
In this section we summarize the questions that are still (to the author’s best knowledge) unsolved.
Though we don’t claim cut elimination for in this paper, it looks plausible that it could be proven using continuous cut elimination (cf. [13][23]). For , however, the problem looks harder, since if one unravels the cyclic derivation into an infinite one and eliminates cut, the resulting derivation could be not cyclic anymore. 2. 2.
In this paper we use complexity arguments to show that is strictly more powerful than any its subsystem with finite derivations. This doesn’t yield any examples of concrete sequents derivable in and not derivable, say, in . Constructing such examples is yet an open problem. 3. 3.
We don’t know whether the rule in the end of Section 4 is admissible if . If yes, we could allow both left and right rules for + is cyclic derivations, and this system would be still equivalent to . 4. 4.
Safiullin’s construction (see Appendix) essentially uses Lambek’s non-emptiness restriction. The question whether any context-free language can be generated by a categorial grammar with unique type assignment, based on the variant of the Lambek calculus allowing empty left-hand sides of sequents, is still open. From our perspective, a positive answer to this question (maybe, by modification of Safiullin’s construction) would immediately yield -hardness of the Lambek calculus allowing empty left-hand sides of sequents, enriched with Kleene star (but without additive conjunction and disjunction), thus solving a problems posed by Buszkowski [4]. 5. 5.
An open (and, in the view of the sophisticatedness of Pentus’ completeness proof [17], very hard) question is the completeness of w.r.t. language interpretation (see Section 1). A partial completeness result, for the fragment where + is allowed only in the denominators of and , was obtained by Ryzhkova [21], using Buszkowski’s canonical model construction [3].
Acknowledgments
The author is grateful to Arnon Avron, Lev Beklemishev, Michael Kaminski, Max Kanovich, Glyn Morrill, Fedor Pakhomov, Mati Pentus, Nadezhda Ryzhkova, Andre Scedrov, Daniyar Shamkanov, and Stanislav Speranski for fruitful discussions. The author is also grateful to the anonymous referees for their comments.
Appendix: Safiullin’s Construction Revisited
Theorem 2.1 by Safiullin is a crucial component of our -hardness proof for . Unfortunately, Safiullin’s paper [22] is very brief and, moreover, includes this theorem (which is probably the most interesting result of that paper) as a side-effect of a more complicated construction. This makes it very hard to follow Safiullin’s ideas and arrive at a complete proof. Therefore, in this Appendix we present Safiullin’s proof clearly and in detail.
In this Appendix, the + connective is never used, and stands for the set of types constructed from primitive ones using , , and .
Define the top of a Lambek type in the following way: \mathrm{top}(q)=q\text{ for q\in\mathrm{Pr}}; Note that the case is missing. Thus, not every type has a top.
For types with tops, the rule is invertible (proof by induction):
Lemma 3
If all types of have tops and is derivable in , then and is derivable for every .
If a sequent of the form , , has a cut-free derivation in , trace the occurrence of back to the axiom of the form , and then trace the left back to its occurrence in . This occurrence of will be called the principal occurrence (for different derivations, the principal occurrences could differ).
Lemma 4
The principal occurrence has the following properties:
if all types in have tops, then the principal occurrence is one of them; 2. 2.
if in a derivation of the occurrence of between and is principal, then and are empty; 3. 3.
if in a derivation of the occurrence of in is principal, then is empty; 4. 4.
if in a derivation of the occurrence of in is principal, then is empty.
Proof
For statement 1, proceed by induction on derivation. For statements 2–4, suppose the contrary and also proceed by induction on derivation.
Lemma 5
If all types of have tops, and these tops are not , then is not derivable in .
Proof
Since is invertible, we get , and by Lemma 4 should be empty. But is not derivable due to Lambek’s restriction.
Lemma 6
If in a derivation of the leftmost occurrence of is principal or in a derivation of the rightmost occurrence of is principal, then is derivable.
Proof
Induction on the derivation.
Lemma 7
If is derivable in , all types from and have tops, and these tops are not , then and are empty.
Proof
Again, by inverting we get . The rightmost cannot be principal, because otherwise is empty (Lemma 4). The second possibility is the top of . Then, again by Lemma 4, is empty, and by Lemma 6 is derivable. Since tops of are not , the rightmost occurrence of is principal. By Lemma 4, is empty.
By we denote the free group generated by the set of primitive types . For every we define its interpretation in this free group, , as follows: [\![q]\!]=q\text{ for q\in\mathrm{Pr}}; ; ; . If is the unit of , is called a zero-balance type.
The primitive type count, , for and , is defined as follows: ; , if and ; ; . Notice that if is a zero-balance type, then for every .
If the sequent is derivable in , then it is balanced, namely, for every , and .
Theorem 5.1 (M. Pentus, 1994)
If , then there exists such , that all sequents , , …, are derivable in . [16]
For a set of zero-balance types , we construct an ersatz of their additive disjunction, , in the following way. In the notations for types, we sometimes omit the multiplication sign, , if this doesn’t lead to misunderstanding. Let , , and be fresh primitive types, not occurring in . By Theorem 5.1, there exist such types and that the folllowing sequents are derivable for all :
[TABLE]
Now let
[TABLE]
[TABLE]
We omit the multiplication sign, , if this doesn’t lead to misunderstanding.
Finally,
Lemma 8
For each , the sequent is derivable in .
Proof
The derivation is straightforward.
Lemma 9
If the sequent is derivable in , all types in have tops, and these tops are not or , then for some the sequent , where is either empty or is a type such that or for some , and is either empty or is a type such that or for some (up to associativity of ).
Using the invertibility of , we replace ’s in and by commas, and thus consider them as sequences of types that have tops. Actually, we want them to be empty, and it will be so in our final construction.
Proof
Let be derivable. Then one can derive , and then by Lemma 6 we get (since the leftmost is the only top , and it is the principal occurrence). Recall that and apply Lemma 3. It is sufficient so show that, after decompositon, the whole comes to one part of the left-hand side of the sequent. Suppose the contrary, then locate the principal occurrence of (it should be in ). Then proceed by induction: finally we run out of ’s in and get a contradiction.
Proof (of Theorem 2.1)
Given a context-free grammar without -rules, we need to construct an equivalent Lambek grammar with unique type assignment. Let be the alphabet, be the set of non-terminal symbols of , is the starting symbol.
First we algorithmically transform into Greibach normal form [6] with rules of the following three forms: , , or .
Now we construct the Lambek grammar. Let include distinct primitive types , , , , , and . For each let (this type corresponds to the non-terminal ). Next, for each , we form a set in the following way:
[TABLE]
Now let and be the type corresponding to . For the target type we take . Our claim is that iff the sequent is derivable in .
For the easier “only if” part, we prove a more general statement: if can be generated from in , then the sequent is derivable in , where is a sequence of types corresponding to letters of , for and for . To establish this, it is sufficient to prove that the following sequents are derivable (each step of the context-free generation maps to a with the corresponding sequent):
[TABLE]
Consider sequents of the first type (the second and the third types are handled similarly). Since and K_{i,k,\ell}=r\mathop{/}\bigl{(}(H_{k}\cdot H_{\ell}\cdot(p_{i}\mathop{/}p_{i}))\mathop{\backslash}r\bigr{)}\in\mathcal{U}_{j}, we have by Lemma 8. Then the derivation is as follows:
[TABLE]
For the “if” part, let be derivable and proceed by induction on the cut-free derivation ( is arbitrary here for induction; in the end ). Since and and are invertible, we get . Locate the principal occurrence of . By Lemma 4, it is the in , and by Lemma 6 the sequent is derivable. Let . Since all our types have tops, apply Lemma 3.
Case 1 (good). The sequent decomposes into and . Consider the former sequent. Tops on the left side are and , we can apply Lemma 9 and get for some .
Let’s prove that and in this case are empty. Suppose (the cases of and are handled similarly). Then, by invertibility of , we get . Now locate the principal occurrence of .
Subcase 1.1. The principal occurrence of is the rightmost one. By Lemma 6, we get . Apply Lemma 3. First, by Lemma 5, , otherwise there’s no in tops of the left-hand side. Next, the part of the left-hand side that yields , by Lemma 7, contains only . Therefore, is empty. Now, for some part we have , and, decomposing , we get . By Lemma 4, the principal occurrence of is not the rightmost one. Since doesn’t have in tops, should include also some of the , and the principal is the top of one of them. But, since is of the form , by Lemma 4 the part to the left of this , and, therefore, should be empty.
Subcase 1.2. The principal occurrence of is somewhere in or , in a type . By Lemma 4, it is then the leftmost occurrence of , because has the form . This rules out the possibility of it being in (we definitely have to the left of it). If it is in , again by Lemma 6, we get ( and are optional), and we’re in the same situation, as Subcase 1.1. Thus, and should be empty. However, now should contain the last type of , . Contradiction. Subcase 1.2 impossible.
Now we have (the only choice for the principal now is the rightmost one, and we’ve applied Lemma 6). By Lemma 3, we get , , (the last left side is alone by Lemma 7).
Apply induction hypothesis. In the context-free grammar, we now have and . Since , we also have the rule ( and are optional) in the grammar (since the corresponding type was in ). Thus, . Recall that .
Case 2 (bad). The sequent decomposes in another way, yielding and . Again, by Lemma 9, we get for some , and further . Now we locate the principal occurrence of and proceed as in Case 1. The only difference, however, is that now there is no in the left-hand side, and for that reason derivation fails by Lemma 5. Thus, Case 2 is impossible.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. Brandt, F. Henglein. Coinductive axiomatization of recursive type equality and subtyping. Fund. Inform. 33(4): 309–338 (1998)
- 2[2] J. Brotherston, A. Simpson. Sequent calculi for induction and infinite descent. J. Log. Comput. 21(6): 1177–1216 (2011)
- 3[3] W. Buszkowski. Compatibility of a categorial grammar with an associated category system. Zeitschr. math. Log. Grundl. Math. 28: 229–238 (1982)
- 4[4] W. Buszkowski. On action logic: Equational theories of action algebras. J. Log. Lang. Comput. 17(1): 199–217 (2007)
- 5[5] Ding-Zhu Du, Ker-I Ko. Problem solving in automata, languages, and complexity. John Wiley & Sons, New York, 2001.
- 6[6] S. A. Greibach. A new normal-form theorem for context-free phrase structure grammars. J. ACM 12(1): 42–52 (1965)
- 7[7] J. E. Hopcroft, R. Motwani, J. D. Ullman. Introduction to automata theory, languages, and computation, 2nd ed. Addison-Wesley, 2001.
- 8[8] J. Jaffar, A. Santosa, R. Voicu. A coinduction rule for entailment of recursively-defined properties. Proc. CP 2008, LNCS vol. 5202, pp. 493–508 (2008)
