History log of /seL4-l4v-master/HOL4/src/integer/integer_wordLib.sml
Revision Date Author Comments
# d6167e99 01-Nov-2020 Michael Norrish <michael.norrish@data61.csiro.au>

Make global simpset state easier to recreate with "logged_update"

This entry-point records that a change to the global simpset has
happened within a piece of code (rather than a script). The change is
made (as before), but the change is also recorded so that it can be
recreated/applied to different base simpsets.


# d530f31c 21-Sep-2017 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Add conversion INT_WORD_GROUND_CONV.


# 38ed5889 08-Jul-2014 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Support building custom compsets that cover bitstringTheory and integer_wordTheory.


# d4471915 30-May-2012 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Add a new theorem about bit-vector overflow.

Includes an improvement to the Cases_on_i2w tactic.


# 4b685909 22-Jun-2011 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Added new definitions and theorems for various bit-vector "saturation"
operations.

These operations return maximal or minimal values instead of, e.g.,
overflowing (wrapping). For example:

|- signed_saturate_add 100w 50w = 127w: thm

Also added a new configuration option for printing word literals as 2's
complement values. For example:

> set_trace "word pp as 2's comp" 1;
> ``253w:word8``;
val it = ``-3w``: term

Be warned that this term is actually ``n2w 253``, it's just being printed as
``word_2comp (n2w 3)``.

This printing mode is useful when checking the veracity of machine arithmetic.
For example:

> EVAL ``signed_saturate_sub 226w 100w : word8``;
val it = |- signed_saturate_sub -30w 100w = -128w: thm


# 15c8392e 12-Mar-2011 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Missing boolLib.


# f59b5956 11-Mar-2011 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Assorted extra theorems and tools. Added a new constant word_abs, which gives
the absolute value of a bit-vector.


# 14a281b7 02-Feb-2010 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Fix following change to wordsLib.WORD_DP.


# 3825baea 16-Jan-2008 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Adds integer_wordLib.WORD_DECIDE (which is based on COOPER_PROVE). This
provides a faster version of wordsLib.WORD_DECIDE.