From f6b9648c1d62b3fe2fc2aad7c457fbe85eb85672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=9C=98lmtlssss=F0=9F=9C=90?= <261705307+lmtlssss@users.noreply.github.com> Date: Sun, 29 Nov 2026 12:44:11 -0800 Subject: [PATCH] readme and package.json: sync EPFL #101, scribe pass, set author --- README.md | 30 ++++++++++++++++-------------- package.json | 1 + 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index a268e3e..4c2d444 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # speedrunpapi -speedrunpapi, the universal engine: exact results with independent proofs, by [colony.technology](https://colony.technology). For example: output determinism for Circom and R1CS, bounded exact mathematics, bit-exact ONNX plans, audited arithmetic cores, circuit blocks with proofs, exact models. +speedrunpapi, the universal engine: exact results with independent proofs, by [colony.technology](https://colony.technology). It runs output determinism for Circom and R1CS, bounded exact mathematics, bit-exact ONNX plans, audited arithmetic cores, circuit blocks with proofs, and exact models. An under-constrained circuit accepts more than one output for the same input, so the prover decides the result instead of the circuit. `speedrunpapi` checks that property on the constraint system the compiler emits and returns one of three verdicts. @@ -96,7 +96,7 @@ The prover works on the difference of two satisfying assignments that agree on t - **lin**: a constraint reduces to a linear equation with constant coefficients in which one wire is not yet determined. - **fix**: a constraint that mentions a single wire and has a single root. -- **bits**: a linear equation whose undetermined wires are all two-valued, with weights for which the subset-sum map is injective below the modulus. This is the bit-decomposition argument, and it is why `Num2Bits(254)` over BN254 is not certified. +- **bits**: a linear equation whose undetermined wires are all two-valued, with weights for which the subset-sum map is injective below the modulus. Because bit-decomposition weights collide modulo the BN254 prime, `Num2Bits(254)` over BN254 is not certified. - **gauss**: a linear combination of such equations isolates a wire. - **onehot**: a selector family. Constraints `s_i * (L - c_i) = C_i` share one determined form `L` and have pairwise distinct constants `c_i`, and a linear equation ties exactly those `s_i` together. At most one factor is zero; every other `s_i` is fixed by its own constraint and the equation fixes the last. This settles `Decoder`-style selectors in one step. - **split**: case analysis on a determined linear form being zero or nonzero. Both assignments fall in the same case; a wire determined in both cases, or in one while the other is contradictory, is determined. This covers `IsZero` and guarded divisions. @@ -144,7 +144,7 @@ For these the report lists each open signal with the condition under which a con ## checking a result yourself -A report is self-contained: the derivation or the two witnesses, the R1CS digest, the compiler and flags, and any assumptions. +Each report carries the derivation or the two witnesses, the R1CS digest, the compiler and flags, and any assumptions. ```sh speedrunpapi scan circuit.circom --report circuit.report.json # also writes circuit.r1cs @@ -175,9 +175,9 @@ export COLONY_API_KEY=... speedrunpapi scan circuit.circom --require-signed ``` -The service signs only `Certified` and `Broken` results that it has itself re-verified. The certificate names the R1CS digest, the derivation digest and any assumptions; the source file name and compiler are recorded as client-declared, because the service cannot run your compiler. Uploads are limited to 8 MiB of R1CS; larger circuits are checked locally with `verify` and the Python checker. Certificate status and revocations are public at `api.colony.technology/v1/certificates/status` and `/v1/revocations`. +The service signs only `Certified` and `Broken` results that its verifier re-checks. The certificate names the R1CS digest, the derivation digest and any assumptions; the source file name and compiler are recorded as client-declared, because the service cannot run your compiler. Uploads are limited to 8 MiB of R1CS; larger circuits are checked locally with `verify` and the Python checker. Certificate status and revocations are public at `api.colony.technology/v1/certificates/status` and `/v1/revocations`. -To check a certificate offline, `node "$(npm root -g)/speedrunpapi/verifiers/cert/verify.mjs" certificate.json circuit.r1cs` (or `node verifiers/cert/verify.mjs …` from a clone of this repository) verifies the Ed25519 signature against the pinned public key and that the certificate names the digest of your file. The signature identifies the issuer. The report lets you re-check the result. Credit packs: [colony.technology/packs](https://colony.technology/packs). +To check a certificate offline, `node "$(npm root -g)/speedrunpapi/verifiers/cert/verify.mjs" certificate.json circuit.r1cs` (or `node verifiers/cert/verify.mjs …` from a clone of this repository) verifies the Ed25519 signature against the pinned public key and that the certificate names the digest of your file. The signature identifies the issuer. The report supports independent re-checking of the result. Credit packs: [colony.technology/packs](https://colony.technology/packs). ## earlier versions @@ -214,12 +214,12 @@ Logic compilers, netlists and proofs are under [`hardware/`](hardware/). | `div`, size | 3082 LUT-6 | 2287 LUT-6 | | `div`, depth | 170 levels, 30849 LUT-6 | 58 levels, 20232 LUT-6 | | `sin`, size | 994 LUT-6 | 685 LUT-6 | -| `sin`, depth | 10 levels, 666529 LUT-6 | 10 levels, 360269 LUT-6 | +| `sin`, depth | 10 levels, 666529 LUT-6 | 10 levels, 153392 LUT-6 | | `log2`, size | 5986 LUT-6 | 4099 LUT-6 | -| `log2`, depth | 51 levels, 9391 LUT-6 | 23 levels, 7978 LUT-6 | -| `arbiter`, size | 259 LUT-6 | 237 LUT-6 | +| `log2`, depth | 51 levels, 9391 LUT-6 | 22 levels, 7982 LUT-6 | +| `arbiter`, size | 259 LUT-6 | 237 LUT-6 (65 levels) | | `arbiter`, depth | 5 levels, 369 LUT-6 | 4 levels, 1477 LUT-6 | -| `priority`, size | 86 LUT-6 | 79 LUT-6 | +| `priority`, size | 86 LUT-6 | 79 LUT-6 (21 levels) | | `adder`, depth | 5 levels, 339 LUT-6 | 4 levels, 558 LUT-6 | | `max`, size | 511 LUT-6 | 510 LUT-6 | | `max`, depth | 6 levels, 1006 LUT-6 | 6 levels, 868 LUT-6 | @@ -243,7 +243,9 @@ Logic compilers, netlists and proofs are under [`hardware/`](hardware/). [`hardware/epfl-mtm/`](hardware/epfl-mtm/) holds `sixteen`, `twenty` and `twentythree`, the 16 to 23 million gate circuits of the suite. They are the truth table of a Fibonacci loop in 64-bit integers; the netlists compute it, and each is proven equivalent to the original in minutes without a solver. -[`hardware/epfl-2027-round1/`](hardware/epfl-2027-round1/) holds the ten netlists of the 2027 round-one submission to lsils/benchmarks, each with a checker that runs against the original circuit: `EPFL_DIR=/path/to/EPFLfull ./run_all.sh`. +[`hardware/epfl-2027-round1/`](hardware/epfl-2027-round1/) holds the ten netlists of the 2027 round-one submission (`lsils/benchmarks#97`), each with a checker that runs against the original circuit: `EPFL_DIR=/path/to/EPFLfull ./run_all.sh`. + +[`hardware/epfl-2027-round2/`](hardware/epfl-2027-round2/) holds the four netlists of the 2027 round-two submission (`lsils/benchmarks#101`): `sin` depth (10 levels, 153,392 LUT-6, checked on all 2^24 inputs), `log2` depth (22 levels, 7,982 LUT-6, checked on all 2^32 inputs), `priority` size (79 LUT-6, 21 levels, ABC `cec`), and `arbiter` size (237 LUT-6, 65 levels, ABC `cec`). [`hardware/iwls/`](hardware/iwls/) holds the rules behind twenty functions of the IWLS 2026 contest, which gives them as truth tables only. For ten of them the circuit built from the rule is smaller than the smallest of the twelve teams: 519 to 683 AND nodes where the contest has 2,868 to 8,383, and 1,067 to 2,056 where it has 1,573 to 21,553. [`hardware/iwls/2025/`](hardware/iwls/2025/) does the same for the 2025 contest: the exact rules of twenty-six floating-point functions and eleven circuits smaller than the smallest of the four teams, among them an 8-bit multiplier in 303 AND nodes where the contest has 2,327. @@ -251,11 +253,11 @@ Logic compilers, netlists and proofs are under [`hardware/`](hardware/). [`hardware/epfl-sin/`](hardware/epfl-sin/) holds the EPFL `sin` benchmark as 685 LUT-6 where the smallest published netlist has 994, and the arithmetic the benchmark computes, which the suite does not describe. Both are checked against the benchmark on all 16,777,216 inputs. -[`hardware/epfl-log2/`](hardware/epfl-log2/) holds the EPFL `log2` benchmark as 4,099 LUT-6 where the smallest published netlist has 5,986, a second netlist of 23 levels where the shallowest published has 51, and the arithmetic the benchmark computes, which the suite does not describe. All three are checked against the benchmark on all 4,294,967,296 inputs. +[`hardware/epfl-log2/`](hardware/epfl-log2/) holds the EPFL `log2` benchmark as 4,099 LUT-6 where the smallest published netlist has 5,986, an earlier 23-level depth netlist (superseded by the 22-level, 7,982 LUT-6 netlist in [`hardware/epfl-2027-round2/`](hardware/epfl-2027-round2/)), and the arithmetic the benchmark computes, which the suite does not describe. All are checked against the benchmark on all 4,294,967,296 inputs. -[`hardware/epfl-arbiter/`](hardware/epfl-arbiter/) holds the EPFL round-robin `arbiter` as 256 LUT-6 where the smallest published netlist has 259, with the equations it is built from. ABC proves it equal to the benchmark in under a second. +[`hardware/epfl-arbiter/`](hardware/epfl-arbiter/) holds the equations for the EPFL round-robin `arbiter` (the current submission in [`hardware/epfl-2027-round2/`](hardware/epfl-2027-round2/) reaches 237 LUT-6 and 65 levels where the smallest published netlist has 259). ABC proves it equal to the benchmark in under a second. -[`hardware/epfl-depth/`](hardware/epfl-depth/) holds the depth entries for `adder`, `arbiter`, `max`, `square`, `sqrt` and `hyp`, with their checks. [`hardware/epfl-dec/`](hardware/epfl-dec/) holds `dec` at 260 LUT-6 and 2 levels where the best published has 264, proved equal to the benchmark by ABC. The `sin` depth entry is in [`hardware/epfl-sin/`](hardware/epfl-sin/). +[`hardware/epfl-depth/`](hardware/epfl-depth/) holds the depth entries for `adder`, `arbiter`, `max`, `square`, `sqrt` and `hyp`, with their checks. [`hardware/epfl-dec/`](hardware/epfl-dec/) holds `dec` at 260 LUT-6 and 2 levels where the best published has 264, proved equal to the benchmark by ABC. The live 10-level, 153,392 LUT-6 `sin` depth entry is in [`hardware/epfl-2027-round2/`](hardware/epfl-2027-round2/). [`hardware/epfl-bar/`](hardware/epfl-bar/) holds `bar` at 486 LUT-6 and 4 levels where the best published has 512, proved equal to the benchmark by ABC. @@ -293,7 +295,7 @@ Logic compilers, netlists and proofs are under [`hardware/`](hardware/). [`hardware/audit/`](hardware/audit/) runs open arithmetic cores beside exact arithmetic: a double-precision divider in dawsonjon/fpu returns 2^29 times the quotient for a band of subnormal results. The floating-point adder of BaseJump STL returns the smallest normal number for 0 + 0. The floating-point unit of OpenHW's CVA5 never answers 0.0 / 2.0 when that division directly follows another one. NOEL-V, Gaisler's RISC-V processor, returns 1.65e-24 for 3.0 * 5.0 - 15.0 at the target of a mispredicted branch. The float package of the VHDL standard, as the IEEE publishes it and GHDL and NVC ship it, returns -15 for (-6)(-1) + (-5) and the wrong last bit for the square root of two in double precision; the patch beside it passes 32 million calls. Seven floating-point fixes are merged upstream: neorv32 #1692, black-parrot #1380 and basejump_stl #765 from our pull requests, and cva5 #37 and xls #5437, #5439 and #5440, the maintainers' fixes to our reports. Every netlist has an independent checker; the division and square-root recurrences are proved in Lean 4. -One unit of work, fixed, each with its own refund: [a core or IP block audited](hardware/audit/#your-block), 1,800 USD, refunded if no defect is found; [a model made exact](proofs/exact-llm/#your-model), 1,800 USD up to 500 million parameters and 7,000 USD up to 2,000 million, refunded if two of your machines print different hashes; [an arithmetic block in your flow](hardware/multiplier/#paid-evaluation), 7,000 USD, refunded if it does not beat your reference on LUT count or logic depth. Larger work, by contract: lmtlssss@colony.technology. +One unit of work, fixed, each with its own refund: [a core or IP block audited](hardware/audit/#your-block), 1,800 USD, refunded if no defect is found; [a model made exact](proofs/exact-llm/#your-model), 1,800 USD up to 500 million parameters and 7,000 USD up to 2,000 million, refunded if two of your machines print different hashes; [an arithmetic block in your flow](hardware/multiplier/#paid-evaluation), 7,000 USD, guaranteed to lower LUT count or logic depth against your reference (full refund otherwise). Larger work, by contract: lmtlssss@colony.technology. [Terms](https://colony.technology/terms) · [Releases](https://github.com/colony-technology/speedrunpapi/releases) Questions: lmtlssss@colony.technology diff --git a/package.json b/package.json index 27e3d98..000b181 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "url": "git+https://github.com/colony-technology/speedrunpapi.git" }, "homepage": "https://colony.technology", + "author": "🜘lmtlssss🜐", "license": "SEE LICENSE IN LICENSE.md", "keywords": [ "circom",