bend-float64@0.1.8.0 checks
0x72aa159312099184b98e33378b057a0a
bend-float64: IEEE 754 float64 in pure Bend, correctly rounded, with x86-64's bits (NaNs included).
bend-float64@0.1.8.0 by tjpa
Earlier versions (8)
- 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.1.0 2026-11-13
- bend-float64@0.1.0.0 2026-11-13
- Published
- 2026-11-13
- Size
- 396,056 bytes, 36 files
- License
- MIT-0 (no LICENSE file; the hub's default)
- Declarations
- 51 laws (51 proved), 1560 defs, 54 types
Import
import bend-float64@0.1.8.0/FORMAT_LAWS.bend as FORMAT_LAWS import 0x72aa159312099184b98e33378b057a0a/FORMAT_LAWS.bend as FORMAT_LAWS import bend-float64@0.1.8.0/FORMAT_PROOF.bend as FORMAT_PROOF import 0x72aa159312099184b98e33378b057a0a/FORMAT_PROOF.bend as FORMAT_PROOF import bend-float64@0.1.8.0/INT64_LAWS.bend as INT64_LAWS import 0x72aa159312099184b98e33378b057a0a/INT64_LAWS.bend as INT64_LAWS import bend-float64@0.1.8.0/INT64_PROOF.bend as INT64_PROOF import 0x72aa159312099184b98e33378b057a0a/INT64_PROOF.bend as INT64_PROOF import bend-float64@0.1.8.0/LAWS.bend as LAWS import 0x72aa159312099184b98e33378b057a0a/LAWS.bend as LAWS import bend-float64@0.1.8.0/MATH_LAWS.bend as MATH_LAWS import 0x72aa159312099184b98e33378b057a0a/MATH_LAWS.bend as MATH_LAWS import bend-float64@0.1.8.0/MATH_PROOF.bend as MATH_PROOF import 0x72aa159312099184b98e33378b057a0a/MATH_PROOF.bend as MATH_PROOF import bend-float64@0.1.8.0/MODE_LAWS.bend as MODE_LAWS import 0x72aa159312099184b98e33378b057a0a/MODE_LAWS.bend as MODE_LAWS import bend-float64@0.1.8.0/MODE_MATH_LAWS.bend as MODE_MATH_LAWS import 0x72aa159312099184b98e33378b057a0a/MODE_MATH_LAWS.bend as MODE_MATH_LAWS import bend-float64@0.1.8.0/MODE_MATH_PROOF.bend as MODE_MATH_PROOF import 0x72aa159312099184b98e33378b057a0a/MODE_MATH_PROOF.bend as MODE_MATH_PROOF import bend-float64@0.1.8.0/MODE_PROOF.bend as MODE_PROOF import 0x72aa159312099184b98e33378b057a0a/MODE_PROOF.bend as MODE_PROOF import bend-float64@0.1.8.0/POWER_LAWS.bend as POWER_LAWS import 0x72aa159312099184b98e33378b057a0a/POWER_LAWS.bend as POWER_LAWS import bend-float64@0.1.8.0/POWER_PROOF.bend as POWER_PROOF import 0x72aa159312099184b98e33378b057a0a/POWER_PROOF.bend as POWER_PROOF import bend-float64@0.1.8.0/PROOF.bend as PROOF import 0x72aa159312099184b98e33378b057a0a/PROOF.bend as PROOF import bend-float64@0.1.8.0/SPEC_LAWS.bend as SPEC_LAWS import 0x72aa159312099184b98e33378b057a0a/SPEC_LAWS.bend as SPEC_LAWS import bend-float64@0.1.8.0/SPEC_PROOF.bend as SPEC_PROOF import 0x72aa159312099184b98e33378b057a0a/SPEC_PROOF.bend as SPEC_PROOF import bend-float64@0.1.8.0/SQRT_LAWS.bend as SQRT_LAWS import 0x72aa159312099184b98e33378b057a0a/SQRT_LAWS.bend as SQRT_LAWS import bend-float64@0.1.8.0/SQRT_PROOF.bend as SQRT_PROOF import 0x72aa159312099184b98e33378b057a0a/SQRT_PROOF.bend as SQRT_PROOF import bend-float64@0.1.8.0/TEXT_LAWS.bend as TEXT_LAWS import 0x72aa159312099184b98e33378b057a0a/TEXT_LAWS.bend as TEXT_LAWS import bend-float64@0.1.8.0/TEXT_PROOF.bend as TEXT_PROOF import 0x72aa159312099184b98e33378b057a0a/TEXT_PROOF.bend as TEXT_PROOF import bend-float64@0.1.8.0/TRIG_LAWS.bend as TRIG_LAWS import 0x72aa159312099184b98e33378b057a0a/TRIG_LAWS.bend as TRIG_LAWS import bend-float64@0.1.8.0/TRIG_PROOF.bend as TRIG_PROOF import 0x72aa159312099184b98e33378b057a0a/TRIG_PROOF.bend as TRIG_PROOF import bend-float64@0.1.8.0/ball.bend as Ball import 0x72aa159312099184b98e33378b057a0a/ball.bend as Ball import bend-float64@0.1.8.0/big.bend as Big import 0x72aa159312099184b98e33378b057a0a/big.bend as Big import bend-float64@0.1.8.0/consts.bend as Consts import 0x72aa159312099184b98e33378b057a0a/consts.bend as Consts import bend-float64@0.1.8.0/fast.bend as Fast import 0x72aa159312099184b98e33378b057a0a/fast.bend as Fast import bend-float64@0.1.8.0/fb.bend as Fb import 0x72aa159312099184b98e33378b057a0a/fb.bend as Fb import bend-float64@0.1.8.0/fbconsts.bend as Fbconsts import 0x72aa159312099184b98e33378b057a0a/fbconsts.bend as Fbconsts import bend-float64@0.1.8.0/float64.bend as Float64 import 0x72aa159312099184b98e33378b057a0a/float64.bend as Float64 import bend-float64@0.1.8.0/format.bend as Format import 0x72aa159312099184b98e33378b057a0a/format.bend as Format import bend-float64@0.1.8.0/math.bend as Math import 0x72aa159312099184b98e33378b057a0a/math.bend as Math import bend-float64@0.1.8.0/package.bend as Package import 0x72aa159312099184b98e33378b057a0a/package.bend as Package import bend-float64@0.1.8.0/spec.bend as Spec import 0x72aa159312099184b98e33378b057a0a/spec.bend as Spec import bend-float64@0.1.8.0/text.bend as Text import 0x72aa159312099184b98e33378b057a0a/text.bend as Text import bend-float64@0.1.8.0/wide.bend as Wide import 0x72aa159312099184b98e33378b057a0a/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.
- INT64_LAWS.bend 1 declarations, 1 laws — The laws of bend-float64's 64-bit integer conversions (float64.bend), at literal inputs: NumPy's answers on x86-64.
- INT64_PROOF.bend 0 declarations — Proofs of INT64_LAWS.bend: literal instances the checker computes.
- LAWS.bend 19 declarations, 19 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
- MODE_LAWS.bend 4 declarations, 4 laws — The laws of bend-float64's rounding modes in arithmetic (float64.bend); MODE_MATH_LAWS.bend has conversions, parsing
- MODE_MATH_LAWS.bend 5 declarations, 5 laws — The laws of bend-float64's rounding modes in conversions, parsing and the math functions (float64.bend, text.bend,
- MODE_MATH_PROOF.bend 0 declarations — Proofs of MODE_MATH_LAWS.bend: the default functions are their mode versions by definition; the rest are literal
- MODE_PROOF.bend 0 declarations — Proofs of MODE_LAWS.bend: the default functions are their mode versions by definition; the rest are literal
- 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
- SPEC_LAWS.bend 2 declarations, 2 laws — The laws of bend-float64's format mini-language (spec.bend), at literal inputs; expected results are Python's
- SPEC_PROOF.bend 0 declarations — Proofs of SPEC_LAWS.bend: literal instances the checker computes.
- SQRT_LAWS.bend 1 declarations, 1 laws — The square root's rounding law (float64.bend), at literal inputs, in a gate of its own: the checker's evaluation of
- SQRT_PROOF.bend 0 declarations — Proof of SQRT_LAWS.bend: a literal instance the checker computes.
- 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.
- TRIG_LAWS.bend 3 declarations, 3 laws — The laws of bend-float64's large-argument reduction for sin, cos and tan (fast.bend), at literal inputs: the
- TRIG_PROOF.bend 0 declarations — Proofs of TRIG_LAWS.bend: literal instances the checker computes.
- ball.bend 88 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 48 declarations — bend-float64's fast path for the math functions: the same evaluations as math.bend's, on 128-bit fast balls
- fb.bend 63 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 723 declarations — bend-float64's fast-path constants, tables and polynomials. Generated by test/gen_fast.py (mpmath); do not edit.
- float64.bend 163 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 268 declarations — bend-float64's math functions, NumPy's float64 set, every result correctly rounded (to nearest, ties to even; the
- package.bend 0 declarations — bend-float64: IEEE 754 float64 in pure Bend, correctly rounded, with x86-64's bits (NaNs included).
- spec.bend 99 declarations — bend-float64's format mini-language: format(x, spec) is Python's format(x, spec) for a float, every field of the
- text.bend 120 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 28,006 bytes
Dependencies
No imports from other hub packages.
Dependents
- bend-ndarray@0.1.4.0 via
F64_LAWS.bend: import bend-float64@0.1.8.0/float64.bend as F
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.5 s |
| FORMAT_PROOF.bend | checks | ALL PROOFS CHECK | 14.0 s |
| INT64_LAWS.bend | open laws/TODOs | 1 TODO 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: 1 TODO found. The code is incomplete, and not a valid proof yet. | 0.6 s |
| INT64_PROOF.bend | checks | ALL PROOFS CHECK | 1.0 s |
| LAWS.bend | open laws/TODOs | 19 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: 19 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.7 s |
| MATH_PROOF.bend | checks | ALL PROOFS CHECK | 6.2 s |
| MODE_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.5 s |
| MODE_MATH_LAWS.bend | open laws/TODOs | 5 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: 5 TODOs found. The code is incomplete, and not a valid proof yet. | 0.7 s |
| MODE_MATH_PROOF.bend | checks | ALL PROOFS CHECK | 5.9 s |
| MODE_PROOF.bend | checks | ALL PROOFS CHECK | 5.3 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.6 s |
| PROOF.bend | checks | ALL PROOFS CHECK | 6.7 s |
| SPEC_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.7 s |
| SPEC_PROOF.bend | checks | ALL PROOFS CHECK | 3.2 s |
| SQRT_LAWS.bend | open laws/TODOs | 1 TODO 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: 1 TODO found. The code is incomplete, and not a valid proof yet. | 0.3 s |
| SQRT_PROOF.bend | checks | ALL PROOFS CHECK | 8.1 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.5 s |
| TEXT_PROOF.bend | checks | ALL PROOFS CHECK | 13.1 s |
| TRIG_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.5 s |
| TRIG_PROOF.bend | checks | ALL PROOFS CHECK | 6.9 s |
| ball.bend | checks | ALL PROOFS CHECK | 0.6 s |
| big.bend | checks | ALL PROOFS CHECK | 0.4 s |
| consts.bend | checks | ALL PROOFS CHECK | 0.3 s |
| fast.bend | checks | ALL PROOFS CHECK | 0.4 s |
| fb.bend | checks | ALL PROOFS CHECK | 0.4 s |
| fbconsts.bend | checks | ALL PROOFS CHECK | 0.5 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.6 s |
| package.bend | checks | ALL PROOFS CHECK | 87.4 s |
| spec.bend | checks | ALL PROOFS CHECK | 0.5 s |
| text.bend | checks | ALL PROOFS CHECK | 0.5 s |
| wide.bend | checks | ALL PROOFS CHECK | 0.4 s |