Int-format-16tcnt
The (unsigned and signed) int format defined by
16 bits with increasing values,
two's complement,
and no trap representations.
- Signature
(int-format-16tcnt) → format
- Returns
- format — Type (integer-formatp format).
This is the simplest and smallest format for int integers,
with two's complement being the most common signed format.
There cannot be any padding bits,
otherwise the value bits would not suffice to cover
the required ranges of values.
With no padding bits, there is only one possible trap representation,
namely the one with sign bit 1 and all value bits 0,
but the simplest and most common choice is that it is a valid value instead
(the smallest signed value representable in the type).
Definitions and Theorems
Function: int-format-16tcnt
(defun int-format-16tcnt nil
(declare (xargs :guard t))
(let ((__function__ 'int-format-16tcnt))
(declare (ignorable __function__))
(integer-format-inc-sign-tcnpnt 16)))
Theorem: integer-formatp-of-int-format-16tcnt
(defthm integer-formatp-of-int-format-16tcnt
(b* ((format (int-format-16tcnt)))
(integer-formatp format))
:rule-classes :rewrite)
Theorem: integer-format-int-wfp-of-int-format-16tcnt
(defthm integer-format-int-wfp-of-int-format-16tcnt
(integer-format-int-wfp (int-format-16tcnt)
(uchar-format-8)
(short-format-16tcnt)))