skip to main content
article

Isabelle Theories for Machine Words

Published: 01 September 2009 Publication History

Abstract

We describe a collection of Isabelle theories which facilitate reasoning about machine words. For each possible word length, the words of that length form a type, and most of our work consists of generic theorems which can be applied to any such type. We develop the relationships between these words and integers (signed and unsigned), lists of booleans and functions from index to value, noting how these relationships are similar to those between an abstract type and its representing set. We discuss how we used Isabelle's bin type, before and after it was changed from a datatype to an abstract type, and the techniques we used to retain, as nearly as possible, the convenience of primitive recursive definitions. We describe other useful techniques, such as encoding the word length in the type.

References

[1]
Akbarpour, Behzad, Tahar, Sofiène and Dekdouk, Abdelkader, Formalization of Fixed-Point Arithmetic in HOL. Formal Methods in System Design. v27. 173-200.
[2]
Ricky W Butler, Paul S Miner, Mandayam K Srivas, Dave A Greve, Steven P Miller. A New Bitvectors Library For PVS. NASA, Langley, USA, 1997
[3]
http://users.rsise.anu.edu.au/~jeremy/isabelle/l4/
[4]
Anthony Fox. A HOL Specification of the ARM Instruction Set Architecture. Computer Laboratory, University of Cambridge, 2001
[5]
John Harrison. A HOL Theory of Euclidean Space. In Theorem Proving in Higher Order Logics, (TPHOLs 2005). Lecture Notes in Computer Science 3603, 114--129
[6]
http://isabelle.in.tum.de/
[7]
http://ertos.nicta.com.au/research/l4.verified/
[8]
Wai Wong. Modelling Bit Vectors in HOL: the word library. In Higher Order Logic Theorem Proving and its Applications (HUG '93), Lecture Notes in Computer Science 780, 371--384

Cited By

View all
  1. Isabelle Theories for Machine Words

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image Electronic Notes in Theoretical Computer Science (ENTCS)
    Electronic Notes in Theoretical Computer Science (ENTCS)  Volume 250, Issue 1
    September, 2009
    183 pages

    Publisher

    Elsevier Science Publishers B. V.

    Netherlands

    Publication History

    Published: 01 September 2009

    Author Tags

    1. machine words
    2. mechanised reasoning
    3. twos-complement

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 27 Jan 2025

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media