bend-float64@0.1.2.0 checks
0x3623a86835ccb58d523b8156ac4abb92
bend-float64: IEEE 754 float64 in pure Bend, correctly rounded, with x86-64's bits (NaNs included).
bend-float64@0.1.2.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.1.0 2026-11-13
- bend-float64@0.1.0.0 2026-11-13
- Published
- 2026-11-13
- Size
- 172,656 bytes, 17 files
- License
- MIT-0 (no LICENSE file; the hub's default)
- Declarations
- 33 laws (33 proved), 557 defs, 36 types
Import
import bend-float64@0.1.2.0/LAWS.bend as LAWS import 0x3623a86835ccb58d523b8156ac4abb92/LAWS.bend as LAWS import bend-float64@0.1.2.0/MATH_LAWS.bend as MATH_LAWS import 0x3623a86835ccb58d523b8156ac4abb92/MATH_LAWS.bend as MATH_LAWS import bend-float64@0.1.2.0/MATH_PROOF.bend as MATH_PROOF import 0x3623a86835ccb58d523b8156ac4abb92/MATH_PROOF.bend as MATH_PROOF import bend-float64@0.1.2.0/POWER_LAWS.bend as POWER_LAWS import 0x3623a86835ccb58d523b8156ac4abb92/POWER_LAWS.bend as POWER_LAWS import bend-float64@0.1.2.0/POWER_PROOF.bend as POWER_PROOF import 0x3623a86835ccb58d523b8156ac4abb92/POWER_PROOF.bend as POWER_PROOF import bend-float64@0.1.2.0/PROOF.bend as PROOF import 0x3623a86835ccb58d523b8156ac4abb92/PROOF.bend as PROOF import bend-float64@0.1.2.0/TEXT_LAWS.bend as TEXT_LAWS import 0x3623a86835ccb58d523b8156ac4abb92/TEXT_LAWS.bend as TEXT_LAWS import bend-float64@0.1.2.0/TEXT_PROOF.bend as TEXT_PROOF import 0x3623a86835ccb58d523b8156ac4abb92/TEXT_PROOF.bend as TEXT_PROOF import bend-float64@0.1.2.0/ball.bend as Ball import 0x3623a86835ccb58d523b8156ac4abb92/ball.bend as Ball import bend-float64@0.1.2.0/big.bend as Big import 0x3623a86835ccb58d523b8156ac4abb92/big.bend as Big import bend-float64@0.1.2.0/consts.bend as Consts import 0x3623a86835ccb58d523b8156ac4abb92/consts.bend as Consts import bend-float64@0.1.2.0/float64.bend as Float64 import 0x3623a86835ccb58d523b8156ac4abb92/float64.bend as Float64 import bend-float64@0.1.2.0/math.bend as Math import 0x3623a86835ccb58d523b8156ac4abb92/math.bend as Math import bend-float64@0.1.2.0/package.bend as Package import 0x3623a86835ccb58d523b8156ac4abb92/package.bend as Package import bend-float64@0.1.2.0/text.bend as Text import 0x3623a86835ccb58d523b8156ac4abb92/text.bend as Text import bend-float64@0.1.2.0/wide.bend as Wide import 0x3623a86835ccb58d523b8156ac4abb92/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
- MATH_LAWS.bend 7 declarations, 7 laws — The laws of bend-float64's math functions (math.bend). Where a NaN goes is proved for every input. The special
- MATH_PROOF.bend 0 declarations — Proofs of MATH_LAWS.bend. A NaN law holds for every input because each function tests is_nan first: the
- POWER_LAWS.bend 2 declarations, 2 laws — The laws of bend-float64's power (math.bend), at literal inputs: C99's special-case table and the exact answers
- POWER_PROOF.bend 0 declarations — Proofs of POWER_LAWS.bend: literal instances the checker computes.
- 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.
- ball.bend 85 declarations — bend-float64's balls: arbitrary-precision numbers with a rigorous error bound, for the correctly rounded math
- big.bend 60 declarations — bend-float64's unbounded natural numbers, for exact decimal conversion: a list of U32 limbs, least significant first,
- consts.bend 8 declarations — bend-float64's constants for the math functions, as big integers: c = floor(value * 2^bits), so value lies in
- float64.bend 134 declarations — bend-float64: IEEE 754 binary64 ("double", NumPy's float64) in pure Bend, as two U32 words and integer arithmetic.
- math.bend 230 declarations — bend-float64's math functions, NumPy's float64 set, every result correctly rounded (to nearest, ties to even).
- 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 13,434 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.4 s |
| MATH_LAWS.bend | open laws/TODOs | 7 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: 7 TODOs found. The code is incomplete, and not a valid proof yet. | 0.6 s |
| MATH_PROOF.bend | checks | ALL PROOFS CHECK | 8.4 s |
| POWER_LAWS.bend | open laws/TODOs | 2 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: 2 TODOs found. The code is incomplete, and not a valid proof yet. | 0.5 s |
| POWER_PROOF.bend | checks | ALL PROOFS CHECK | 3.3 s |
| PROOF.bend | checks | ALL PROOFS CHECK | 14.0 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.4 s |
| TEXT_PROOF.bend | checks | ALL PROOFS CHECK | 13.1 s |
| ball.bend | checks | ALL PROOFS CHECK | 0.5 s |
| big.bend | checks | ALL PROOFS CHECK | 0.4 s |
| consts.bend | checks | ALL PROOFS CHECK | 0.3 s |
| float64.bend | checks | ALL PROOFS CHECK | 0.4 s |
| math.bend | checks | ALL PROOFS CHECK | 0.5 s |
| package.bend | checks | ALL PROOFS CHECK | 45.4 s |
| text.bend | checks | ALL PROOFS CHECK | 0.4 s |
| wide.bend | checks | ALL PROOFS CHECK | 0.3 s |