TensorLean: Formal Verification of Production GPU Kernels
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
TensorLean, from Columbia University and CertiK researchers, formally verifies compiled PTX for GPU kernels against tensor-level specifications written in Lean 4, covering data-race freedom, termination, and floating-point-tolerant correctness. On 2,078 instances from FlashAttention-2/3/4, DeepGEMM and Liger Kernel, it proved 1,180 correct (median 40 seconds) and reported 66 previously unknown bugs, including a FlashAttention-3 KV-cache corruption. These figures come from the authors' own preprint, and none were independently checked. For kernel teams, the work suggests shared specifications can make verification practical.