Skip to main content

Context-Free Languages, Coalgebraically

  • Conference paper
Algebra and Coalgebra in Computer Science (CALCO 2011)

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

Included in the following conference series:

Abstract

We give a coalgebraic account of context-free languages using the functor \({\mathcal D}(X) = 2 \times X^A\) for deterministic automata over an alphabet A, in three different but equivalent ways: (i) by viewing context-free grammars as \({\mathcal D}\)-coalgebras; (ii) by defining a format for behavioural differential equations (w.r.t. \({\mathcal D}\)) for which the unique solutions are precisely the context-free languages; and (iii) as the \({\mathcal D}\)-coalgebra of generalized regular expressions in which the Kleene star is replaced by a unique fixed point operator. In all cases, semantics is defined by the unique homomorphism into the final coalgebra of all languages, paving the way for coinductive proofs of context-free language equivalence. Furthermore, the three characterizations can serve as the basis for the definition of a general coalgebraic notion of context-freeness, which we see as the ultimate long-term goal of the present study.

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 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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bartels, F.: On Generalized Coinduction and Probabilistic Specification Formats. Ph.D. thesis. Vrije Universiteit Amsterdam (2004)

    Google Scholar 

  2. Ésik, Z., Leiß, H.: Algebraically complete semirings and Greibach normal form. Annals of Pure and Applied Logic 133(1-3), 173–203 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  3. Ginsburg, S., Rice, H.G.: Two families of languages related to ALGOL. J. ACM 9, 350–371 (1962)

    Article  MathSciNet  Google Scholar 

  4. Greibach, S.A.: A new normal-form theorem for context-free, phrase structure grammars. Journal of the Association for Computing Machinery 12, 42–52 (1965)

    MathSciNet  MATH  Google Scholar 

  5. Hasuo, I., Jacobs, B.: Context-free languages via coalgebraic trace semantics. In: Fiadeiro, J.L., Harman, N.A., Roggenbach, M., Rutten, J. (eds.) CALCO 2005. LNCS, vol. 3629, pp. 213–231. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  6. Hopcroft, J.E., Ullman, J.D.: Formal languages and their relation to automata. Addison-Wesley Longman Publishing Co., Inc., Boston (1969)

    MATH  Google Scholar 

  7. Jacobs, B.: A bialgebraic review of deterministic automata, regular expressions and languages. In: Futatsugi, K., Jouannaud, J.-P., Bevilacqua, V. (eds.) Algebra, Meaning, and Computation. LNCS, vol. 4060, pp. 375–404. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  8. Kozen, D.: A completeness theorem for Kleene algebras and the algebra of regular events. Inf. Comput. 110(2), 366–390 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  9. Leiß, H.: Towards Kleene algebra with recursion. In: Kleine Büning, H., Jäger, G., Börger, E., Richter, M.M. (eds.) CSL 1991. LNCS, vol. 626, pp. 242–256. Springer, Heidelberg (1992)

    Chapter  Google Scholar 

  10. Linz, P.: An Introduction to Formal Languages and Automata. Jones and Bartlett (1997)

    Google Scholar 

  11. Milius, S.: A sound and complete calculus for finite stream circuits. In: LICS 2010, Edinburgh, United Kingdom, July 11-14, pp. 421–430. IEEE Computer Society, Los Alamitos (2010)

    Google Scholar 

  12. Rutten, J.J.M.M.: Automata and coinduction (an exercise in coalgebra). In: Sangiorgi, D., de Simone, R. (eds.) CONCUR 1998. LNCS, vol. 1466, pp. 194–218. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  13. Rutten, J.J.M.M.: Universal coalgebra: a theory of systems. Theoretical Computer Science 249(1), 3–80 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  14. Rutten, J.J.M.M.: Behavioural differential equations: a coinductive calculus of streams, automata, and power series. Theoretical Computer Science 308(1-3), 1–53 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  15. Silva, A.: Kleene Coalgebra. Ph.D. thesis. Radboud Universiteit Nijmegen (2010)

    Google Scholar 

  16. Silva, A., Bonchi, F., Bonsangue, M.M., Rutten, J.J.M.M.: Generalizing the powerset construction, coalgebraically. In: FSTTCS. LIPIcs, vol. 8, pp. 272–283. Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2010)

    Google Scholar 

  17. Silva, A., Bonsangue, M.M., Rutten, J.J.M.M.: Non-deterministic Kleene coalgebras. Logical Methods in Computer Science 6(3) (2010)

    Google Scholar 

  18. Stirling, C.: Decidability of DPDA equivalence. Theoretical Computer Science 255(1-2), 1–31 (2001)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Winter, J., Bonsangue, M.M., Rutten, J. (2011). Context-Free Languages, Coalgebraically. In: Corradini, A., Klin, B., Cîrstea, C. (eds) Algebra and Coalgebra in Computer Science. CALCO 2011. Lecture Notes in Computer Science, vol 6859. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-22944-2_25

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-22944-2_25

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-22943-5

  • Online ISBN: 978-3-642-22944-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics