Skip to content

Releases

speedrunpapi 0.7.4

Choose a tag to compare

@lmtlssss lmtlssss released this 21 Nov 20:06
8c02d77
  • chain.ordered-decision.v1: an ordered decision list x0 op0 (x1 op1 ( ... x[N-1])), each op OR or AND, 2 to 256 variables, as a network of k-input tables (k 2 to 8) of at most a declared depth (1 to 4). A Built result carries every table, its truth table and the sub-list it computes; speedrunpapi check replays every table, composition step and partition offline, with no key and no solver. Eight example sources and bundles are in examples/m15-chain-*. The hosted search stops at a fixed amount of work; a list it does not finish is Unknown and costs nothing.
  • speedrunpapi credits prints the credit balance of COLONY_API_KEY; speedrunpapi credits buy lists the credit packs and speedrunpapi credits buy <credits> opens the packs page checkout (--print prints the link only). A job refused for lack of credits ends with add credits: speedrunpapi credits buy.
  • The repository is github.com/colony-technology/speedrunpapi.
  • On npm and PyPI. The publish workflow sends npm on a tag and PyPI by dispatch.

speedrunpapi 0.7.3

Choose a tag to compare

@lmtlssss lmtlssss released this 20 Nov 13:27
69cb146

The command-line tool is the 0.7.2 tool. bin/, verifiers/, examples/ and docs/ are unchanged apart from the version number, so verdicts and reports are the same. The README and the npm and PyPI descriptions and keywords now describe the whole repository. What the repository gained since 0.7.2:

EPFL combinational benchmarks:

  • sqrt at 103 levels and 32337 LUT-6 and hyp at 199 levels and 125747 LUT-6 on the depth table, where the best published have 150 and 458 levels. Depth entries for adder, arbiter, max and square are in the same folder, hardware/epfl-depth/. The sin depth entry, 10 levels and 360269 LUT-6 where the best published has 666529, is in hardware/epfl-sin/.
  • bar at 486 LUT-6 and 4 levels, where the best published has 512 (hardware/epfl-bar/).
  • max at 510 LUT-6 on the size table, where the best published has 511 (hardware/epfl-max/).
  • dec at 260 LUT-6 and 2 levels, where the best published has 264 (hardware/epfl-dec/).
  • router at 22 LUT-6 and 3 levels on the depth table, where the best published has 25 (hardware/epfl-router/).
  • cavlc at 2 levels and 65 LUT-6 on the depth table, where the best published has 3 levels (hardware/epfl-cavlc/).
  • i2c at 2 levels and 323 LUT-6 on the depth table, where the best published has 3 levels, and at 171 LUT-6 on the size table, where the best published has 173 (hardware/epfl-i2c/).
  • int2float at 21 LUT-6 and 2 levels on the depth table, where the best published has 23 (hardware/epfl-int2float/).
  • mem_ctrl at 1666 LUT-6 on the size table and 1714 LUT-6 and 5 levels on the depth table, where the best published have 1669 and 1716 (hardware/epfl-mem_ctrl/).
  • hardware/epfl-ties/ proves three published entries optimal: ctrl at 25 LUT-6 and 2 levels on both tables, and adder at 129 LUT-6 and 126 levels on the size table.

Exact models:

  • proofs/exact-embeddings/: sentence-transformers/all-MiniLM-L6-v2 in integer arithmetic. The 2,758 sentences of the STS-B test set give one SHA-256 on seven machines.
  • proofs/exact-llm/: HuggingFaceTB/SmolLM2-135M in integer arithmetic. The logits at the 471 prompt positions of 64 prompts give one SHA-256 on seven machines. The same code makes SmolLM2-360M (361,821,120 weights) and SmolLM2-1.7B (1,711,376,384 weights) exact. exact-16 makes every operand of every matrix product an integer within ±(2^15 − 1). Route t3 computes every product of exact-16 by adds and subtracts, and the t3-token kernel runs on rv32i under QEMU without the M extension.
  • proofs/exact-llm-check/: a checker for a claimed SmolLM2-135M run. It checks each matrix product against the pinned weights by Freivalds' identity and recomputes every other step itself.

Hardware evidence and a certificate:

  • hardware/evidence/crc32/: the Ethernet and ARINC 664 frame check sequence at 8, 32 and 64 bits per clock and 64 bits with byte enables, in 41, 100, 151 and 348 LUT-6.
  • hardware/evidence/crc32-selfcheck/: the 64-bit block at 151 LUT-6 with a detector of 22 LUT-6, 173 in all, where duplicate and compare takes 323; 10,583 faults checked.
  • hardware/evidence/secded/: the (72, 64) and (39, 32) Hsiao codes of OpenTitan's prim_secded; the (72, 64) encoder in 31 LUT-6 where the OpenTitan RTL takes 59, the decoder in 120 where it takes 151.
  • hardware/evidence/mul-selfcheck/: a residue detector of 136 lookup tables beside the 6,299 of the 64-bit multiplier, where a second multiplier and a comparison take 6,384.
  • hardware/evidence/mac-selfcheck/: a detector of 206 tables beside the 6,139 of the 64-bit multiply-accumulate, where a second multiply-accumulate and a comparison would cost 6,210.
  • hardware/certificate/hardfloat/: a certificate for roundRawFNToRecFN of Berkeley HardFloat Release 1, proved by machine at 135 formats; every input of 17 small formats compared with exact rational arithmetic, 3,297,497,088 inputs with 0 differences.
  • hardware/vendor/quartus-21.1.1/ and hardware/vendor/quartus-21.1.1-crc-blocks/: Quartus Prime Lite 21.1.1 reports on Cyclone V, including the CRC blocks of ADI, ZipCPU and OpenTitan beside ours at seeds 1, 2 and 3.
  • hardware/linear/taxi/: the CRC-32 modules measured in the taxi Ethernet MACs on the HTG9200, about 83 LUTs saved per channel on the 64-bit datapath.

Audits and other proofs:

  • hardware/audit/lfsr-taps/: the LFSR tap tables of Chisel and OpenTitan are maximal in all 2,568 entries; cc_lfsr_16bit of PULP common_cells is not.
  • proofs/tfhe-rs-scalar-mul/: scalar multiplication in signed digits for tfhe-rs b07e249, 14.2 % fewer bootstraps on average at 16 bits and 22.9 % fewer at 64 bits.
  • proofs/unit-dials/, proofs/fork-angle/ and proofs/spark-tree/ are new folders; each README states what it holds and how to replay it.

speedrunpapi 0.7.2

Choose a tag to compare

@lmtlssss lmtlssss released this 14 Nov 15:17
80a646c

The analyzer is the 0.7.1 analyzer; verdicts and reports are unchanged. Command-line fixes only:

  • No circom compiler on the path is now an error (exit 1) instead of Unknown (exit 3).
  • A missing input, report or R1CS file prints FILE: file not found and exits 1, with no stack trace.
  • A hosted command without a key says to set COLONY_API_KEY and where keys come from.
  • speedrunpapi --help lists the hosted-job commands and verify-onnx.
  • The circom install link in messages and docs points to the iden3/circom repository; docs.circom.io does not resolve.

EPFL sixteen, twenty, twentythree in 9 levels

Choose a tag to compare

@lmtlssss lmtlssss released this 13 Nov 05:34
fd14cb8

LUT-6 netlists of the three EPFL MtM circuits in 9 levels: 407,332, 419,071 and 468,313 LUTs. Description and proof: hardware/epfl-mtm in this repository.

speedrunpapi 0.7.1

Choose a tag to compare

@lmtlssss lmtlssss released this 12 Nov 10:51

speedrunpapi 0.7.1

This release replaces the analyzer.

There is no 0.7.0 package. A v0.7.0 tag was pushed to the wrong commit by mistake, the publish workflow's version guard refused it, and release tags in this repository are immutable, so the tag stays and the release is 0.7.1.

What was wrong

Versions before 0.7.1 classified Circom, Verilog and INT8 sources by template name and keyword. They did not analyse the constraint system. A circuit whose output was assigned with <-- and never constrained was reported Certified if its main template had a recognised name such as BigAdd, or if the file mentioned BinSum. The hosted service signed those verdicts, and also signed verdicts that a client merely reported.

Those results were not proofs. If you relied on a Certified result from an earlier version, scan again with this one. Every certificate issued before 0.7.1 has been revoked; the revocation feed is at https://api.colony.technology/v1/revocations.

What 0.7.1 does

scan compiles Circom with the real circom compiler and analyses the R1CS it emits for output determinism: do two satisfying witnesses with the same inputs always have the same outputs?

  • Certified: a derivation shows they do. An independent checker replays it before the verdict is reported.
  • Broken: two witnesses that share every input and differ on an output. Both are re-evaluated against every constraint.
  • Unknown: neither was established. The open signals are listed with the condition under which a constraint would fix them.

The report (--report) carries the derivation or the witnesses and can be checked without the scanner: speedrunpapi verify, or the standard-library Python checker in verifiers/determinism/.

New options: --main "Template(args)" for library files, -l/--include, --assume-binary for inputs a template expects to be bits (the assumption becomes part of the claim), --strict for witness uniqueness, --report, --opt.

Measured

circomlib templates, circom 2.2.3 --O0, Apple M1, Node.js 26, single runs:

Circuit Verdict Constraints Prove Replay
Sha256compression() Certified 202,784 228 ms 155 ms
Poseidon(5) Certified 1,347 1.9 ms 1.1 ms
LessThan(252) Certified 256 0.8 ms 0.6 ms
Num2Bits(254) Broken 255
Decoder(4) Broken 6
MontgomeryAdd() Broken 3

The Broken rows hold for those templates taken alone with unrestricted inputs; circomlib uses them where the caller excludes the degenerate cases. The 71-case corpus has 46 Certified, 15 Broken and 10 Unknown, and no verdict contradicts the known answer. A fuzzer that compares the engine with brute-force enumeration over small fields ran 150,000 random systems without a wrong Certified or Broken.

What still returns Unknown

Elliptic-curve arithmetic whose uniqueness rests on a number-theoretic fact (Baby Jubjub addition), big-integer arithmetic that depends on range bounds across limbs, alias checks such as Num2Bits_strict, circuits with no outputs, and R1CS with custom gates.

Breaking changes

  • Verilog, INT8, ONNX-text and carry-graph inputs return Unknown. Those classifiers are removed.
  • Bitcoin Script and RV32IM trace inputs return Unknown. An audit found that the Script adapter executed nothing (it reported Certified for scripts that can never complete) and that the trace adapter only replayed a trace against instruction words the trace itself supplied.
  • Result JSON has a new shape (schema: colony.determinism/1). Results from earlier versions cannot be verified.
  • The hosted API signs only Certified or Broken results that it re-verified from a submitted R1CS (up to 8 MiB). It no longer signs client-reported verdicts or Unknown.
  • The GitHub Action no longer requires an API key. It scans locally and fails on Broken; a key adds a signed certificate.

The hosted-job client (run, solve, optimize, check, ...) and the ONNX checker are unchanged.

speedrunpapi v0.6.3: M01–M14 exact math

Choose a tag to compare

@lmtlssss lmtlssss released this 12 Nov 10:51

Eighteen bounded exact mathematical operators. Nine new funded production M05/M07–M14 original-source results and separate independent verifier. Tested across 300 exact cases, 300 altered-certificate rejections, eighteen hosted profiles and nine production jobs. Each research theorem retains its own declared domain.

speedrunpapi v0.6.2 — Exact shared-input carry counts

Choose a tag to compare

@lmtlssss lmtlssss released this 12 Nov 10:51

Nine bounded exact mathematical operators. M-06 adds ordered carry-frontier masked counting with complete original-domain independent replay. The public source and result bundle reproduces 4 witnesses, least input 9 and six retained carry states from production job c456f437-8769-4452-9b5f-cd195bd3276e. Local npm tarball and Python wheel installed fresh and independently verified the source-bound result. Real card payment and external zkGolf comparator submission remain separate acceptance gates.

ᑕ. speedrunpapi v0.6.1 — R11 exact mathematics

Choose a tag to compare

@lmtlssss lmtlssss released this 12 Nov 10:51

Eight source-bound bounded mathematical operators in the public hosted-job client, with independent local replay. New cases: cyclic inverse fibers, tap-span fiber counts, affine inverse cells, and two-stage addition codes. Four canonical .math inputs and three genuine production mathematical result bundles are available in examples/. Changed source and forged result fields are rejected. npm and PyPI publish from this tag with pinned workflows. These exact finite-domain scopes do not assert complete source-paper integration or external cash settlement.

speedrunpapi v0.6.0

Choose a tag to compare

@lmtlssss lmtlssss released this 12 Nov 10:51

Public universal-job client for Colony verified execution. Free offline circuit scanning remains available. New hosted commands: quote, run, optimize, solve, status, result and independent check. Native ONNX optimization returns the executable candidate and a portable source-bound proof package. The npm tarball and Python wheel include six independent ONNX verification modules and the verify-onnx command. The GitHub source release includes a real production ONNX proof packet with local replay and a CI tampering rejection. npm and PyPI use their respective verified publication workflows. The customer Stripe checkout is a separate deployment path.

speedrunpapi v0.5.1

Choose a tag to compare

@lmtlssss lmtlssss released this 12 Nov 10:50

CLI JSON has a clean default output. Use --references to include DOI research metadata. Signed proof methods and source-bound verification are unchanged.