| 1 |
FORMAL THEORY OF IEEE FLOATING-POINT NUMBERS |
| 2 |
|
| 3 |
(c) Charlie Jacobsen, 2014 |
| 4 |
|
| 5 |
University of Utah |
| 6 |
|
| 7 |
Distributed under the same license as HOL Light |
| 8 |
|
| 9 |
Also available at https://github.com/skoobit/formal-ieee |
| 10 |
|
| 11 |
Overview |
| 12 |
-------- |
| 13 |
|
| 14 |
This repository contains a formalization of IEEE floating point numbers. |
| 15 |
First, we formalize fixed point numbers so we can model IEEE subnormal |
| 16 |
numbers (in fixed.hl and fixed_thms.hl). Next, we formalize |
| 17 |
`generalized' floating point numbers to model IEEE normal numbers |
| 18 |
(in float.hl and float_thms.hl; Cf. John Harrison's work and the Coq |
| 19 |
formalization). Finally, we piece the two formalizations together to |
| 20 |
formalize IEEE (ieee.hl and ieee_thms.hl). |
| 21 |
|
| 22 |
In the process, we needed a formalization and basic theorems for raising |
| 23 |
real numbers to an integer power; this is in common.hl. |
| 24 |
|
| 25 |
IEEE floating point numbers are treated as a subset of the real numbers. |
| 26 |
We can model mostly everything except signed zero and NaNs. |
| 27 |
|
| 28 |
Usage |
| 29 |
----- |
| 30 |
|
| 31 |
To load the theorems and formalizations, load IEEE/make.ml after loading |
| 32 |
base HOL Light, e.g. |
| 33 |
|
| 34 |
loadt "IEEE/make.ml";; |