bend-float64@0.1.4.0 checks
0xb1c54bc88a880cd3ca7dc331b6852c35
bend-float64: IEEE 754 float64 in pure Bend, correctly rounded, with x86-64's bits (NaNs included).
bend-float64@0.1.4.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.3.0 2026-11-13
- bend-float64@0.1.2.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
- 294,595 bytes, 23 files
- License
- MIT-0 (no LICENSE file; the hub's default)
- Declarations
- 36 laws (36 proved), 1161 defs, 44 types
Import
import bend-float64@0.1.4.0/FORMAT_LAWS.bend as FORMAT_LAWS import 0xb1c54bc88a880cd3ca7dc331b6852c35/FORMAT_LAWS.bend as FORMAT_LAWS import bend-float64@0.1.4.0/FORMAT_PROOF.bend as FORMAT_PROOF import 0xb1c54bc88a880cd3ca7dc331b6852c35/FORMAT_PROOF.bend as FORMAT_PROOF import bend-float64@0.1.4.0/LAWS.bend as LAWS import 0xb1c54bc88a880cd3ca7dc331b6852c35/LAWS.bend as LAWS import bend-float64@0.1.4.0/MATH_LAWS.bend as MATH_LAWS import 0xb1c54bc88a880cd3ca7dc331b6852c35/MATH_LAWS.bend as MATH_LAWS import bend-float64@0.1.4.0/MATH_PROOF.bend as MATH_PROOF import 0xb1c54bc88a880cd3ca7dc331b6852c35/MATH_PROOF.bend as MATH_PROOF import bend-float64@0.1.4.0/POWER_LAWS.bend as POWER_LAWS import 0xb1c54bc88a880cd3ca7dc331b6852c35/POWER_LAWS.bend as POWER_LAWS import bend-float64@0.1.4.0/POWER_PROOF.bend as POWER_PROOF import 0xb1c54bc88a880cd3ca7dc331b6852c35/POWER_PROOF.bend as POWER_PROOF import bend-float64@0.1.4.0/PROOF.bend as PROOF import 0xb1c54bc88a880cd3ca7dc331b6852c35/PROOF.bend as PROOF import bend-float64@0.1.4.0/TEXT_LAWS.bend as TEXT_LAWS import 0xb1c54bc88a880cd3ca7dc331b6852c35/TEXT_LAWS.bend as TEXT_LAWS import bend-float64@0.1.4.0/TEXT_PROOF.bend as TEXT_PROOF import 0xb1c54bc88a880cd3ca7dc331b6852c35/TEXT_PROOF.bend as TEXT_PROOF import bend-float64@0.1.4.0/ball.bend as Ball import 0xb1c54bc88a880cd3ca7dc331b6852c35/ball.bend as Ball import bend-float64@0.1.4.0/big.bend as Big import 0xb1c54bc88a880cd3ca7dc331b6852c35/big.bend as Big import bend-float64@0.1.4.0/consts.bend as Consts import 0xb1c54bc88a880cd3ca7dc331b6852c35/consts.bend as Consts import bend-float64@0.1.4.0/fast.bend as Fast import 0xb1c54bc88a880cd3ca7dc331b6852c35/fast.bend as Fast import bend-float64@0.1.4.0/fb.bend as Fb import 0xb1c54bc88a880cd3ca7dc331b6852c35/fb.bend as Fb import bend-float64@0.1.4.0/fbconsts.bend as Fbconsts import 0xb1c54bc88a880cd3ca7dc331b6852c35/fbconsts.bend as Fbconsts import bend-float64@0.1.4.0/float64.bend as Float64 import 0xb1c54bc88a880cd3ca7dc331b6852c35/float64.bend as Float64 import bend-float64@0.1.4.0/format.bend as Format import 0xb1c54bc88a880cd3ca7dc331b6852c35/format.bend as Format import bend-float64@0.1.4.0/math.bend as Math import 0xb1c54bc88a880cd3ca7dc331b6852c35/math.bend as Math import bend-float64@0.1.4.0/package.bend as Package import 0xb1c54bc88a880cd3ca7dc331b6852c35/package.bend as Package import bend-float64@0.1.4.0/text.bend as Text import 0xb1c54bc88a880cd3ca7dc331b6852c35/text.bend as Text import bend-float64@0.1.4.0/wide.bend as Wide import 0xb1c54bc88a880cd3ca7dc331b6852c35/wide.bend as Wide
Modules
- FORMAT_LAWS.bend 3 declarations, 3 laws — The laws of bend-float64's fixed-digit formats (format.bend), at literal inputs; expected strings are Python's.
- FORMAT_PROOF.bend 0 declarations — Proofs of FORMAT_LAWS.bend: literal instances the checker computes.
- 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
- fast.bend 33 declarations — bend-float64's fast path for the math functions: the same evaluations as math.bend's, on 128-bit fast balls
- fb.bend 61 declarations — bend-float64's fast balls: (-1)^neg * m * 2^e with |true value - that| <= err * 2^e, m a 128-bit integer with
- fbconsts.bend 468 declarations — bend-float64's fast-path constants, tables and polynomials. Generated by test/gen_fast.py (mpmath); do not edit.
- float64.bend 134 declarations — bend-float64: IEEE 754 binary64 ("double", NumPy's float64) in pure Bend, as two U32 words and integer arithmetic.
- format.bend 49 declarations — bend-float64's fixed-digit formatting, as Python's % operator does it: fixed(x, n) is '%.nf', sci(x, n) is
- math.bend 236 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 58 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 17,709 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 |
|---|---|---|---|
| FORMAT_LAWS.bend | open laws/TODOs | 3 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: 3 TODOs found. The code is incomplete, and not a valid proof yet. | 0.4 s |
| FORMAT_PROOF.bend | checks | ALL PROOFS CHECK | 13.4 s |
| 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 |
| 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.5 s |
| MATH_PROOF.bend | checks | ALL PROOFS CHECK | 7.9 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.4 s |
| PROOF.bend | checks | ALL PROOFS CHECK | 14.2 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 | 10.7 s |
| ball.bend | checks | ALL PROOFS CHECK | 0.5 s |
| big.bend | checks | ALL PROOFS CHECK | 0.3 s |
| consts.bend | checks | ALL PROOFS CHECK | 0.4 s |
| fast.bend | checks | ALL PROOFS CHECK | 0.5 s |
| fb.bend | checks | ALL PROOFS CHECK | 0.4 s |
| fbconsts.bend | checks | ALL PROOFS CHECK | 0.4 s |
| float64.bend | checks | ALL PROOFS CHECK | 0.3 s |
| format.bend | checks | ALL PROOFS CHECK | 0.4 s |
| math.bend | checks | ALL PROOFS CHECK | 0.5 s |
| package.bend | checks | ALL PROOFS CHECK | 55.9 s |
| text.bend | checks | ALL PROOFS CHECK | 0.4 s |
| wide.bend | checks | ALL PROOFS CHECK | 0.3 s |