digital library of mathematical functions l a t ex mathml
play

Digital Library of Mathematical Functions: L A T EX, MathML and - PowerPoint PPT Presentation

Digital Library of Mathematical Functions: L A T EX, MathML and ...OpenMath? Bruce R. Miller NIST D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 2122, 2004 p.1/24 F unctions Needing no


  1. Digital Library of Mathematical Functions: L A T EX, MathML and ...OpenMath? Bruce R. Miller NIST D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.1/24 F unctions

  2. Needing no introduction... D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.2/24 F unctions

  3. Old, but still relevant Citations of AMS55 relative to All Scientific. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1200 . . . . . . . . . . . . . . 600 0 1974 1977 1980 1983 1986 1989 1992 1995 AMS55 is apparently used more than ever. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.3/24 F unctions

  4. Time for a Rewrite New functions; New properties of old functions; New applications. . . . and many opportunities. The Internet; Computer Algebra, Theorem Proving systems; The Semantic Web. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.4/24 F unctions

  5. DLMF Project Started looking at feasibility in 1997. NSF funding for authorship in 1999. 4 editors, ≈ 12 associate editors, ≈ 40 authors. Goals: New mathematical content updating AMS55, in form of Digital Library, and in print form, by 2005. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.5/24 F unctions

  6. Choices: L A T EX, XML , MathML, OpenMath L T EX is obviously good choice for document source. A . . . and obviously bad. Target: XML , MathML, and (eventually) OpenMath. I don’t need to tell you why. . . D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.6/24 F unctions

  7. Overview of talk L T E xml tool. A Metadata: markup, annotations and connections, Data model of the Library Math: Parsing, synthesizing meaning. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.7/24 F unctions

  8. L A T E xml : Goals L T EX ⇒ XML Transformer A General purpose. L T EX-like DTD (or other?) A Math to MathML, OpenMath Closely mimic T EX behaviour (& Quirks). Lossless. Extensible, Adaptable. Encourage higher-level markup, declarations. . . . and finish DLMF project! D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.8/24 F unctions

  9. L A T E xml : DLMF Approach To make more feasible adopt Modestly Content-oriented L T EX. A Discourage Presentation Markup but don’t forbid. Encourage Content Markup, but keep typeable. Use document-specific information (internal/external) to resolve ambiguities. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.9/24 F unctions

  10. Metadata: Making Connections Traditional L T EX: \ref , \cite , \index . A Leverage our mathematics markup. Additional markup: Annotations \note . Special metadata: Original handbook reference. Additional declarations. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.10/24 F unctions

  11. Metadata: Using Connections Postprocessing XML documents. Disassemble XML into ‘database’. Note all connections. Not really that hard. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.11/24 F unctions

  12. DLMF Data Model Simple model (maybe too simple) ID ⇒ Object( XML ) (Chapter, Section, Table, Equation, . . . ) linkages embedded within each object (insertion, reference, . . . ) Can (re)construct as necessary Sectional units, Search ‘hit-lists’ Developing an ‘Indexing’ API by which search, refnum lookup, . . . ⇒ ID’s D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.12/24 F unctions

  13. L A T E xml Math Processing EX source L T A E xml T − − − − − → XML Let L T E xml deal with T EX quirks. A Acts as structure-preserving Lexer. Possibly augmented (math) Tokens: Name, Unicode, Font, . . . PartOfSpeech (ID, Function, Operator, . . . ) Type (eventually). preserve any given structure (eg. \frac , . . . ) D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.13/24 F unctions

  14. Math: The Easy Stuff a = b+c L T E xml produces the tokens A <XMTok>a</XMTok> <XMTok>=</XMTok> <XMTok>b</XMTok> <XMTok>+</XMTok> <XMTok>c</XMTok> D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.14/24 F unctions

  15. L A T E xml Math Processing continued XML L T E xml post A → XML ’ − − − − − − − Grammar-based parser. Undeclared tokens get PartOfSpeech from Document-specific dictionary (possibly sectionally scoped) Default dictionary Resulting Expression tree inspired by OpenMath. ≈ Content MathML; (although we haven’t done this yet). Easily converted to Presentation MathML. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.15/24 F unctions

  16. Math: The Easy Stuff continued a = b+c L T E xml post parses this into A <XMApp><XMTok>=</XMTok> <XMTok>a</XMTok> <XMApp><XMTok>+</XMTok> <XMTok>b</XMTok> <XMTok>c</XMTok> </XMApp> </XMApp> D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.16/24 F unctions

  17. Math: The Easy Stuff continued a = b+c Conversion to MathML yields <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>a</mi> <mo>=</mo> <mrow> <mi>b</mi> <mo>+</mo> <mi>c</mi> </mrow> </mrow> </math> D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.17/24 F unctions

  18. L A T E xml Math Processing future XML ’ L T E xml post A → XML ” − − − − − − − Extension of Dictionary to support some Type system. Type Analysis to further resolve ‘meaning’ = ⇒ OpenMath. Any advice? D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.18/24 F unctions

  19. Math: Higher Level Markup Reduce ambiguities by introducing higher-level markup: \deriv[n]{f}{x} ⇒ d n f ( x + y ) dx n L T EX code: A omitted L T E xml declaration: A DefConstructor(’\deriv[]{}{}’, "<XMApp !#2(POS=’BIGOP’)>" . "<XMTok name=’deriv’/>" . "?#2(<XMArg>#2</XMArg>)!#2(<XMTok name=’Empty’/>)" . "<XMArg>#3</XMArg>" . "?#1(<XMArg>#1</XMArg>)</XMApp>"); D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.19/24 F unctions

  20. Math: Higher Level Markup continued L T E xml constructs the tree: A <XMApp><XMTok name=’deriv’/> <XMArg><XMTok>f</XMTok> <XMTok>(</XMTok> <XMTok>x</XMTok> <XMTok>+</XMTok> <XMTok>y</XMTok> <XMTok>)</XMTok> </XMArg> <XMArg><XMTok>x</XMTok></XMArg> <XMArg><XMTok>n</XMTok></XMArg> </XMApp> Parser can treat args individually, . . . avoiding much guesswork. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.20/24 F unctions

  21. Math: Special Functions With appropriate T EX macrology: \HyperpFq{p}{q} ⇒ p F q Introduce notion of evaluating a function at : \HyperpFq{p}{q}@{a}{b}{z} ⇒ p F q ( a ; b ; z ) or (alternative notation) � a � b ; z \HyperpFq{p}{q}@@{a}{b}{z} ⇒ p F q Palatable notation? Easier to type than \sideset{_{p}}{_{q}}{\mathop{F}}\left({a \atop b};z\right) D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.21/24 F unctions

  22. Math: Special Functions continued With the end result: <XMApp> <XMTok name=’HyperpFq’>F</XMTok> <XMTok>p</XMTok> <XMTok>q</XMTok> <XMTok>a</XMTok> <XMTok>b</XMTok> <XMTok>z</XMTok> </XMApp> and we know which ‘ F ’ is intended. D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.22/24 F unctions

  23. Math: Issues Role of text and spacing in math. Overloading of symbols (scoping?) f is a function here, but a variable there. Palatable content math markup for L T EX. A For really meaningful math (eg. OpenMath) need type analysis need more info from authors Open ended. . . D igital L ibrary of M athematical 10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.23/24 F unctions

Recommend


More recommend