parquet-go merges Lean-proven optimization, 3x faster kernel in 13 instructions

lemire · x · 2026-11-26

tsenart announced that parquet-go merged a Perfloop optimization backed by a formal Lean 4 proof: the AVX2 kernel previously computed a block's maximum to derive its bit width, but bitwise OR preserves width, so the proof justified replacing it — 42 instructions became 13 and the kernel is 3x faster, with a Lean 4 file in the PR proving correctness.

Quoting his earlier thread on formally verifying high-performance code, lemire argues proofs could be a game changer for code that "runs with scissors" for speed. The team now plans to extend Perfloop's toolset to Alive2, Kani, MIRI, and CBMC.

Original post →

More from Infra

Infra channel →