Cultural advice

The Australian National University acknowledges, celebrates and pays our respects to the Ngunnawal and Ngambri people of the Canberra region and to all First Nations Australians on whose traditional lands we meet and work, and whose cultures are among the oldest continuing cultures in human history.

Aboriginal and Torres Strait Islander peoples are advised that ANU Library collections may include images, names, voices, and other representations of deceased persons.

Material in the collection may contain terms, language or views that reflect the period in which the item was created and may be considered inappropriate today.

A formalisation of the theory of context-free languages in higher order logic

dc.contributor.authorBarthwal, Aditi
dc.date.accessioned2015-11-06T05:25:10Z
dc.date.available2015-11-06T05:25:10Z
dc.date.issued2010
dc.description.abstractWe present a formalisation of the theory of context-free languages using the HOL4 theorem prover. The formalisation of this theory is not only interesting in its own right, but also gives insight into the kind of manipulations required to port a pen-and-paper proof to a theorem prover. The mechanisation proves to be an ideal case study of how intuitive textbook proofs can blow up in size and complexity, and how details from the textbook can change during formalisation. The mechanised theory provides the groundwork for our subsequent results about SLR parser generation. The theorems, even though well-established in the field, are interesting for the way they have to be “reproven” in a theorem prover. Proofs must be recast to be concrete enough for the prover: patching deductive gaps which are relatively easily grasped in a text proof, but beyond the automatic capabilities of contemporary tools. The library of proofs, techniques and notations developed here provides a basis from which further work on verified language theory can proceed at a quickened pace. We have mechanised classical results involving context-free grammars and pushdown automata. These include but are not limited to the equivalence between those two formalisms, the normalisation of CFGs, and the pumping lemma for proving a language is not context-free. As an application of this theory, we describe the verification of SLR parsing. Among the various properties proven about the parser we show, in particular, soundness: if the parser results in a parse tree on a given input, then the parse tree is valid with respect to the grammar, and the leaves of the parse tree match the input; and completeness: if the input belongs in the language of the grammar then the parser constructs the correct parse tree for the input with respect to the grammar. In addition, we develop a version of the algorithm that is executable by automatic translation from HOL to SML. This alternative version of the algorithm requires some interesting termination proofs. We conclude with a discussion of the issues we faced while mechanising pen-and-paper proofs. Carefully written formal proofs are regarded as rigorous for the audience they target. But when such proofs are implemented in a theorem prover, the level of detail required increases dramatically. We provide a discussion and a broad categorisation of the causes that give rise to this.en_AU
dc.identifier.otherb2881860x
dc.identifier.urihttp://hdl.handle.net/1885/16399
dc.language.isoenen_AU
dc.subjectHOLen_AU
dc.subjectHOL4en_AU
dc.subjectformalisationen_AU
dc.subjectcontext-free languagesen_AU
dc.subjecttheorem proveren_AU
dc.subjectcontext-free grammaren_AU
dc.subjectmechanisationen_AU
dc.subjectpumping lemmaen_AU
dc.subjectSLR parseren_AU
dc.subjectpushdown automataen_AU
dc.titleA formalisation of the theory of context-free languages in higher order logicen_AU
dc.typeThesis (PhD)en_AU
dcterms.valid2010en_AU
local.contributor.affiliationCollege of Engineering & Computer Science, The Australian National Universityen_AU
local.contributor.supervisorNorrish, Michael
local.identifier.doi10.25911/5d6e4c3c4b543
local.mintdoimint
local.type.degreeDoctor of Philosophy (PhD)en_AU

Downloads

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Barthwal Thesis 2010.pdf
Size:
863.51 KB
Format:
Adobe Portable Document Format
Description:

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
884 B
Format:
Item-specific license agreed upon to submission
Description: