# Lean's kernel against Coq with Flocq: figure captions

Written by `scripts/plot.py`; do not edit by hand. Every figure is `NAME.png` (9 inches wide at 200 dpi) and `NAME.svg`. An image holds only the plot, its axes with units, a legend with short series names and panel letters; the caption says what the figure shows, what was measured, in which unit, on which scales, where and when. The notes say how, which numbers come from Lean and which from scripts, and give the numbers behind the marks.

## Figure 1: `01-kernel-coq-flocq`

![Five panels of lines, one per operation, against format width from 32 to 4,096 bits on logarithmic axes: the FloatLib line is nearly flat near the bottom of each panel, the vm_compute line starts just above it, climbs steeply and ends at 256 or 512 bits, the lazy line starts higher, climbs more slowly and reaches 4,096 bits, and crosses along the top edge mark the widths where Coq gave no result.](01-kernel-coq-flocq.svg "Time of one floating-point operation inside the proof checker: FloatLib in Lean's kernel against Flocq 4.2.2 in Coq 8.20.1 under vm_compute and under lazy, from 32 to 4,096 bits. A point is the time per operation, in milliseconds, in a loop of 100 operations (10 from 512 bits on) on the same operands; a cross at the top marks a width where Coq gave no result within 8 GB and 300 seconds. Both axes are logarithmic, and lower is faster. The Lean times are the median of 5 runs of FloatLib on 2026-11-20 with Lean 4.36.0 on an Intel Xeon Platinum 8275CL (96 threads, shared with other jobs); the Coq times are the recorded run of 2026-11-15 on the same machine, in a container with 8 GB and two CPUs, and do not depend on FloatLib.")

**Figure 1.** Time of one floating-point operation inside the proof checker: FloatLib in Lean's kernel against Flocq 4.2.2 in Coq 8.20.1 under vm_compute and under lazy, from 32 to 4,096 bits. A point is the time per operation, in milliseconds, in a loop of 100 operations (10 from 512 bits on) on the same operands; a cross at the top marks a width where Coq gave no result within 8 GB and 300 seconds. Both axes are logarithmic, and lower is faster. The Lean times are the median of 5 runs of FloatLib on 2026-11-20 with Lean 4.36.0 on an Intel Xeon Platinum 8275CL (96 threads, shared with other jobs); the Coq times are the recorded run of 2026-11-15 on the same machine, in a container with 8 GB and two CPUs, and do not depend on FloatLib.

Alt text: Five panels of lines, one per operation, against format width from 32 to 4,096 bits on logarithmic axes: the FloatLib line is nearly flat near the bottom of each panel, the vm_compute line starts just above it, climbs steeply and ends at 256 or 512 bits, the lazy line starts higher, climbs more slowly and reaches 4,096 bits, and crosses along the top edge mark the widths where Coq gave no result.

Notes: Lean: FloatLib's kernel path, the term that `float_decide` checks (`#kernel_cost rewritten`, `benchmarks/suite/matched.py`); it takes 39 to 276 microseconds per operation over all widths and operations. Coq: Flocq's `Bplus`, `Bmult`, `Bdiv`, `Bsqrt` and `Bfma` (`BinarySingleNaN`, `mode_NE`); in the recorded run Coq printed the value that Lean computed in every row. Where Coq gave a result, vm_compute takes 1.4 to 31,329 times Lean's time (median 24, 22 cells) and lazy 9 to 304,898 times (median 342, 35 cells); Coq gave no result in 13 of 70 cells. From Lean: the Lean times (`Lean.Kernel.whnf`). From scripts: the Coq times (printed by Coq in a container, `benchmarks/results/figures/recorded/coq-flocq.csv` of FloatLib's repository) and the ratios. Source: `results/kernel-coq.csv`.

Files: `01-kernel-coq-flocq.png`, `01-kernel-coq-flocq.svg`.
