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

digital library of mathematical functions l a t ex mathml
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Digital L

ibrary of

M

athematical

F

unctions

Digital Library of Mathematical Functions: L

AT

EX, MathML and ...OpenMath?

Bruce R. Miller NIST

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.1/24

slide-2
SLIDE 2

Digital L

ibrary of

M

athematical

F

unctions

Needing no introduction...

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.2/24

slide-3
SLIDE 3

Digital L

ibrary of

M

athematical

F

unctions

Old, but still relevant

Citations of AMS55 relative to All Scientific.

600 1200 1974 . . . . 1977 . . . . . . . . 1980 . . . . . . . . 1983 . . . . . . . . 1986 . . . . . . . . 1989 . . . . . . . . 1992 . . . . . . 1995 . . . .

AMS55 is apparently used more than ever.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.3/24

slide-4
SLIDE 4

Digital L

ibrary of

M

athematical

F

unctions

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.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.4/24

slide-5
SLIDE 5

Digital L

ibrary of

M

athematical

F

unctions

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.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.5/24

slide-6
SLIDE 6

Digital L

ibrary of

M

athematical

F

unctions

Choices: L

AT

EX, XML, MathML, OpenMath

L

A

T EX is obviously good choice for document source. . . . and obviously bad. Target: XML, MathML, and (eventually) OpenMath. I don’t need to tell you why. . .

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.6/24

slide-7
SLIDE 7

Digital L

ibrary of

M

athematical

F

unctions

Overview of talk

L

A

T Exml tool. Metadata: markup, annotations and connections, Data model of the Library Math: Parsing, synthesizing meaning.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.7/24

slide-8
SLIDE 8

Digital L

ibrary of

M

athematical

F

unctions

L

AT

Exml: Goals

L

A

T EX ⇒ XML Transformer General purpose. L

A

T EX-like DTD (or other?) Math to MathML, OpenMath Closely mimic T EX behaviour (& Quirks). Lossless. Extensible, Adaptable. Encourage higher-level markup, declarations. . . . and finish DLMF project!

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.8/24

slide-9
SLIDE 9

Digital L

ibrary of

M

athematical

F

unctions

L

AT

Exml: DLMF Approach

To make more feasible adopt Modestly Content-oriented L

A

T EX. Discourage Presentation Markup but don’t forbid. Encourage Content Markup, but keep typeable. Use document-specific information (internal/external) to resolve ambiguities.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.9/24

slide-10
SLIDE 10

Digital L

ibrary of

M

athematical

F

unctions

Metadata: Making Connections

Traditional L

A

T EX: \ref, \cite, \index. Leverage our mathematics markup. Additional markup: Annotations \note. Special metadata: Original handbook reference. Additional declarations.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.10/24

slide-11
SLIDE 11

Digital L

ibrary of

M

athematical

F

unctions

Metadata: Using Connections

Postprocessing XML documents. Disassemble XML into ‘database’. Note all connections. Not really that hard.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.11/24

slide-12
SLIDE 12

Digital L

ibrary of

M

athematical

F

unctions

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

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.12/24

slide-13
SLIDE 13

Digital L

ibrary of

M

athematical

F

unctions

L

AT

Exml Math Processing

T EX source L

A

T Exml

− − − − − → XML Let L

A

T Exml deal with T EX quirks. Acts as structure-preserving Lexer. Possibly augmented (math) Tokens: Name, Unicode, Font, . . . PartOfSpeech (ID, Function, Operator, . . . ) Type (eventually). preserve any given structure (eg. \frac, . . . )

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.13/24

slide-14
SLIDE 14

Digital L

ibrary of

M

athematical

F

unctions

Math: The Easy Stuff

a = b+c L

A

T Exml produces the tokens

<XMTok>a</XMTok> <XMTok>=</XMTok> <XMTok>b</XMTok> <XMTok>+</XMTok> <XMTok>c</XMTok>

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.14/24

slide-15
SLIDE 15

Digital L

ibrary of

M

athematical

F

unctions

L

AT

Exml Math Processing continued

XML L

A

T Exmlpost

− − − − − − − → 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.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.15/24

slide-16
SLIDE 16

Digital L

ibrary of

M

athematical

F

unctions

Math: The Easy Stuff continued

a = b+c L

A

T Exmlpost parses this into

<XMApp><XMTok>=</XMTok> <XMTok>a</XMTok> <XMApp><XMTok>+</XMTok> <XMTok>b</XMTok> <XMTok>c</XMTok> </XMApp> </XMApp>

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.16/24

slide-17
SLIDE 17

Digital L

ibrary of

M

athematical

F

unctions

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>

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.17/24

slide-18
SLIDE 18

Digital L

ibrary of

M

athematical

F

unctions

L

AT

Exml Math Processing future

XML’ L

A

T Exmlpost

− − − − − − − → XML” Extension of Dictionary to support some Type system. Type Analysis to further resolve ‘meaning’ = ⇒ OpenMath. Any advice?

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.18/24

slide-19
SLIDE 19

Digital L

ibrary of

M

athematical

F

unctions

Math: Higher Level Markup

Reduce ambiguities by introducing higher-level markup: \deriv[n]{f}{x} ⇒ dnf(x + y) dxn L

A

T EX code:

  • mitted

L

A

T Exml declaration:

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>");

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.19/24

slide-20
SLIDE 20

Digital L

ibrary of

M

athematical

F

unctions

Math: Higher Level Markup continued

L

A

T Exml constructs the tree:

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

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.20/24

slide-21
SLIDE 21

Digital L

ibrary of

M

athematical

F

unctions

Math: Special Functions

With appropriate T EX macrology: \HyperpFq{p}{q} ⇒ pFq Introduce notion of evaluating a function at: \HyperpFq{p}{q}@{a}{b}{z} ⇒ pFq (a; b; z)

  • r (alternative notation)

\HyperpFq{p}{q}@@{a}{b}{z} ⇒ pFq a b ; z

  • Palatable notation? Easier to type than

\sideset{_{p}}{_{q}}{\mathop{F}}\left({a \atop b};z\right)

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.21/24

slide-22
SLIDE 22

Digital L

ibrary of

M

athematical

F

unctions

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.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.22/24

slide-23
SLIDE 23

Digital L

ibrary of

M

athematical

F

unctions

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

A

T EX. For really meaningful math (eg. OpenMath) need type analysis need more info from authors Open ended. . .

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.23/24

slide-24
SLIDE 24

Digital L

ibrary of

M

athematical

F

unctions

Trends? (Or Wishes)

Continued development and support for MathML Ditto for OpenMath Convergience of Markup styles and DocTypes for Various L

A

T EX⇒ XML converters Richer L

A

T EX content markup in general (L

A

T EX3?) Project Authors able use different tools L

A

T EX, CAS, Thm.Provers, Word Processors.

10 Years of OpenMath, Helsinki, Finland; May 21–22, 2004 – p.24/24