Efficient Ambiguous Parsing of Mathematical Formulae

  • Claudio Sacerdoti Coen
  • Stefano Zacchiroli
Part of the Lecture Notes in Computer Science book series (LNCS, volume 3119)

Abstract

Mathematical notation has the characteristic of being ambiguous: operators can be overloaded and information that can be deduced is often omitted. Mathematicians are used to this ambiguity and can easily disambiguate a formula making use of the context and of their ability to find the right interpretation.

Software applications that have to deal with formulae usually avoid these issues by fixing an unambiguous input notation. This solution is annoying for mathematicians because of the resulting tricky syntaxes and becomes a show stopper to the simultaneous adoption of tools characterized by different input languages.

In this paper we present an efficient algorithm suitable for ambiguous parsing of mathematical formulae. The only requirement of the algorithm is the existence of a “validity” predicate over abstract syntax trees of incomplete formulae with placeholders. This requirement can be easily fulfilled in the applicative area of interactive proof assistants, and in several other areas of Mathematical Knowledge Management.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 1.
    Asperti, A., Guidi, F., Padovani, L., Sacerdoti Coen, C., Schena, I.: Mathematical Knowledge Management in HELM. Annals of Mathematics and Artificial Intelligence 38(1), 27–46 (2003)MathSciNetCrossRefMATHGoogle Scholar
  2. 2.
    Bancerek, G., Rudnicki, P.: Information Retrieval in MML. In: Asperti, A., Buchberger, B., Davenport, J.H. (eds.) MKM 2003. LNCS, vol. 2594. Springer, Heidelberg (2003)CrossRefGoogle Scholar
  3. 3.
    The Coq proof-assistant, http://coq.inria.fr
  4. 4.
    Di Lena, P.: Generazione automatica di stylesheet per notazione matematica. Master thesis. University of Bologna (2003)Google Scholar
  5. 5.
    Guidi, F., Sacerdoti Coen, C.: Querying Distributed Digital Libraries of Mathematics. In: Proceedings of Calculemus 2003, 11th Symposium on the Integration of Symbolic Computation and Mechanized Reasoning. Aracne Editrice (2003)Google Scholar
  6. 6.
    Kohlhase, M.: OMDoc: An Open Markup Format for Mathematical Documents (Version 1.1). OMDoc technical recommendationGoogle Scholar
  7. 7.
    McBride, C.: Dependently Typed Functional Programs and their Proofs. Ph.D. thesis. University of Edinburgh (1999)Google Scholar
  8. 8.
    Munoz, C.: A Calculus of Substitutions for Incomplete-Proof Representation in Type Theory. Ph.D. thesis, INRIA (1997)Google Scholar
  9. 9.
    Naylor, W.A., Watt, S.: Meta Style Sheets for the Conversion of Mathematical Documents into other Forms. In: On-Line Proceedings of the First International Conference on Mathematical Knowledge Management, MKM 2001 (2001), http://www.emis.de/proceedings/MKM2001/
  10. 10.
    The Mizar proof-assistant, http://mizar.uwb.edu.pl/
  11. 11.
    Ranta, A.: Grammatical Framework: A Type-Theoretical Grammar Formalism. Journal of Functional Programming (manuscript made available in September 2002) (to appear, 2002)Google Scholar
  12. 12.
    Sacerdoti Coen, C.: Knowledge Management of Formal Mathematics and Interactive Theorem Proving. Ph.D. thesis, University of Bologna (2004)Google Scholar
  13. 13.
    Strecker, M.: Construction and Deduction in Type Theories. Ph.D. thesis, Universität Ulm (1998)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2004

Authors and Affiliations

  • Claudio Sacerdoti Coen
    • 1
  • Stefano Zacchiroli
    • 1
  1. 1.Department of Computer ScienceUniversity of BolognaBolognaItaly

Personalised recommendations