Skip to main content

The Complexity of Multiplicative-Additive Lambek Calculus: 25 Years Later

  • Conference paper
  • First Online:
Logic, Language, Information, and Computation (WoLLIC 2019)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 11541))

Abstract

The Lambek calculus was introduced as a mathematical description of natural languages. The original Lambek calculus is NP-complete (Pentus), while its product-free fragment with only one implication is polynomially decidable (Savateev). We consider Lambek calculus with the additional connectives: conjunction and disjunction. It is known that this system is PSPACE-complete (Kanovich, Kanazawa). We prove, in contrast with the polynomial-time result for the product-free Lambek calculus with one implication, that the derivability problem is still PSPACE-complete even for a very small fragment \((\mathop {\backslash }, \wedge )\), including one implication and conjunction only. PSPACE-completeness is also provided for the \((\mathop {\backslash }, \vee )\) fragment, which includes only one implication and disjunction. Categorial grammars based on the original Lambek calculus generate exactly the class of context-free languages (Gaifman, Pentus). The class of languages generated by Lambek grammars extended with conjunction is known to be closed under intersection (Kanazawa), and therefore includes all finite intersections of context-free languages and, moreover, images of such intersections under alphabetic homomorphisms. We show that the same closure under intersection holds for Lambek grammars extended with disjunction, even for our small \((\mathop {\backslash }, \vee )\) fragment.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Abrusci, V.M.: A comparison between Lambek syntactic calculus and intuitionistic linear logic. Zeitschr. Math. Logik Grundl. Math. (Math. Logic Q.) 36, 11–15 (1990)

    Article  MathSciNet  Google Scholar 

  2. Bar-Hillel, Y., Gaifman, C., Shamir, E.: On categorial and phrase-structure grammars. Bull. Res. Council Israel 9F, 1–16 (1960)

    MathSciNet  MATH  Google Scholar 

  3. Buszkowski, W.: The equivalence of unidirectional Lambek categorial grammars and context-free grammars. Zeitschr. Math. Log. Grundl. Math. 31, 369–384 (1985)

    Article  MathSciNet  Google Scholar 

  4. Carpenter, B.: Type-Logical Semantics. MIT Press (1998)

    Google Scholar 

  5. Girard, J.-Y.: Linear logic. Theor. Comput. Sci. 50(1), 1–101 (1987)

    Article  MathSciNet  Google Scholar 

  6. Horčík, R., Terui, K.: Disjunction property and complexity of substructural logics. Theor. Comput. Sci. 412(31), 3992–4006 (2011)

    Article  MathSciNet  Google Scholar 

  7. Jeż, A.: Conjunctive grammars can generate non-regular unary languages. Internat. J. Found. Comput. Sci. 19(3), 597–615 (2008)

    Article  MathSciNet  Google Scholar 

  8. Kanazawa, M.: The Lambek calculus enriched with additional connectives. J. Log. Lang. Inform. 1(2), 141–171 (1992)

    MathSciNet  MATH  Google Scholar 

  9. Kanazawa, M.: Lambek calculus: recognizing power and complexity. In: Gerbrandy, J., et al. (eds.) JFAK. Essays Dedicated to Johan van Benthem on the Occasion of his 50th Birthday. Amsterdam University Press, Vossiuspers (1990)

    Google Scholar 

  10. Kanovich, M.I.: Horn fragments of non-commutative logics with additives are PSPACE-complete. In: Proceedings 1994 Annual Conference of the European Association for Computer Science Logic, Kazimierz, Poland (1994)

    Google Scholar 

  11. Kanovich, M.: The direct simulation of Minsky machines in linear logic. In: Girard, J.-Y., Lafont, Y., Regnier, L. (eds.) Advances in Linear Logic. London Mathematical Society Lecture Notes, vol. 222, pp. 123–145. Cambridge University Press, Cambridge (1995)

    Chapter  Google Scholar 

  12. Kanovich, M.I.: The undecidability theorem for the Horn-like fragment of linear logic (Revisited). Math. Struct. Comput. Sci. 26(5), 719–744 (2016)

    Article  MathSciNet  Google Scholar 

  13. Kanovich, M., Kuznetsov, S., Nigam, V., Scedrov, A.: Subexponentials in non-commutative linear logic. Math. Struct. Comput. Sci. (2018). Part of Dale Miller’s Festschrift

    Google Scholar 

  14. Kuznetsov, S.: Conjunctive grammars in Greibach normal form and the Lambek calculus with additive connectives. In: Morrill, G., Nederhof, M.-J. (eds.) FG 2012-2013. LNCS, vol. 8036, pp. 242–249. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-39998-5_15

    Chapter  Google Scholar 

  15. Kuznetsov, S.L.: On translating Lambek grammars with one division into context-free grammars. Proc. Steklov Inst. Math. 294(1), 129–138 (2016)

    Article  MathSciNet  Google Scholar 

  16. Kuznetsov, S., Okhotin, A.: Conjunctive categorial grammars. In: Proceedings of Mathematics of Language (2017)

    Google Scholar 

  17. Lambek, J.: The mathematics of sentence structure. Amer. Math. Monthly 65, 154–170 (1958)

    Article  MathSciNet  Google Scholar 

  18. Lincoln, P., Mitchell, J., Scedrov, A., Shankar, N.: Decision problems for propositional linear logic. Ann. Pure Appl. Logic 56, 239–311 (1992)

    Article  MathSciNet  Google Scholar 

  19. Moot, R., Retoré, C.: The Logic of Categorial Grammars. A Deductive Account of Natural Language Syntax and Semantics. LNCS, vol. 6850. Springer, Heidelberg (2012). https://doi.org/10.1007/978-3-642-31555-8

    Book  MATH  Google Scholar 

  20. Morrill, G.V.: Categorial Grammar: Logical Syntax, Semantics, and Processing. Oxford University Press (2011)

    Google Scholar 

  21. Okhotin, A.: Conjunctive grammars. J. Autom. Lang. Combin. 6(4), 519–535 (2001)

    MathSciNet  MATH  Google Scholar 

  22. Păun, G.: A note on the intersection of context-free languages. Fundam. Inform. 3(2), 135–139 (1980)

    MathSciNet  MATH  Google Scholar 

  23. Pentus, M.: Lambek grammars are context-free. In: Proceedings of the 8th Annual IEEE Symposium on Logic in Computer Science (LICS 1993), pp. 429–433. IEEE Computer Society Press (1993)

    Google Scholar 

  24. Pentus, M.: Lambek calculus is NP-complete. Theor. Comput. Sci. 357(1–3), 186–201 (2006)

    Article  MathSciNet  Google Scholar 

  25. Pentus, M.: A polynomial-time algorithm for Lambek grammars of bounded order. Linguist. Anal. 36(1–4), 441–471 (2010)

    Google Scholar 

  26. Savateev, Yu.: Unidirectional Lambek grammars in polynomial time. Theory Comput. Syst. 46(4), 662–672 (2010)

    Article  MathSciNet  Google Scholar 

  27. Savateev, Yu.: Product-free Lambek calculus is NP-complete. Ann. Pure Appl. Logic 163(7), 775–788 (2012)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgments

We would like to thank the anonymous referees for their helpful comments.

Financial Support

The work of Max Kanovich and Andre Scedrov was supported by the Russian Science Foundation under grant 17-11-01294 and performed at National Research University Higher School of Economics, Moscow, Russia. The work of Stepan Kuznetsov was supported by the Young Russian Mathematics award, by the grant MK-430.2019.1 of the President of Russia, and by the Russian Foundation for Basic Research grant 18-01-00822. Section 2 was contributed by Kanovich and Scedrov. Section 3 was contributed by Kuznetsov. Sections 1 and 4 were contributed jointly and equally by all co-authors.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Stepan Kuznetsov .

Editor information

Editors and Affiliations

Appendices

A PSPACE-completeness of the fragment \(\mathcal{L}(\backslash , \vee )\)

In this section we will modify Sect. 2 to establish PSPACE-completeness for the fragment \(\mathcal{L}(\backslash ,\, \vee \,)\), which includes only one implication and disjunction.

Remark 4

For the sake of readability, we conceive of the formula \({((A \cdot \,B) \backslash \, C)}\) as abbreviation for \({(B \backslash \, {(A \backslash \, C)})}\). In particular, \((A \cdot \,B)^{b}\) is abbreviation for \({(B \backslash \, {(A \backslash \, b)})}\). Because of Lemma 1, the formula \((A^b\wedge B^b)\) is conceived of as abbreviation for \({((A\vee B) \backslash \, b)}\) within this section.

Theorem 4

The fragment \(\mathcal{L}(\backslash , \vee )\) is PSPACE-complete.

Proof Sketch. We start with the equality (2), assuming that \(\alpha _1\), \(\alpha _2\), ..., \(\alpha _{2n-1}\), \(\alpha _{2n}\) are given.

To prove Lemma 14, the “disjunction analog” of Lemma 3, we modify the basic material given in the “conjunction” Definition 3 by means of Definitions 6 and 7 working within the \(\mathcal{L}(\backslash , \vee )\) fragment.

Definition 6

For \(1\le i\le 2n\), let \(E_{\ell ,i,\beta }\) denote the formula: \((c_{\ell ,i} \backslash \, {(\beta \backslash \, c_{\ell ,i-1})})\).

Let \(F_{\ell }\) denote: \((q_{2n} \backslash \, c_{\ell ,2n})\), and \(H_{\ell }\) denote: \((c_{\ell ,0} \backslash \, {(e_0 \backslash \, e_0)})\).

Lemma 13

The following “verifying” sequent is derivable in Lambek calculus

$$e_0, \alpha _1, \alpha _2, \dots , \alpha _{2n}, q_{2n}, F_{\ell }, E_{\ell ,2n,\alpha _{2n}}, E_{\ell ,2n-1,\alpha _{2n-1}}, \dots E_{\ell ,2,\alpha _{2}}, E_{\ell ,1,\alpha _{1}}, H_{\ell }\ \vdash \ e_0 $$

Proof

By the inverse induction on i: \(\alpha _{i-1}, \alpha _{i}, c_{\ell ,i},\, E_{\ell ,i,\alpha _{i}} \ \vdash \ (\alpha _{i-1} \cdot \,\, c_{\ell ,i-1})\)

Definition 7

We introduce the following formulas:

$$\begin{aligned} \left\{ \begin{array}{c}{} \displaystyle { \widetilde{F} = \biggl (\bigvee _{\ell =1}^{m} (F_{\ell })^{b}\biggr )^{b} }, \quad \displaystyle { \widetilde{H} = \biggl (\bigvee _{\ell =1}^{m} (H_{\ell })^{b}\biggr )^{b} } \\[2ex] \displaystyle { \widetilde{E_{i}} = \biggl (\bigvee _{1\le \ell \le m,\ E_{\ell ,i,\beta }\in \mathcal{E}_{\ell ,i}} (E_{\ell ,i,\beta })^{b}\biggr )^{b} } \end{array}\right. \end{aligned}$$
(32)

where a one- or two-element set of formulas, \(\mathcal{E}_{\ell ,i}\), is defined as follows:

  1. (1)

    \(\mathcal{E}_{\ell ,i} = \{\, E_{\ell ,i,t_i}\, \}\), if the conjunct \(C_\ell \) contains the variable \(x_i\),

  2. (2)

    \(\mathcal{E}_{\ell ,i} = \{\, E_{\ell ,i,f_i}\, \}\), if the conjunct \(C_\ell \) contains \(\lnot x_i\),

  3. (3)

    \(\mathcal{E}_{\ell ,i} = \{\, E_{\ell ,i,t_i},\ E_{\ell ,i,f_i}\, \}\), if \(C_\ell \) contains neither \(x_i\), nor \(\lnot x_i\).

By applying (2) and Lemma 1, we get the desired verification:

Lemma 14

The following sequent is derivable in Lambek

$$e_0^{bb}, \alpha _1^{bb}, \alpha _2^{bb}, \dots , \alpha _{2n-1}, (\alpha _{2n}\cdot \,\, q_{2n})^{bb},\ \varDelta _{n}\ \vdash \ e_0^{bb} $$

where \(\varDelta _{n}\) is a sequence of formulas: \(\varDelta _{n} = \widetilde{F}, \widetilde{E}_{2n}, \widetilde{E}_{2n-1}, \dots , \widetilde{E_{2}}, \widetilde{E_{1}}, \widetilde{H}\)

Corollary 6

It suffices to follow the line of reasoning in Sect. 2 to find appropriate \(G_1\), \(G_2\), ..., \(G_{2n-1}\), \(G_{2n}\), such that the following sequent is derivable in Lambek calculus if and only if the statement (1) is valid:

$$\begin{aligned} (e_0^{[4n]}\cdot \,q_0)^{[2]}, G_1^{[2]}, G_2^{[4]}, \dots , G_{2n-1}^{[4n-2]}, G_{2n}^{[4n]}, \ \varDelta _{n}^{[4n]}\ \vdash \ e_0^{[4n+2]} \end{aligned}$$
(33)

B Proofs of Technical Lemmas for Section 3

Proof

(of Lemma 8). Induction on derivation. The sequent in question could not be an axiom, since the antecedent of \(F_1 \vee F_2 \vdash F_1 \vee F_2\) includes \(F_1 \vee F_2\) in a strictly positive position. Consider the last rule applied in the derivation. It could be \(\mathbf {L} {\mathop {\backslash }}\), \(\mathbf {L} {\mathop {/}}\), \(\mathbf {L} \cdot \), or . Rules with \(\wedge \) cannot be used, since there are no \(\wedge \)’s in the antecedent, and the main connective of the succedent is \(\vee \). If the last rule is , we immediately reach our goal.

If the derivation ends with an application of \(\mathbf {L} {\cdot }\):

then we apply the induction hypothesis, get \(E_1, \ldots , E'_i, E''_i, \ldots , E_n \vdash F_i\) (\(i = 1\) or 2) and apply \(\mathbf {L} {\cdot }\) to this sequent, which yields our goal.

For \(\mathbf {L} {\mathop {\backslash }}\), we get the following

and notice that the antecedent of the right premise still satisfies the conditions of the lemma, thus we can apply induction hypothesis. The induction hypothesis yields \(E_1, \ldots , E_i, E''_j, \ldots , E_n \vdash F_i\). Applying \(\mathbf {L} {\mathop {/}}\) with the same left premise, \(E_{i+1}, \ldots , E_{j-1} \vdash E'_j\), yields our goal.

The \(\mathbf {L} {\mathop {/}}\) case is symmetric.

Proof

(of Lemma 9). Induction on derivation. The axiom should be of the form \(b \vdash b\), which violates the condition. For each inference rule, we apply the induction hypothesis for the premise from which the succedent b comes.

Proof

(of Lemma 10). Induction on derivation. Induction base is axiom \(b \vdash b\). Consider the last rule applied. If it is one of the one-premise rules, then we use the induction hypothesis for the only premise. For applications of \(\mathbf {L}{\mathop {/}}\) or \(\mathbf {L}{\mathop {\backslash }}\), if the rightmost occurrence of b goes to the right premise, we again directly use the induction hypothesis. Notice that for \(\mathbf {L}{\mathop {\backslash }}\) this is always the case. The other rule, \(\mathbf {L}{\mathop {/}}\), however, can decompose one of the \(F_i\) and take the rightmost b to the left premise:

The right premise, however, now is not derivable by Lemma 9. Contradiction.

Proof

(of Lemma 11). Induction on derivation again. Any one-premise rule applied for one of the \(F_i\), as well as \(\mathbf {L} {\mathop {/}}\) or \(\mathbf {L} {\mathop {\backslash }}\) which keeps \(E_k \mathop {\backslash }b\) in the right premise, is handled by directly using the induction hypothesis and applying the same rule. The situation where \(\mathbf {L} {\mathop {/}}\) takes \(E_k \mathop {\backslash }b\) to the left premise leads to contradiction with Lemma 9, exactly as in the proof of the previous lemma.

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer-Verlag GmbH Germany, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Kanovich, M., Kuznetsov, S., Scedrov, A. (2019). The Complexity of Multiplicative-Additive Lambek Calculus: 25 Years Later. In: Iemhoff, R., Moortgat, M., de Queiroz, R. (eds) Logic, Language, Information, and Computation. WoLLIC 2019. Lecture Notes in Computer Science(), vol 11541. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-59533-6_22

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-59533-6_22

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-59532-9

  • Online ISBN: 978-3-662-59533-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics