Manuscript Offprint
arXiv:2610.24548Proving LLM-Generated GPU Kernels Correct and Safe: Floating-Point Verification in Lean and VerCors
Abstract
Modern statistical model development begins with a high-level specification in an automatic differentiation framework such as PyTorch, JAX, or TensorFlow, which is then lowered to a target backend by a compiler or implemented manually by a research engineer. In this paper, we study whether frontier language models can correctly perform the latter task by generating GPU kernels from high-level benchmark specifications. We introduce a framework in which a language-model agent uses Velvet, a program verifier for imperative programs embedded in Lean, to prove semantic equivalence between a high-level specification and a generated CUDA kernel under an explicit set of assumptions. It also asks the LLM to prove thread safety and data race freedom of the generated kernel in VerCors, a deductive verifier for parallel code. Our main contribution to the formal verification of LLM-generated GPU kernels is showing that a combination of Lean automation and language-model-guided proof construction can verify a broad set of basic neural-network building blocks over floating-point values, allowing LLMs to implement semantically correct and safe kernels. In our framework, floating-point verifications never rely on compiled code and are always checked via the Lean kernel.
1 Introduction
Modern ML model development begins with a high-level specification in frameworks such as PyTorch, which is lowered to hardware-specific kernels by compiler backends or expert engineers. This translation can leave substantial performance unrealised until the software stack catches up: on the same 512 H100 GPUs, NVIDIA reported a 27% year-over-year improvement on MLPerf GPT-3 training from software optimisations alone [8].
KernelBench tasks language models with automating this process by generating optimised GPU kernels directly from PyTorch specifications [19]. However, KernelBench-Verified shows that LLM-generated kernels can exploit weaknesses in finite correctness tests, producing implementations that appear correct and fast under the benchmark distribution but fail under broader inputs [24]. This motivates a verification layer in which the model must make its assumptions explicit and prove that the generated kernel is semantically equivalent to the high-level specification, rather than relying on its own tests or informal reasoning about correctness.
To tackle this problem, we implement an agentic framework making use of a formal verification layer in order to mechanically check semantic equivalence between high-level specifications and generated GPU kernels, as well as verifying the data race freedom of the parallel code. Our contributions are as follows:
Equal contribution.
NeurIPS 2026 Workshop on AI for Verifiable Coding.
-
We demonstrate that Lean automation combined with language-model-guided proof construction can establish semantic equivalence for a broad set of basic neural-network kernels over floating-point values under explicit assumptions.
-
We identify semantic failures in LLM-generated GPU kernels that pass conventional correctness tests and verification approaches that reason over or .
In Section 2, we briefly review related work in the area. Formal verification of LLM-generated code is a rapidly growing area and ensuring that the formal claims match up with the generated code is a key bottleneck, especially when floating point arithmetic is involved or highly important to the application of the generated code. In Section 3, we move on to describe the architecture of our agentic pipeline. The key components are:
• Deterministic compilers from both PyTorch specifications and a limited set of CUDA to Lean;
• Generator and Prover agents which are designed for creating the resulting CUDA code and proving its semantic equivalence with the PyTorch specification respectively;
• The leveraging of Velvet [10] in order to reason over imperative code in Lean via a Dafny-like manner;
• The VerCors [1] gate which aims to provide thread and memory safety of the generated code.
We also detail the purpose of each of the technologies we employ in our pipeline, and how they assist with our goal of providing a framework for producing verified GPU code. In Section 4, we experiment with setting the underlying model of the framework to both GPT-5.6 Terra and Claude Opus 5, and review some statistics about both runs. In Section 5, we provide representative case studies demonstrating examples in which the harness was able to catch semantic issues. Further case studies are provided in Appendix B. We finally conclude in Section 6 with a summary of our findings and a discussion of the limitations of our approach.
Formal verification of GPU kernels. Classical GPU verification has focused largely on safety and concurrency properties. GPUVerify checks CUDA and OpenCL kernels for data races and barrier divergence [4], while VerCors supports deductive verification of CUDA programs using contracts and permissions, including functional properties of parallel algorithms [20]. Formal models of PTX memory behaviour further provide a semantic basis for reasoning about low-level GPU execution [14]. More recent systems move toward semantic equivalence: VOLTA checks equivalence between optimised GPU kernels [7], while Gimlet explores equivalence between PyTorch specifications and generated Triton kernels [22]. VeriCUDA similarly develops mechanised reasoning about Rust-to-PTX programs and reductions [21].
Agentic verification and floating-point semantics. ProofWright is the closest prior work on agentic verification of generated CUDA kernels, using language models to synthesise annotations for VerCors and separately constructing semantic-equivalence proofs [6]. In Section 3, we note the differences between that work and ours. Its results demonstrate that language models can effectively drive existing verification tools, but its semantic reasoning does not directly capture IEEE floating-point behaviour, instead reasoning over or . In addition, its LLM-generated translation from the kernel to Rocq introduces a stochastic verification surface, since the correctness of the verification target depends on an unverified and nondeterministic model-generated transformation. Recent efforts including FLoPS, FloatSpec, and fp-lean provide increasingly rich formalisations of
Both the fast variants, which simply allow for increased throughput rather than affecting model abilities.
Table 1: Comparison with related GPU-kernel verification systems. High-level reference indicates that the system relates a kernel to an explicit high-level semantic reference such as a PyTorch program. IEEE FP indicates direct reasoning about floating-point semantics rather than an abstraction over or .
| Work | Brief summary | High-level ref. | IEEE FP | Agentic | Backend |
|---|---|---|---|---|---|
| VOLTA [7] | PTX-level symbolic execution and equivalence checking for ML GPU kernels. | × | × | × | Custom symbolic evaluator |
| Gimlet [22] | PyTorch-Triton equivalence checking using tensor algebra and SMT solving. | ✓ | × | × | Z3 |
| GPUVerify [4] | Static verification of race freedom and barrier divergence in CUDA and OpenCL kernels. | × | × | × | Boogie / Z3 |
| VeriCUDA [21] | Mechanised reasoning about a Rust-like GPU language and PTX-style memory-model behaviour. | × | × | × | Rocq |
| VerCors [20] | Deductive verification of safety and functional properties of CUDA programs. | × | × | × | VerCors / SMT |
| ProofWright [6] | LLM-assisted verification of generated CUDA using VerCors and Rocq. | ✓ | × | ✓ | VerCors + Rocq |
| Ours | Agentic semantic verification of generated CUDA against formalised high-level specifications. | ✓ | ✓ | ✓ | VerCors + Velvet / Lean |
floating-point semantics in Lean [5, 3, 18]. Our work builds on this direction by checking generated GPU kernels against deterministically formalised high-level specifications while reasoning directly over floating-point values.
3 Architecture and Setup
Figure 1 shows the basic architecture of our agentic pipeline. The setup is inspired by [6], with important differences reviewed at the end of this section.

Figure 1: The basic architecture of our approach. Deterministic translators are used in order to translate both PyTorch and CUDA programs into Lean. Their semantics can then be compared either by an SMT solver (in our case, cvc5) or a Prover agent. The CUDA kernel is then checked for thread safety by VerCors.
KernelBench Problems For a source of typical kernels, we used KernelBench [19], whose test-based notion of correctness and its weaknesses were discussed in Section 2; [19] itself names formal verification as an important next step. We should be clear that we are not aiming to make an attempt at KernelBench nor produce fast GPU kernels: the benchmark simply provides examples of kernels one would want to speed up, for which formal guarantees of semantic alignment and thread safety are valuable.
From PyTorch to Lean Central to our pipeline is our ability to deterministically translate both PyTorch and CUDA kernels to semantic specifications in Lean. For the PyTorch half we employ a similar approach to [6], using PyTorch's torch.fx module to extract an intermediate graph representation of the program: each applied function is a node, and edges record the order of operations and their data dependencies. This graph exposes the semantic intent of the program and can be translated deterministically into formal specifications in a theorem prover; for these specifications, we chose the TorchLean [9] library.
TorchLean Once a PyTorch program has been represented as an FX graph, its operations require a denotational semantics in Lean. TorchLean provides this semantic framework, including the NN. IR representation of neural-network computations through structures such as Graph, Node, and their denotation functions. We import each extracted FX graph into this representation using an explicit translation table from FX targets to TorchLean operations, with shape checking and unsupported operations reported as compilation errors. For the current KernelBench subset, we provide 30 specification modules and prove that each imported FX graph denotes the corresponding TorchLean specification, allowing the specification to be used as the trusted reference for CUDA-kernel equivalence. Thus, the comparison with a translated CUDA kernel is made against a machine-checked TorchLean semantics rather than against an unverified transcription of the PyTorch program.
Transcendental Functions An obstacle for verifying facts about floating point arithmetic is the use of transcendental functions, for which IEEE recommends but does not mandate correct rounding. The main problem is the Table Maker's Dilemma [13]: unlike the basic operations +, −, ×, ..., whose exact rounding can be decided with a small fixed number of extra bits, a transcendental's rounding can require an a priori unknown (though finite, for finite formats) amount of intermediate precision, and historically this has kept it from being mandated. In Lean v4.33.0, these functions are not checked by the kernel and are implemented as compiled code on the system's hardware. TorchLean sidesteps this verification gap by modelling tensors of an arbitrary scalar type α: a Context α instance provides the operations on α, with the standard transcendental functions bundled in its MathFunctions α component. In the case of Float32, we define every such function to be an opaque map which remains in the kernel. At first this seems restrictive in that we are unable to make use of semantic facts about the functions. For example, we cannot manipulate:
as it relies on the relation . However, this is not an issue since in floating-point arithmetic, it does not hold for all x anyway. A major benefit of this approach is that we never verify anything that is false or relies on a specific hardware implementation of the transcendental functions, making the tensor representations polymorphic over them. This guarantee should be read precisely: because both the specification and the imported kernel are written over the same opaque symbol, equivalence is established for every interpretation of that symbol. Transferring the theorem to executed code therefore carries an additional assumption, namely that the PyTorch reference and the generated CUDA realise each such symbol as the same function on Float32. This is an assumption of pointwise agreement, not of correct rounding; it holds by construction when both sides run on the same device and lower to the same library routine, but it can fail across backends, for example between a CPU reference and a GPU kernel.
Velvet Velvet [10] is a Lean library that supports the specification and verification of imperative programs. Its syntax is inspired by Dafny: a method may declare preconditions using require and postconditions using ensures, while its implementation is written inside a do block. Correctness obligations can often be discharged automatically using the loom_solve tactic, which generates verification conditions and delegates suitable arithmetic reasoning to an SMT solver in a Dafny-like workflow. The result of the SMT solver is trusted in our setup. Work exists such as Lean-SMT [15], for proof reconstruction of SMT output. Since Velvet is embedded in Lean, failed automated proofs can instead be completed interactively using Lean tactics and the results available in Mathlib and other imported libraries. Several of Velvet's capabilities appear to be moving into Lean itself.
(see, for example, the pull request https://github.com/leanprover/lean4/pull/14389), but these changes had not landed when the experiments were conducted.
CUDA AST Extraction We implemented a limited CUDA-to-Lean compiler whose frontend invokes clang to extract a CUDA abstract syntax tree and normalises it into a small kernel intermediate representation. A second stage translates this representation into a Velvet method, rather than into arbitrary Lean code: the generated method contains the kernel parameters, mutable arrays, sequentialised control flow, loop invariants, and proof obligations required by the Lean proving environment. The compiler assumes that the CUDA kernel is race-free and otherwise safe, and therefore replaces parallel execution with a synchronous sequential representation; barrier-separated regions are modelled as phases, while shared state and thread-local state that crosses barriers are represented explicitly. Compiler-generated preconditions primarily express operational facts such as array extents, launch dimensions, dynamic shared-memory sizes, parameter bindings, and the relationship between the thread space and the output size. The postconditions are not generally inferred from the CUDA implementation itself: they are supplied by the trusted reference specification, either as an elementwise function or as an indexed specification for reductions, convolutions, and other structured kernels. The compiler emits output-size preservation and per-element functional postconditions, together with loop invariants for bounds and already-computed output prefixes.
VerCors VerCors is a deductive verification toolset for sequential, concurrent, and parallel programs, including C and GPU kernels. Programs are annotated with contracts and permission assertions; for example, a CUDA kernel may require valid input and output buffers and grant each thread fractional permissions to the locations it reads and writes. These permissions describe ownership of memory and allow VerCors to reason about pointer safety and prevent conflicting accesses between parallel threads. VerCors translates the resulting verification conditions to automated back-ends, including SMT solvers, which discharge the arithmetic, permission, and control-flow obligations. A successful verification establishes the properties expressed by the annotations, such as memory safety, data-race freedom, and, when functional postconditions are supplied, functional correctness of the modelled program. It does not by itself establish numerical equivalence to a PyTorch specification, GPU performance, or properties of CUDA behaviour that are absent from the model or annotations.
Generator Agent The Generator agent is the main supervisor agent of the workflow. Its job is to take a PyTorch kernel and translate it into the corresponding CUDA code with the relevant VerCors annotations. In order to assist with this task, it is given basic advice on how to work with VerCors. Importantly, it is told to infer the weakest reasonable permissions and preconditions that would reflect the kernel's actual accesses, since safety is conditional on these preconditions and artificially restrictive constraints would weaken the guarantee; the workflow encourages, but does not ensure, that they are the weakest possible. Upon creating a candidate CUDA kernel, the Generator agent will run the CUDA-to-Velvet compilation step creating all semantic pre- and post-conditions. Should the automatically invoked SMT solver (dispatched via loom_solve) fail to prove the generated method, the Generator agent may dispatch the dedicated Prover agent, which is allowed to proceed with the semantic equivalence proof interactively.
Prover Agent The Prover is a specialist sub-agent of the Generator tasked with proving the equivalence of the imported PyTorch and CUDA Lean semantics. For this task, we provided it with a 300 second budget per proving round. As well as access to TorchLean, it is given two additional components upon being dispatched:
• The compiled proving environment which includes the Velvet method and a failing invocation of the loom_solve tactic,
• A bespoke lemma library which it can read from and write to. These results are relevant for the problem and are accumulated across rounds.
There are two potential reasons why loom_solve could fail: the method may be genuinely false, meaning the generated CUDA kernel is in fact not equivalent to the PyTorch specification, or the SMT solver may lack the facts required to prove a true equivalence. In the first case, the agent is explicitly told to report back to the Generator with a diagnosis of the exact semantic misalignment and how the next attempt should change. In the second, it may either complete the proof interactively, continuing where loom_solve left off, or add facts to the lemma library, which are made available to the SMT solver on re-compilation. The lemma library persists across rounds of a problem, but is reset upon starting a new problem so that each stays isolated and later problems do not benefit from greater automation. Both the round proof and every lemma-library addition are audited with Lean's axiom check: validation passes only if the completed proof depends on nothing beyond the three standard axioms (propext, Classical.choice, and Quot.sound), so the agent cannot introduce unproved assumptions.
Relationship to existing work Our approach builds on the methodology established by ProofWright [6], with several design differences. First, we use Lean rather than Rocq to define the denotational semantics of both PyTorch and CUDA programs, representing computational graphs with the open-source TorchLean library rather than MLRocq and giving equivalence proofs access to Mathlib [23]. Second, where ProofWright uses an LLM to translate CUDA programs into the proof environment, our CUDA-to-Lean compiler is small and deterministic: this restricts the CUDA fragment that can be represented, but makes the translation reproducible and inspectable independently of the language model. Third, verification conditions are first dispatched to the cvc5-based SMT automation [2] behind loom_solve, so that straightforward equivalence proofs are discharged automatically before a Prover agent is invoked. Fourth, whereas MLRocq reportedly defines most of its tensor operations over Z or R, we use TorchLean's polymorphic tensors to reason over Float32, so that the Lean representations match the real implementations; treating floating-point arithmetic as an implementation detail during verification is known to hide behaviour-affecting discrepancies with real-number computation [11, 16]. Finally, rather than maintaining a dedicated VerCors knowledge base as [6] do, we include only minimal VerCors advice in the Generator agent's prompt, speculating that newer underlying models have likely been trained on the relevant content.
4 Results
The Experiment We ran our pipeline with different LLMs taking the place of the Generator and Prover agent. Each undertook the 30 selected problems from levels 1 and 2 of KernelBench. These are problems whose reference computations lie within the fragment supported by our deterministic compilers (Section 3); within that fragment we chose problems to be representative, spanning the four structural families of Table 2 (the full list is given in Appendix A), and 30 is enough to give a meaningful picture of the pipeline's capabilities. For a given LLM and a given problem, the agent is allowed up to 5 valid rounds in order to produce a semantically correct and memory safe kernel. A round constitutes the following steps. The Generator agent is provided with the original PyTorch code and asked to generate the corresponding CUDA code with VerCors annotations. If importing this into the proving environment via the CUDA AST Extraction process is successful, the round counts as valid. In order that the LLM is not restricted by limitations of the compiler, an invalid round is allowed to be retried. Upon this import being successful, the proving phase begins, invoking the loom_solve SMT tactic and an optional deployment of the Prover agent. Regardless of the outcome of the proving phase, VerCors proceeds to test the kernel for safety. If both of these phases are successful, the round and problem are complete. If either fails, all feedback is given back to the Generator agent who begins a fresh round for the problem. All successes, failures, timings and intermediate kernels were logged throughout the process. We made use of OpenCode [17] in order to implement the workflow. The pipeline requires no GPU: every verification stage (the CUDA import, Lean elaboration, cvc5, and VerCors) runs on CPU on a single workstation, with the LLMs accessed through their public APIs; the campaign totalled roughly 14 hours of pipeline wall-clock time over 131 rounds for GPT-5-fast and 9 hours over 102 rounds for Opus-5-fast. Figure 2 shows the overall pass rates for both models over each round.
Problem categories We group the 30 problems into four families according to the structure of the reference computation, since this structure, rather than the surface identity of the operator, is what determines the shape of the resulting proof. Elementwise problems (the activation functions) compute each output from the single corresponding input, so the contract is a per-element scalar equality with no cross-element dependence. Matmul problems compute each output as a dot product over a shared dimension, introducing an accumulation loop whose partial sums must be captured by a loop invariant and whose summation order is part of the specification. Gemm+epilogue problems (the level-2 kernels) compose a matrix multiply with a bias and an elementwise epilogue, so their proofs combine the accumulation reasoning of a matmul with the exact-form reasoning of an activation.
Table 2: Joint (Lean VerCors) and per-axis pass rates within five valid attempts, by specification family. Counts are passed/total problems; percentages in parentheses. Notably, Claude Opus 5 is able to provide semantically equivalent kernels for every problem, but neither model is able to prove thread safety for all problems. A Lean proof here is a semantic equivalence between the adapted, sequential version of the kernel, not the original CUDA implementation. We are trusting that this translation is accurate.
| Family | n | GPT-5-fast | Opus-5-fast | ||||
|---|---|---|---|---|---|---|---|
| Joint | Lean | VerCors | Joint | Lean | VerCors | ||
| Elementwise | 11 | 6 (55%) | 6 (55%) | 11 (100%) | 11 (100%) | 11 (100%) | 11 (100%) |
| Matmul | 8 | 4 (50%) | 8 (100%) | 6 (75%) | 5 (62%) | 8 (100%) | 5 (62%) |
| Gemm+epilogue | 7 | 0 (0%) | 1 (14%) | 4 (57%) | 3 (43%) | 7 (100%) | 3 (43%) |
| Reduction | 4 | 1 (25%) | 3 (75%) | 2 (50%) | 3 (75%) | 4 (100%) | 4 (100%) |
| Overall | 30 | 11 (37%) | 18 (60%) | 23 (77%) | 22 (73%) | 30 (100%) | 23 (77%) |

(a) Cumulative joint pass rate

(b) Per-round outcome grid
Figure 2: Pass rates for each model across all problems. Figure 2a shows the cumulative fraction of problems jointly verified against the number of valid attempts used; Opus-5-fast ultimately validates roughly double the number of kernels that GPT-5-fast does. Figure 2b shows, for every problem (indexed 1–30 down the left, grouped by family) and every round, the round's outcome: both axes passed, only the semantic (Lean) axis, only the safety (VerCors) axis, neither, or an invalid round whose import failed.
Reduction problems (softmax and the norms) make each output depend on an entire row or on the whole tensor, requiring one or more reduction passes before any output can be written. Table 2 reports pass rates within these families and Figure 2b resolves them to the level of individual rounds.
Analysis Two patterns are visible across Table 2 and Figure 2b. First, the two axes fail for different reasons and in different places. The semantic axis is where the models differ most: Opus-5-fast establishes semantic equivalence on all thirty problems, whereas GPT-5-fast does so on eighteen, and essentially all of that gap sits in the structured families. On the elementwise problems the difference is one of exact floating-point form, GPT-5-fast frequently producing a kernel that is close but not bit-identical to the reference (Section 5.2), which costs it five of eleven problems on the semantic axis while Opus-5-fast loses none. The gap widens with structural complexity: on the gemm+epilogue family, which demands both accumulation and epilogue reasoning at once, GPT-5-fast establishes equivalence on only one of seven problems against a clean sweep for Opus-5-fast. The safety axis, by contrast, is largely model-independent: both models verify safety on the same twenty-three problems, and it is the binding constraint on the matmul and gemm families, where the structured access patterns make the required memory-safety annotations hardest to get right regardless of which model produced them. Second, the joint metric is therefore gated by whichever axis is harder for a given family: elementwise and reduction problems are limited by the semantic axis and reduction problems by it only for the weaker model, whereas matmul and gemm are limited by safety. The net effect is that Opus-5-fast, by clearing the semantic axis everywhere, converts most of its safety passes into joint passes, while GPT-5-fast forfeits joint passes it could otherwise have claimed on the structured families because its kernels are not semantically faithful. We caution that these observations derive from a single campaign per model under one agent configuration; they characterise our runs rather than constituting a controlled comparison of the underlying models.
5 Case Study
We now examine two representative case studies from the runs. The first shows the semantic checker certifying a kernel whose numerics depend on a transcendental function that the framework never interprets. The second shows the checker rejecting a kernel over a genuine floating-point discrepancy, and the feedback loop repairing the CUDA implementation. Three further studies are deferred to Appendix B. Throughout, we refer to problems by their index (1–30) in the ordering of Figure 2b; the indexed problem list is given in Appendix A.
5.1 Verifying floating-point numerics through opaque functions
On the sigmoid activation (problem 3), both GPT-5-fast and Opus-5-fast converged quickly, each writing essentially the kernel below and having its equivalence to the PyTorch reference discharged automatically by loom_solve, with no interactive proof and no additions to the lemma library.
global void sigmoid_kernel(float* x, float* out, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < n) out[i] = 1.0f / (1.0f + expf(-x[i])); // spec: 1 / (1 + exp(-x)) }
The kernel calls expf, and CUDA's device expf has no bit-exact model in Lean. As described in Section 3, the compiler therefore maps it to an opaque symbol, and the reference specification is written over the same symbol. The proof does not compute an exponential anywhere: it succeeds because the kernel applies that symbol to the same argument as the specification, and the remaining operations, the addition and the reciprocal, are the fully modelled Float32 operations, which the two sides perform identically. What is established is thus a structural equivalence that holds for every interpretation of the exponential: the pipeline never asserts anything about how the hardware rounds expf, and never verifies a numerical identity that is false in floating point.
The one instructive divergence concerned which function is called. On the ELU activation (problem 9), GPT-5-fast substituted the fast-math intrinsic __expf for expf; because the approximate intrinsic is imported as a distinct opaque symbol, the equivalence could not be established, and the model reverted to expf in the following round. This is a genuine mistake surfaced by the checker, since __expf is not interchangeable with expf at the bit level.
5.2 Feedback prompting a semantic correction
Interesting cases are those in which the semantic-equivalence step did not pass and the feedback identified the cause as a genuine discrepancy rather than an inability of the Prover agent to complete the proof. A subtle example arose for Opus-5-fast on problem 25, a fused matrix-multiply with a bias and additive epilogue followed by a ReLU. For its first three rounds the kernel wrote the rectification as a strict test against zero,
out[i] = (y < 0.0f) ? 0.0f : y; // rounds 1-3: equivalence did not pass out[i] = (y > 0.0f) ? y : ((y != y) ? y : 0.0f); // round 5: accepted
Over the reals the strict form is exactly the rectifier, but in Float32 it disagrees with the reference on a single input: applied to negative zero, the test -0.0f < 0.0f is false, so the kernel returns -0.0f, whereas the reference's ReLU maps -0.0 to +0.0. This meant the checker declined the kernel. The accepted form passes strictly positive values through unchanged, propagates NaN via the y != y test, and sends negatives and both zeros to +0.0f. The model's own kernel comments record this diagnosis, noting also that fmaxf is deliberately avoided because IEEE's maximum-number operation would drop the NaNs the specification propagates (cf. Appendix B.2). An intermediate round wrote the non-strict (y <= 0.0f) ? 0.0f : y, which no longer disagreed with the reference on any input but was still rejected: it is not a form the automation could bridge to the specification's maximum, a provability failure of the kind discussed next. Because both models write real Float32 arithmetic that the framework models, the pipeline is able to distinguish behaviour on special values that finite tests are unlikely to pick up on.
6 Conclusion
In this work, we introduced a framework for verifying LLM-generated GPU kernels from a high-level PyTorch specification. The framework employs various technologies such as Velvet, VerCors and TorchLean in order to provide semantic and safety guarantees about the LLM-generated parallel CUDA code. Our work aimed to build upon existing work such as [6] by introducing two key differences:
-
A minimal, deterministic CUDA-to-Lean translation step, rather than an LLM, allowing for semantic equivalence to be ascertained between the CUDA and PyTorch code.
-
Semantic verifications were performed over Float32, with transcendental functions implemented as opaque definitions.
The effect of 1 is that we reduce the amount of CUDA code we can reason about in Lean. However, it means that if an incorrect CUDA-to-Lean translation takes place, it is only the compiler that needs to be inspected. It can be modified and fixed. The importance of 2 is that treating numerical algorithms as if they were implemented over or can lead to large errors, thus rendering the semantic verification less meaningful. We provided case studies in Section 5 and Appendix B that demonstrate concrete examples of how our harness can catch these semantic discrepancies.
Limitations One limitation of our approach is that whilst a deterministic CUDA-to-Lean transformation step is valuable for removing stochasticity from the workflow, it means that the semantics that we can represent are limited by that compiler. Rather than relying on this or an LLM, another approach could be similar to that used in [12]: providing an executable semantics in Lean for the target program, then relying on differential testing to ensure validity of the proposed semantics. A second limitation is that as it currently stands, there are no semantics defined for hardware-level transcendental functions in Lean. Because these functions are left opaque, our equivalence theorems transfer to executed code only under the assumption that the specification-side and kernel-side implementations of each transcendental agree pointwise (Section 3); when the reference and the kernel run on the same device this holds by construction, but across backends the two implementations need not agree bit-for-bit, and the guarantee is then equivalence only up to a common interpretation of those functions. Giving these functions genuine semantics in Lean would be a difficult challenge but an important next step if we are to trust the results of LLM-generated and optimised GPU code. Finally, our evaluation is a single campaign per model over 30 problems: pass rates are reported as raw counts, and we make no attempt to characterise run-to-run variance in agent behaviour.
Broader impact Machine-checked verification of LLM-generated kernels offers a route to trusting generated code in production ML systems: it catches silent numerical defects that empirical testing misses (Section 5), and as code generation is increasingly delegated to language models, we regard establishing this kind of trust as the principal positive impact of this line of work. The corresponding risk is over-trust: an equivalence certificate covers only the stated specification and assumptions, and could lend unearned confidence to code whose preconditions are violated in deployment or whose transcendental implementations differ between the specification and target backends. We mitigate this by keeping every assumption explicit in the proving environment and by stating precisely the conditions under which our guarantees transfer to executed code (Section 3).
Acknowledgments and Disclosure of Funding
This work was carried out at Logos Research. We are grateful to Logos Research for the compute resources, engineering infrastructure, and research environment that supported this work and made the work possible, and to our colleagues there for helpful discussions and feedback.
References
[1] Lukas Armborst, Pieter Bos, Lars B. van den Haak, Marieke Huisman, Robert Rubbens, Ömer Şakar, and Philip Tasche. The VerCors Verifier: A Progress Report. Computer Aided Verification 2024. Springer International Publishing, 2024. doi: 10.1007/978-3-031-65630-9_1.
[2] Haniel Barbosa, Clark W. Barrett, Martin Brain, Gereon Kremer, Hanna Lachnitt, Makai Mann, Abdalrhman Mohamed, Mudathir Mohamed, Aina Niemetz, Andres Nötzli, Alex Ozdemir, Mathias Preiner, Andrew Reynolds, Ying Sheng, Cesare Tinelli, and Yoni Zohar. cvc5: A versatile and industrial-strength SMT solver. In Dana Fisman and Grigore Rosu, editors, Tools and Algorithms for the Construction and Analysis of Systems - 28th International Conference, TACAS 2022, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2022, Proceedings, Part I, volume 13243 of Lecture Notes in Computer Science, pages 415–442. Springer, 2022. doi: 10.1007/978-3-030-99524-9_24.
[3] Beneficial AI Foundation. FloatSpec: Formally verified floating-point library for Lean 4. GitHub repository, 2026. URL https://github.com/Beneficial-AI-Foundation/FloatSpec. Accessed 2026-08-25.
[4] Adam Betts, Nathan Chong, Alastair F. Donaldson, Shaz Qadeer, and Paul Thomson. GPUVerify: A verifier for GPU kernels. In Proceedings of the 27th Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA '12, pages 113–132. ACM, 2012. doi: 10.1145/2384616.2384625.
[5] Tung-Che Chang, Sehyeok Park, Jay P. Lim, and Santosh Nagarakatte. FLoPS: Semantics, operations, and properties of P3109 floating-point representations in Lean, 2026. URL https://arxiv.org/abs/2602.15965.
[6] Bodhisatwa Chatterjee, Drew Zagieboylo, Sana Damani, Siva Hari, and Christos Kozyrakis. ProofWright: Towards agentic formal verification of CUDA, 2025. URL https://arxiv.org/abs/2511.12294.
[7] Kshitij Dubey, Benjamin Driscoll, Anjiang Wei, Neeraj Kayal, Rahul Sharma, and Alex Aiken. Equivalence checking of ML GPU kernels, 2025. URL https://arxiv.org/abs/2511.12638.
[8] Ashraf Eassa and Sukru Burc Eryilmaz. Nvidia sets new generative ai performance and scale records in mlperf training v4.0. NVIDIA Technical Blog, June 2024.
[9] Robert Joseph George, Jennifer Cruden, Will Adkisson, Xiangru Zhong, Huan Zhang, and Anima Anandkumar. Torchlean: Formalizing neural networks in lean. arXiv preprint arXiv:2602.22631, 2026.
[10] Vladimir Gladshtein, Vitaly Kurin, Yueyang Feng, Dipesh Kafle, George Pírlea, Qiyuan Zhao, and Ilya Sergey. Velvet: A foundational multi-modal verifier for imperative programs in lean. In International Conference on Computer Aided Verification, pages 228–242. Springer, 2026.
[11] David Goldberg. What every computer scientist should know about floating-point arithmetic. ACM computing surveys (CSUR), 23(1):5–48, 1991.
[12] Kesha Hietala and Emina Torlak. Lean into verified software development. AWS Open Source Blog, April 2024. URL https://aws.amazon.com/blogs/opensource/lean-into-verified-software-development/. Accessed: 2026-09-06.
[13] Vincent Lefevre, Jean-Michel Muller, and Arnaud Tisserand. The Table Maker’s Dilemma. PhD thesis, Laboratoire de l’informatique du parallélisme, 1998.
[14] Daniel Lustig, Sameer Sahasrabuddhe, and Olivier Giroux. A formal analysis of the NVIDIA PTX memory consistency model. In Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS '19, pages 257–270. ACM, 2019. doi: 10.1145/3297858.3304043.
[15] Abdalrhman Mohamed, Tomaz Mascarenhas, Harun Khan, Haniel Barbosa, Andrew Reynolds, Yicheng Qian, Cesare Tinelli, and Clark Barrett. Lean-smt: An smt tactic for discharging proof goals in lean. In International Conference on Computer Aided Verification, pages 197–212. Springer, 2025.
[16] David Monniaux. The pitfalls of verifying floating-point computations. ACM Transactions on Programming Languages and Systems (TOPLAS), 30(3):1–41, 2008.
[17] OpenCode contributors. Opencode: The open source ai coding agent. https://github.com/anomalyco/opencode, 2026.
[18] OpenCompl. fp-lean: Floating-point semantics mechanization for Lean. GitHub repository, 2026. URL https://github.com/opencompl/fp-lean. Accessed 2026-08-25.
[19] Anne Ouyang, Simon Guo, Simran Arora, Alex L. Zhang, William Hu, Christopher Ré, and Azalia Mirhoseini. Kernelbench: Can llms write efficient gpu kernels? In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 47356–47415. PMLR, 2025.
[20] Mohsen Safari and Marieke Huisman. Formal verification of parallel prefix sum and stream compaction algorithms in CUDA. Theoretical Computer Science, 912:81–98, 2022. doi:10.1016/j.tcs.2022.02.027.
[21] Neel Somani. VeriCUDA: A mechanized rust-to-PTX memory model with a deterministic tree reduction theorem. GitHub repository, 2026. URL https://github.com/neelsomani/vericuda. Accessed 2026-08-25.
[22] Jubi Taneja, Tom St John, and Natalie Serrino. Formally verifying AI-generated GPU kernels. Gimlet Labs, July 2026. URL https://gimletlabs.ai/blog/formally-verifying-ai-generated-kernels. Accessed 2026-08-25.
[23] The Mathlib Community. The lean mathematical library. In CPP 2020 - Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, co-located with POPL 2020, pages 367–381. Association for Computing Machinery, Inc, 1 2020. ISBN 9781450370974. doi: 10.1145/3372885.3373824.
[24] Yunxiang Zhang, Ping Yu, Jianyu Wang, Xiangjun Fan, Julian Reed, Azalia Mirhoseini, and Will Su. Kernelbench-verified: Do llm-generated kernels actually beat pytorch? arXiv preprint arXiv:2607.16241, 2026. doi: 10.48550/arXiv.2607.16241.
A The 30 benchmark problems
Table 3 lists the 30 KernelBench problems used in the campaign, in the index order of Figure 2b: grouped by structural family (Section 4), then by KernelBench problem number.
B Additional case studies
This appendix collects three further episodes referenced in Section 5: a safety-driven repair, a semantic rejection that the model did not resolve, and a proof obligation that recurred across almost every problem.
Table 3: The 30 KernelBench problems attempted by both models, with their KernelBench level and structural family.
| # | Level | KernelBench problem | Family |
|---|---|---|---|
| 1 | 1 | 19_ReLU | Elementwise |
| 2 | 1 | 20_LeakyReLU | Elementwise |
| 3 | 1 | 21_Sigmoid | Elementwise |
| 4 | 1 | 22_Tanh | Elementwise |
| 5 | 1 | 25_Swish | Elementwise |
| 6 | 1 | 27_SELU | Elementwise |
| 7 | 1 | 28_HardSigmoid | Elementwise |
| 8 | 1 | 30_Softsign | Elementwise |
| 9 | 1 | 31_ELU | Elementwise |
| 10 | 1 | 32_HardTanh | Elementwise |
| 11 | 1 | 88_MinGPTNewGelu | Elementwise |
| 12 | 1 | 1_Square_matrix_multiplication | Matmul |
| 13 | 1 | 2_Standard_matrix_multiplication | Matmul |
| 14 | 1 | 4_Matrix_vector_multiplication | Matmul |
| 15 | 1 | 6_Matmul_with_large_K_dimension | Matmul |
| 16 | 1 | 7_Matmul_with_small_K_dimension | Matmul |
| 17 | 1 | 8_Matmul_with_irregular_shapes | Matmul |
| 18 | 1 | 9_Tall_skinny_matrix_multiplication | Matmul |
| 19 | 1 | 13_Matmul_for_symmetric_matrices | Matmul |
| 20 | 2 | 9_Matmul_Subtract_Multiply_ReLU | Gemm+epilogue |
| 21 | 2 | 12_Gemm_Multiply_LeakyReLU | Gemm+epilogue |
| 22 | 2 | 59_Matmul_Swish_Scaling | Gemm+epilogue |
| 23 | 2 | 63_Gemm_ReLU_Divide | Gemm+epilogue |
| 24 | 2 | 70_Gemm_Sigmoid_Scaling_ResidualAdd | Gemm+epilogue |
| 25 | 2 | 76_Gemm_Add_ReLU | Gemm+epilogue |
| 26 | 2 | 81_Gemm_Swish_Divide_Clamp_Tanh_Clamp | Gemm+epilogue |
| 27 | 1 | 23_Softmax | Reduction |
| 28 | 1 | 37_FrobeniusNorm | Reduction |
| 29 | 1 | 38_L1Norm | Reduction |
| 30 | 1 | 39_L2Norm | Reduction |
B.1 Feedback prompting a safety correction
Whereas Section 5.2 concerns the semantic axis, the safety axis produced its own repairs. On problem 13, a standard matrix multiplication, Opus-5-fast's first kernel was already memory-safe. Each thread wrote a single distinct output cell, but the safety checker could not confirm it, reporting that a read offset might fall outside the buffer. The kernel body was left unchanged in the next round; the model instead supplied the buffer extents it had previously omitted and restated them as loop invariants:
/@ context |pointer_length(A) >= 16777216; // added: buffer extents context |pointer_length(B) >= 33554432; context |pointer_length(C) >= 8388608; ... @/ for (int k = 0; k < K; k++) { /@ loop_invariant |pointer_length(A) >= 16777216; ... @/ // carried into loop acc += A[rK + k] * B[kN + c]; }
The accesses were in bounds throughout; the difficulty was that the reasoning could not derive that fact without the extents being asserted and, because the checker does not propagate facts across a loop automatically, restated as invariants. The feedback therefore taught the model to supply a true precondition the verifier required rather than to alter the computation. This is a completeness gap in the annotations, made visible and closed by the loop, rather than a defect in the kernel; annotation-only safety repairs of this kind were common across both models.
B.2 A semantic mismatch that was not resolved
Not every rejection was repaired, and the row-wise softmax (problem 27) provides an informative comparison between the two models. The specification computes a numerically stable softmax, subtracting the row maximum before exponentiating; the maximum is a fold using the reference's maximum operation, which propagates NaN. GPT-5-fast implemented the fold with the CUDA library call fmaxf:
rowmax = fmaxf(rowmax, x[base + k]); // GPT-5-fast: equivalence never passed rowmax = (rowmax <= x[base + k]) ? x[base + k] : rowmax; // Opus-5-fast: accepted
This is a genuine bit-level discrepancy and it is surfaced by the checker: fmaxf realises the IEEE “maximum-number” operation, which drops a NaN operand, whereas the reference’s maximum propagates it, so the two disagree on any row containing a NaN. Because the contract quantifies over all inputs, the semantic-equivalence step correctly declined the kernel, and it did so in all five of GPT-5-fast’s attempts. Opus-5-fast, by contrast, wrote the reference’s exact ternary maximum from its first attempt. Its kernel comments explicitly note that this differs from fmaxf, and its softmax passed the semantic step in every round. This case illustrates that the checker distinguishes two functions that agree on all non-NaN inputs.
B.3 Recurring proof obligations and the case for a standing library
A striking feature of the runs is how often the Prover agent re-established the same facts in the lemma library. Because the lemma library is reset at the start of each problem (Section 3), any general-purpose fact must be re-proved from scratch for every problem that needs it. One obligation in particular dominated: a book-keeping fact about the output array, namely that extending a per-cell postcondition across a single write preserves it, so that if every already-written cell matches the specification then it still does after one further cell is written. In the runs this was stated per problem in the form below (shown for the rectifier of problem 1).
theorem set_extend (x out : Array Float32) (gid : Nat) (v : Float32) (hlt : gid < out.size) (hv : v = spec x[gid]!) (hprev : ∀ k, k < gid → out[k] != spec x[k]!) : ∀ k, k < gid + 1 → (out.set! gid v)[k] != spec x[k]!
Only the reference spec changes between problems; the statement and its proof are otherwise identical, and it was re-proved in over fifty of the problem-runs. Two further obligations recurred in the same way: the reduction of a matrix-multiply entry to its sequential accumulation loop, across the matmul and gemm families, and a family of bridges relating a piecewise activation written as a nested conditional in the kernel to the clamp or maximum the specification denotes, across the rectifier variants and the fused epilogues.
Each of these is problem-independent, yet under the current design it consumes part of the Prover's fixed per-round budget on every problem, budget that, on the hardest problems, is the difference between a completed proof and an exhausted attempt. This points less to a bespoke lemma library than to a need for stronger automation. Developments that made facts of this kind available to loom_solve directly, whether through a maturing TorchLean with reusable results about its tensor and reduction operators, or through richer Float32 reasoning in the underlying floating-point libraries, would let the SMT backend discharge many of these obligations without any interactive step at all. Such automation would shift what the benchmark measures from proof-engineering stamina towards the faithfulness of the generated kernel, and would narrow the gap between stronger and weaker models, since much of the observed gap on the reduction and gemm families reflects the weaker model's inability to reconstruct these standard facts within the budget rather than a difference in the kernels it wrote. Improving the automation available for reasoning about these kernels is, in our view, one of the more valuable directions for making this style of verification practical.
NeurIPS Paper Checklist
1. Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
Answer: [Yes]
Justification: The contributions stated in the abstract and Section 1 (agentic semantic and safety verification of LLM-generated CUDA kernels over Float32, and the identification of semantic failures that pass conventional tests) correspond directly to the results in Section 4 (Table 2, Figure 2) and the case studies in Section 5, with the underlying assumptions (explicit preconditions, opaque transcendental functions) stated in Section 3.
Guidelines:
• The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.
• The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.
• The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
• It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Section 6 contains a dedicated Limitations paragraph covering the restricted CUDA fragment handled by the deterministic compiler, the pointwise-agreement assumption required to transfer results over opaque transcendental functions to executed code, and the single-campaign scope of the evaluation.
Guidelines:
• The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.
• The authors are encouraged to create a separate “Limitations” section in their paper.
• The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
• The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
• The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
• The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
• If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
• While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
3. Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [N/A]
Justification: The paper does not include any theoretical results.
Guidelines:
• The answer [N/A] means that the paper does not include theoretical results.
• All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
• All assumptions should be clearly stated or referenced in the statement of any theorems.
• The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
• Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
• Theorems and Lemmas that the proof relies upon should be properly referenced.
4. Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: Section 3 specifies every pipeline component and Section 4 the full protocol: the 30 selected KernelBench problems, the five-valid-round loop, the 300-second per-round prover budget, the exact model variants, the feedback mechanism, and the orchestration harness; all rounds, kernels, and outcomes were logged.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
• If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
• Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
• While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example
(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm.
(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully.
(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset).
(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
5. Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
Answer: [Yes]
Justification: The complete pipeline (campaign controller, deterministic CUDA-to-Lean translator, specification modules, agent prompts, and vendored Lean dependencies) is included as supplementary material, with a README covering requirements, model-access prerequisites, setup, build, tests, and the exact command reproducing the campaign. The code accompanies the submission for review purposes and is not otherwise publicly released.
Guidelines:
• The answer [N/A] means that paper does not include experiments requiring code.
• Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
• While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
• The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
• The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
• The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
• At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
• Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
6. Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
Answer: [Yes]
Justification: No models were trained. Section 4 details the complete experimental protocol, including problem selection, the round structure, agent budgets, the feedback loop, and the underlying models.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
• The full details can be provided either with the code, in appendix, or as supplemental material.
7. Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [No]
Justification: Results are pass/fail counts from a single campaign per model over 30 problems (Table 2); repeated campaigns to characterise run-to-run variance in agent behaviour were not run for cost reasons, as stated in the Limitations paragraph of Section 6.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
• The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
• The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
• The assumptions made should be given (e.g., Normally distributed errors).
• It should be clear whether the error bar is the standard deviation or the standard error of the mean.
• It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
• For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).
• If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
8. Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: Section 4 states that every verification stage runs CPU-only on a single workstation with the LLMs accessed through their public APIs, and reports the total pipeline wall-clock time per model (roughly 14 hours over 131 rounds for GPT-5-fast and 9 hours over 102 rounds for Opus-5-fast); no further compute was required by the project.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
• The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
• The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
9. Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The research verifies machine-generated GPU kernels; it involves no human subjects, personal data, or high-risk models or datasets.
Guidelines:
• The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.
• If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.
• The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
10. Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: Section 6 contains a Broader impact paragraph: the positive impact is a route to trusting LLM-generated code in production systems by catching silent numerical defects that testing misses; the risk is over-trust in certificates whose specifications or assumptions do not hold in deployment, mitigated by keeping every assumption explicit and stating when guarantees transfer to executed code.
Guidelines:
• The answer [N/A] means that there is no societal impact of the work performed.
• If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.
• Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
• The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
• The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
• If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
11. Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: The paper releases no data or models that pose a risk of misuse.
Guidelines:
• The answer [N/A] means that the paper poses no such risks.
• Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
• Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
• We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
12. Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: All existing assets — KernelBench, TorchLean, Velvet, VerCors, Mathlib, cvc5, torch.fx, and OpenCode — are credited by citation in Sections 2 and 3 and are used in accordance with their open-source licenses.
Guidelines:
• The answer [N/A] means that the paper does not use existing assets.
• The authors should cite the original paper that produced the code package or dataset.
• The authors should state which version of the asset is used and, if possible, include a URL.
• The name of the license (e.g., CC-BY 4.0) should be included for each asset.
• For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
• If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
• For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
• If this information is not available online, the authors are encouraged to reach out to the asset’s creators.
13. New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [Yes]
Justification: The new assets (the campaign controller, the CUDA-to-Lean translator, and the 30 machine-checked specification modules) are provided in the supplementary material, documented by the repository README and the campaign runbook (CAMPAIGN.md); they are provided for review rather than as a public release.
Guidelines:
• The answer [N/A] means that the paper does not release new assets.
• Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
• The paper should discuss whether and how consent was obtained from people whose asset is used.
• At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
14. Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [N/A]
Justification: The paper involves neither crowdsourcing nor research with human subjects.
Guidelines:
• The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
• Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
• According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
15. Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: The paper involves neither crowdsourcing nor research with human subjects. Guidelines:
• The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
• Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
• We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
• For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
16. Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
Answer: [Yes]
Justification: LLM agents are the object of study rather than an incidental tool: Sections 3 and 4 fully describe how the Generator and Prover agents use GPT-5.6 Terra and Claude Opus 5 (fast variants), including their roles, budgets, and the verification feedback they receive.
Guidelines:
• The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.
• Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.