Skip to main content

Typed Linear Algebra for Weigthed (Probabilistic) Automata

  • Conference paper
Implementation and Application of Automata (CIAA 2012)

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

Included in the following conference series:

Abstract

There is a need for a language able to reconcile the recent upsurge of interest in quantitative methods in the software sciences with logic and set theory that have been used for so many years in capturing the qualitative aspects of the same body of knowledge. Such a lingua franca should be typed, polymorphic, diagrammatic, calculational and easy to blend with traditional notation.

This paper puts forward typed linear algebra (LA) as a candidate notation for such a role. Typed LA emerges from regarding matrices as morphisms of suitable categories whereby traditional linear algebra is equipped with a type system.

In this paper we show typed LA at work in describing weighted (probabilistic) automata. Some attention is paid to the interface between the index-free language of matrix combinators and the corresponding index-wise notation, so as to blend with traditional set theoretic notation.

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. Abadir, K., Magnus, J.: Matrix algebra. Econometric exercises, vol. 1. Cambridge University Press (2005)

    Google Scholar 

  2. Andova, S., McIver, A., D’Argenio, P.R., Cuijpers, P.J.L., Markovski, J., Morgan, C., Núñez, M. (eds.): Proceedings First Workshop on Quantitative Formal Methods: Theory and Applications. EPTCS, vol. 13 (2009)

    Google Scholar 

  3. Backhouse, R., Michaelis, D.: Exercises in Quantifier Manipulation. In: Uustalu, T. (ed.) MPC 2006. LNCS, vol. 4014, pp. 69–81. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  4. Backhouse, R.: Mathematics of Program Construction, 608 pages. Univ. of Nottingham (2004), draft of book in preparation

    Google Scholar 

  5. Barbosa, L.: Towards a Calculus of State-based Software Components. Journal of Universal Computer Science 9(8), 891–909 (2003)

    Google Scholar 

  6. Bird, R., de Moor, O.: Algebra of Programming. Series in Computer Science. Prentice-Hall International (1997)

    Google Scholar 

  7. Bloom, S., Sabadini, N., Walters, R.: Matrices, machines and behaviors. Applied Categorical Structures 4(4), 343–360 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  8. Bonchi, F., Bonsangue, M., Boreale, M., Rutten, J., Silva, A.: A coalgebraic perspective on linear weighted automata. Information and Computation 211, 77–105 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  9. Buchholz, P.: Bisimulation relations for weighted automata. Theoretical Computer Science 393(1-3), 109–123 (2008)

    Article  MathSciNet  MATH  Google Scholar 

  10. Droste, M., Gastin, P.: Weighted automata and weighted logics. In: Kuich, W., Vogler, H., Droste, M. (eds.) Handbook of Weighted Automata. EATCS Monographs in Theoretical Computer Science, ch. 5, pp. 175–211. Springer (2009)

    Google Scholar 

  11. Erwig, M., Kollmansberger, S.: Functional pearls: Probabilistic functional programming in Haskell. J. Funct. Program. 16, 21–34 (2006)

    Article  MATH  Google Scholar 

  12. Freyd, P., Scedrov, A.: Categories, Allegories, Mathematical Library, vol. 39. North-Holland (1990)

    Google Scholar 

  13. Gibbons, J., Hinze, R.: Just do it: simple monadic equational reasoning. In: Proceedings of the 16th ACM SIGPLAN International Conference on Functional Programming, ICFP 2011, pp. 2–14. ACM, New York (2011)

    Chapter  Google Scholar 

  14. Hehner, E.: A probability perspective. Formal Aspects of Computing 23, 391–419 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  15. Larsen, K., Skou, A.: Bisimulation through probabilistic testing. Inf. Comput. 94(1), 1–28 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  16. Macedo, H.D., Oliveira, J.N.: Matrices As Arrows! A Biproduct Approach to Typed Linear Algebra. In: Bolduc, C., Desharnais, J., Ktari, B. (eds.) MPC 2010. LNCS, vol. 6120, pp. 271–287. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  17. Macedo, H.D., Oliveira, J.N.: Do the middle letters of “OLAP” stand for linear algebra (“LA”)? Technical Report TR-HASLab:04:2011, INESC TEC and University of Minho, Gualtar Campus, Braga (2011a)

    Google Scholar 

  18. Macedo, H.D., Oliveira, J.N.: Towards Linear Algebras of Components. In: Barbosa, L.S. (ed.) FACS 2010. LNCS, vol. 6921, pp. 300–303. Springer, Heidelberg (2010)

    Google Scholar 

  19. Macedo, H.D., Oliveira, J.N.: Typing linear algebra: A biproduct-oriented approach (2011) (accepted for publication in SCP)

    Google Scholar 

  20. MacLane, S.: Categories for the Working Mathematician. Springer, New-York (1971)

    Google Scholar 

  21. MacLane, S., Birkhoff, G.: Algebra. AMS Chelsea (1999)

    Google Scholar 

  22. McIver, A., Morgan, C.: Abstraction, Refinement and Proof For Probabilistic Systems. Monographs in Computer Science. Springer (2005)

    Google Scholar 

  23. Oliveira, J.: Towards a linear algebra of programming. Accepted for publication in Formal Aspects of Computing (2012)

    Google Scholar 

  24. Schmidt, G.: Relational Mathematics. Encyclopedia of Mathematics and its Applications, vol. 132. Cambridge University Press (November 2010)

    Google Scholar 

  25. Sernadas, A., Ramos, J., Mateus, P.: Linear algebra techniques for deciding the correctness of probabilistic programs with bounded resources. Tech. rep., SQIG - IT and IST - TU Lisbon, 1049-001 Lisboa, Portugal (2008), short paper presented at LPAR 2008, Doha, Qatar, November 22-27

    Google Scholar 

  26. Sokolova, A.: Coalgebraic Analysis of Probabilistic Systems. Ph.D. dissertation, Tech. Univ. Eindhoven, Eindhoven, The Netherlands (2005)

    Google Scholar 

  27. SQIG-Group: LAP: Linear algebra of bounded resources programs, iT & Tech. Univ. Lisbon (2011), http://sqig.math.ist.utl.pt/work/LAP

  28. Trčka, N.: Strong, weak and branching bisimulation for transition systems and Markov reward chains: A unifying matrix approach. In: [2], pp. 55–65

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Oliveira, J.N. (2012). Typed Linear Algebra for Weigthed (Probabilistic) Automata. In: Moreira, N., Reis, R. (eds) Implementation and Application of Automata. CIAA 2012. Lecture Notes in Computer Science, vol 7381. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-31606-7_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-31606-7_5

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-31605-0

  • Online ISBN: 978-3-642-31606-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics