Solving Natural Language Math Problems
Takuya Matsuzaki
(Nagoya University)
Noriko H. Arai
(National Institute of Informatics)
Math Problems Takuya Matsuzaki Noriko H. Arai (Nagoya University) - - PowerPoint PPT Presentation
Solving Natural Language Math Problems Takuya Matsuzaki Noriko H. Arai (Nagoya University) (National Institute of Informatics) Solving NL Math why? It is the first and the last goal of symbolic approach to language understanding (LU)
(Nagoya University)
(National Institute of Informatics)
Problem Language Understanding Logical Form in a HOL CA & ATP Answer Logical Form in Local Theories
Let π be the trajectory of π’ + 2, π’ + 2, π’ for π’ ranging over β. π 0, 0, 0 , π΅ 2, 1, 0 , and πΆ 1, 2, 0 are on a sphere, π, centered at π· π, π, π . Determine the condition on π, π, π for which π intersects with π.
3
Formula Rewriting
Word type Example Proper noun βJohnβ β (ππ, john) Common noun βcatβ β (π, Ξ»x.cat(x)) Intransitive verb βrunsβ β (S β ππ, Ξ»x.run(x)) Transitive verb βlovesβ β (S β ππ/ππ, Ξ»y.Ξ»x.love(x,y)) Indefinite article βaβ β (S/(S β ππ)/π, Ξ»N.Ξ»P.βx(Nxβ§Px)) Quantifier βeveryβ β (S/(S β ππ)/π, Ξ»N.Ξ»P.βx(Nxο Px))
ππ : john
S β ππ/ππ: Ξ»x.Ξ»y.love(y,x) S β ππ β (S β ππ/ππ)/π : Ξ»N.Ξ»P.Ξ»y.βx(Nxβ§Pxy)
π : Ξ»x.cat(x)
S β ππ β (S β ππ/ππ) : Ξ»P.Ξ»y.βx(cat(x)β§Pxy) S β ππ : Ξ»y.βx(cat(x)β§love(y,x)) S : βx(cat(x)β§love(john,x))
Forward application X / Y : f Y : y X : f y
Backward application Y : y X βY : f X : f y
Forward composition X / Y : f Y / Z : g X / Z : Ξ»z.f (gz)
etc.
ππ : john
S β ππ/ππ: Ξ»x.Ξ»y.love(y,x) S β ππ β (S β ππ/ππ)/π : Ξ»N.Ξ»P.Ξ»y.βx(Nxβ§Pxy)
π : Ξ»x.cat(x)
S β ππ β (S β ππ/ππ) : Ξ»P.Ξ»y.βx(cat(x)β§Pxy) S β ππ : Ξ»y.βx(cat(x)β§love(y,x)) S : βx(cat(x)β§love(john,x))
Forward application X / Y : f Y : y X : f y
Backward application Y : y X βY : f X : f y
Forward composition X / Y : f Y / Z : g X / Z : Ξ»z.f (gz)
etc.
distance ππππππ/ππππ’π₯π,(πππ’,πππ’) : Ξ»p.dist(p) between ππππ’π₯π,(π½,πΎ)/ππ(π½,πΎ) : id πππππ’: P P ππ π½,πΎ β ππ
π½/πππΎ:
Ξ»y.Ξ»x.(x,y) and ππ(πππ’,πππ’) : (P,Q) ππππ’π₯π,(πππ’,πππ’): (P,Q) ππππππ: dist(P,Q) πππππ’: Q Q
Let D be a point inside acute triangle ABC such that β ADB = β ACB + Ο/2 and ACγ»BD = AD γ» BC Calculate the ratio (ABγ»CD)/(ACγ»BD). (IMO 1993 Problem 2)
(Find (x) (exists (A B C D) (&& (is-acute-triangle A B C) (point-inside-of D (triangle A B C)) (= (rad-of-angle (angle A D B)) (+ (rad-of-angle (angle A C B)) (/ (Pi) 2))) (= (* (distance A C) (distance B D)) (* (distance A D) (distance B D))) (= x (/ (* (distance A B) (distance C D)) (* (distance A C) (distance B D))))))))
Pre-univ math benchmark TPTP-THF Ex Univ IMO All # Formulas 2 2 1 1 10 # Atoms 65 95 65 72 88 Avg atoms/Fml 38 54 56 48 6 # Symbols 16 19 12 15 9 # Variables 9 13 8 9 19 Ξ» 3 3 1 2 2 β 4 9 β 4 6 1 4 2 # Connectives 55 78 58 61 52
Ex