proof checker.pdf

16
The Teaching Tool : A Proof-Checker for Gries and Schneider’s “Logical Approach to Discrete Math” Wolfram Kahl McMaster University, Hamilton, Ontario, Canada [email protected] Abstract.  Stude nts followin g a rst-y ea r course based on Gries and Schneider’s LADM textbook had frequently been asking: “How can I know whether my solution is good?” We now report on the development of a proof-checker designed to answer exactly that question, while intentionally not helping to nd the so luti on s in the rst pl ace. provi de s detailed fe edback to L A T E X- formatted calculational proofs, and thus helps students to develop con- dence in their own skills in “rigorous mathematical writing”. Gries and Schneider’s book emphasises rigorous development of math- ematical results, while striking one particular compromise between full formality and custo mary, more informal, mathematical practises, and thus teaches aspects of both. This is one source of several unusual re- quirements for a mechanised proof-chec ker; other interesting aspects arise from details of their notational conventions. 1 Introducti on When teaching a rst-year course on Logic and Discrete Mathematics for Com- puter Science follo wing Gries and Schneide r’s textbook “A Logical Approach to Discrete Math”(“LADM”for short) [GS93] for the rst time, I obtained feedback from students feeling that the book did not contain suciently many worked ex- amples, that insucient solutions for exercises were available 1 , and, especially, that they felt at a loss since they did not see any way of knowing how good their answers were before the marked assignment was returned to them. The following yea r (201 1) , I therefore st ar ted to implemen t , a tool intended mainly as a proof-checker for the calculational proof style taught by LADM. For the time be ing, the usage paradigm of is the same as that of Spivey’s Z type-checker f UZZ: also operates on L A T E X source by parsing and analysi ng the conten ts of specic f ormal en vironmen ts, and providing feedback on those. Using L A T E X as input syntax has the advantage that students learn a general-purpose skill, with only very little formalism-specic overhead. 1 An “Instructor’s Manual” contai ning solutions exists, but is made available explicitly only to instr uctors, with the provi so “that answers to selected exerci ses may be used in lectures or distributed to students as answers to homeworks or tests”.

Upload: daniel-lee-eisenberg-jacobs

Post on 04-Jun-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 1/15

Page 2: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 2/15

Page 3: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 3/15

Page 4: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 4/15

Page 5: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 5/15

Page 6: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 6/15

Page 7: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 7/15

Page 8: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 8/15

Page 9: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 9/15

Page 10: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 10/15

Page 11: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 11/15

Page 12: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 12/15

Page 13: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 13/15

Page 14: proof checker.pdf

8/14/2019 proof checker.pdf

http://slidepdf.com/reader/full/proof-checkerpdf 14/15