Abstract
The bit vector is one of the fundamental data objects in hardware specification and verification. The modelling of bit vectors is a key to the success of a hardware verification project. This paper describes a pragmatic approach to modelling bit vectors in higher-order logic and an implementation as a system library in the HOL theorem prover. In this approach, bit vectors are represented using a polymorphic type. Restricted quantifications are used to simulate dependent types to model the sizes of the vectors. The library consists of many theorems asserting the basic properties of the bit vectors and some useful tools for reasoning about them. Examples showing the effective use of the library are described.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
R. J. Boulton. A HOL semantics for a subset of ELLA. Technical Report 254, University of Cambridge Computer Laboratory, 1992.
A. J. Camilleri. Executing behavioural definitions in higher order logic. Technical Report 140, University of Cambridge Computer Laboratory, 1988.
A. Cohn. A proof of correctness of the VIPER microprocessor: the first level. Technical Report 104, University of Cambridge Computer Laboratory, January 1988.
A. Cohn. A proof of correctness of the VIPER microprocessor: the second level. Technical Report 134, University of Cambridge Computer Laboratory, May 1990.
A. Cohn and M. J. C. Gordon. A machanized proof of correctness of a simple counter. Technical Report 94, University of Cambridge Computer Laborartory, July 1986.
M. J. C. Gordon. Hardware verification by formal proof. Technical Report 74, University of Cambridge Computer Laborartory, 1985.
Michael. C. Gordon. Why higher-order logic is a good formalism for specifying and verifying hardware. In G. J. Milne and P. A. Subrahmanyan, editors, Formal Aspects of VLSI Design, pages 153–178. Springer-Verlag, 1986.
Brian T. Graham. The SECD Microprocessor — a Verification Case Study. Kluwer Academic Publishers, 1992.
J. Joyce, G. Birtwistle, and M. J. C. Gordon. Proving a computer correct in higher order logic. Technical Report 100, University of Cambridge Computer Laborartory, December 1986.
J. J. Joyce. Formal specification and verification of microprocessor systems. In S. Winter and H. Schumny, editors, EUROMICRO 88:Proceedings of the 14th Symposium on Microprocessing and Microprogramming. Horth-Holland, 1988.
T. F. Melham. Automating recursive type definition in higher-order logic. In Graham Birtwistle and P. A. Subrahmanyam, editors, Current Trends in Hardware Verification and Automated Theorem Proving, pages 341–386. Springer-Verlag, 1989.
T. F. Melham. Formalizing abstraction mechanisms for hardware verification in higher order logic. Technical Report 201, University of Cambridge Computer Laboratory, 1990.
T. F. Melham. The HOL logic extended with quantification over type variables. In L. J. M. Claesen and M. J. C. Gordon, editors, Higher Order Logic Theorem Proving and its Applications. Horth-Holland, 1993.
W. Wong. Formal verification of VIPER's ALU. Technical Report 300, University of Cambridge Computer Laboratory, University of Cambridge Computer laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, ENGLAND, May 1993.
W. Wong. The HOL res-quan Library. Computer Laboratory, University of Cambridge, 1993.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Wong, W. (1994). Modelling bit vectors in HOL: The word library. In: Joyce, J.J., Seger, CJ.H. (eds) Higher Order Logic Theorem Proving and Its Applications. HUG 1993. Lecture Notes in Computer Science, vol 780. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-57826-9_149
Download citation
DOI: https://doi.org/10.1007/3-540-57826-9_149
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-57826-0
Online ISBN: 978-3-540-48346-5
eBook Packages: Springer Book Archive