bend-float64@0.1.1.0 checks
0xc79d53e63a861f09e47e3c6bed94db51
bend-float64: IEEE 754 float64 in pure Bend, correctly rounded, with x86-64's bits (NaNs included).
bend-float64@0.1.1.0 by tjpa
Other versions (8)
- bend-float64@0.1.8.0 2026-11-13 latest
- bend-float64@0.1.7.0 2026-11-13
- bend-float64@0.1.6.0 2026-11-13
- bend-float64@0.1.5.0 2026-11-13
- bend-float64@0.1.4.0 2026-11-13
- bend-float64@0.1.3.0 2026-11-13
- bend-float64@0.1.2.0 2026-11-13
- bend-float64@0.1.0.0 2026-11-13
- Published
- 2026-11-13
- Size
- 97,436 bytes, 10 files
- License
- MIT-0 (no LICENSE file; the hub's default)
- Declarations
- 24 laws (24 proved), 297 defs, 22 types
Import
import bend-float64@0.1.1.0/LAWS.bend as LAWS import 0xc79d53e63a861f09e47e3c6bed94db51/LAWS.bend as LAWS import bend-float64@0.1.1.0/PROOF.bend as PROOF import 0xc79d53e63a861f09e47e3c6bed94db51/PROOF.bend as PROOF import bend-float64@0.1.1.0/TEXT_LAWS.bend as TEXT_LAWS import 0xc79d53e63a861f09e47e3c6bed94db51/TEXT_LAWS.bend as TEXT_LAWS import bend-float64@0.1.1.0/TEXT_PROOF.bend as TEXT_PROOF import 0xc79d53e63a861f09e47e3c6bed94db51/TEXT_PROOF.bend as TEXT_PROOF import bend-float64@0.1.1.0/big.bend as Big import 0xc79d53e63a861f09e47e3c6bed94db51/big.bend as Big import bend-float64@0.1.1.0/float64.bend as Float64 import 0xc79d53e63a861f09e47e3c6bed94db51/float64.bend as Float64 import bend-float64@0.1.1.0/package.bend as Package import 0xc79d53e63a861f09e47e3c6bed94db51/package.bend as Package import bend-float64@0.1.1.0/text.bend as Text import 0xc79d53e63a861f09e47e3c6bed94db51/text.bend as Text import bend-float64@0.1.1.0/wide.bend as Wide import 0xc79d53e63a861f09e47e3c6bed94db51/wide.bend as Wide
Modules
- LAWS.bend 20 declarations, 20 laws — The laws of bend-float64. Where a NaN goes is proved for every input (the decision: x86's bits exactly). Correct
- PROOF.bend 31 declarations — Proofs of LAWS.bend. The NaN laws hold for every input: each operation tests is_nan before anything else, so the
- TEXT_LAWS.bend 4 declarations, 4 laws — The laws of bend-float64's text (text.bend), at literal inputs: the checker computes them (big-integer arithmetic
- TEXT_PROOF.bend 0 declarations — Proofs of TEXT_LAWS.bend: literal instances the checker computes.
- big.bend 37 declarations — bend-float64's unbounded natural numbers, for exact decimal conversion: a list of U32 limbs, least significant first,
- float64.bend 134 declarations — bend-float64: IEEE 754 binary64 ("double", NumPy's float64) in pure Bend, as two U32 words and integer arithmetic.
- package.bend 0 declarations — bend-float64: IEEE 754 float64 in pure Bend, correctly rounded, with x86-64's bits (NaNs included).
- text.bend 119 declarations — bend-float64's text: show prints the shortest decimal that reads back to the same float64, laid out as Python's
- wide.bend 46 declarations — bend-float64's integers wider than a word: unsigned 64-bit (two U32 words, W64) and 128-bit (two W64, W128)
Other files
- README.md 8,597 bytes
Dependencies
No imports from other hub packages.
Dependents
No package in this build imports it.
Status on bend 2.0.40
| File | Status | Checker says | Time |
|---|---|---|---|
| LAWS.bend | open laws/TODOs | 20 TODOs found. Checked alone, a law without a def is a TODO; all of them are proved in files that check, so the package counts this file as checks. outputSOME PROOFS FAIL Error: 20 TODOs found. The code is incomplete, and not a valid proof yet. | 0.5 s |
| PROOF.bend | checks | ALL PROOFS CHECK | 13.8 s |
| TEXT_LAWS.bend | open laws/TODOs | 4 TODOs found. Checked alone, a law without a def is a TODO; all of them are proved in files that check, so the package counts this file as checks. outputSOME PROOFS FAIL Error: 4 TODOs found. The code is incomplete, and not a valid proof yet. | 0.6 s |
| TEXT_PROOF.bend | checks | ALL PROOFS CHECK | 10.0 s |
| big.bend | checks | ALL PROOFS CHECK | 0.4 s |
| float64.bend | checks | ALL PROOFS CHECK | 0.4 s |
| package.bend | checks | ALL PROOFS CHECK | 32.8 s |
| text.bend | checks | ALL PROOFS CHECK | 0.4 s |
| wide.bend | checks | ALL PROOFS CHECK | 0.5 s |