# SMT-LIB QF_FP with float_decide: 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-time-by-operation`

![Two panels of markers with whiskers on a logarithmic time axis from 2 to 100 milliseconds, seven operations each: add, sub, mul, div, fma, sqrt and rem above, and rounding to an integer, min, max, abs, eq, lt and gt below. In every group the open FloatLib marker for the whole Lean run is highest, between 47 and 73 milliseconds, the Z3 square lies between 21 and 24, the cvc5 triangle is near 6, and the filled FloatLib marker for the kernel check is lowest, between 2.7 and 4.8, except for min and max, where it is just above the cvc5 triangle at about 6.4.](01-time-by-operation.svg "Time per instance on SMT-LIB's single-operation floating-point benchmarks (the Wintersteiger family, binary64), by operation: FloatLib's proof by `float_decide` in Lean against the SMT solvers Z3 5.4.1 and cvc5 1.4.2. A marker is the median over the 100 sampled instances of an operation of the time per instance, in milliseconds, with a whisker from the 5th to the 95th percentile: for FloatLib the time Lean's kernel takes to check the instance's proof, and the whole Lean run, which adds parsing, elaboration, the axiom report and an equal share of loading the library with 250 instances per process; for a solver the wall time of one process per instance. The time axis is logarithmic, and lower is faster. Measured on FloatLib on 2026-11-21 with Lean 4.36.0, the fastest of three runs of each instance, one process at a time on one core of an Intel Xeon Platinum 8275CL (96 threads, shared with other jobs).")

**Figure 1.** Time per instance on SMT-LIB's single-operation floating-point benchmarks (the Wintersteiger family, binary64), by operation: FloatLib's proof by `float_decide` in Lean against the SMT solvers Z3 5.4.1 and cvc5 1.4.2. A marker is the median over the 100 sampled instances of an operation of the time per instance, in milliseconds, with a whisker from the 5th to the 95th percentile: for FloatLib the time Lean's kernel takes to check the instance's proof, and the whole Lean run, which adds parsing, elaboration, the axiom report and an equal share of loading the library with 250 instances per process; for a solver the wall time of one process per instance. The time axis is logarithmic, and lower is faster. Measured on FloatLib on 2026-11-21 with Lean 4.36.0, the fastest of three runs of each instance, one process at a time on one core of an Intel Xeon Platinum 8275CL (96 threads, shared with other jobs).

Alt text: Two panels of markers with whiskers on a logarithmic time axis from 2 to 100 milliseconds, seven operations each: add, sub, mul, div, fma, sqrt and rem above, and rounding to an integer, min, max, abs, eq, lt and gt below. In every group the open FloatLib marker for the whole Lean run is highest, between 47 and 73 milliseconds, the Z3 square lies between 21 and 24, the cvc5 triangle is near 6, and the filled FloatLib marker for the kernel check is lowest, between 2.7 and 4.8, except for min and max, where it is just above the cvc5 triangle at about 6.4.

Notes: The sample is 1,400 instances drawn with a fixed seed from the 39,994 of the family, 50 of each status for each of the 14 operations. Every tool ran every instance three times, and the time of an instance is the fastest of the three. Lean proved the benchmark's status of every sampled instance with the three standard axioms, and Z3 and cvc5 answered it in every run. Over the whole sample the medians are 4.1 ms for the kernel check (of which 0.48 ms is the decision by evaluation and the rest the check of the rewrite of the public operations to their kernel operations), 62.3 ms for the whole Lean run, 23.5 ms for Z3 (19.7 ms of CPU time) and 5.8 ms for cvc5 (4.2 ms of CPU time). A Lean process took 62 to 79 ms of wall time per theorem over the three repetitions of the six batch files. With one instance per Lean process the wall time is 3.4 seconds per instance (median of 40 instances, 3.1 to 3.6), nearly all of it loading the library, which is why the instances are run in batches (a separate job on another core, at nice 19). A solver also answers a batch in one process (the same 250 instances with `(reset)` between them): Z3 then takes 7.9 to 9.5 ms per instance and cvc5 1.8 to 2.6 ms over the three repetitions. The solvers fold the constants, so their time is starting a process and reading the file. Lean's answer is a theorem whose proof the kernel has checked. Median (5th to 95th percentile), milliseconds:

| operation | FloatLib, kernel check | of which the decision | FloatLib, whole Lean run | Z3 5.4.1 | cvc5 1.4.2 |
| --- | ---: | ---: | ---: | ---: | ---: |
| add | 4.1 (3.9 to 4.8) | 0.40 | 63.2 (60.8 to 74.2) | 21.7 (17.4 to 25.4) | 5.9 (5.2 to 6.3) |
| sub | 4.1 (4.0 to 4.9) | 0.43 | 68.1 (62.0 to 77.9) | 22.1 (17.3 to 25.5) | 5.9 (5.6 to 6.2) |
| mul | 4.3 (4.1 to 5.1) | 0.47 | 63.0 (60.9 to 76.2) | 21.0 (17.0 to 26.4) | 5.7 (5.3 to 6.4) |
| div | 4.2 (4.1 to 4.9) | 0.49 | 63.7 (60.7 to 73.6) | 20.5 (17.0 to 26.3) | 5.7 (5.4 to 6.1) |
| fma | 4.6 (4.4 to 5.5) | 0.65 | 68.0 (64.9 to 78.8) | 21.5 (17.2 to 25.7) | 5.6 (5.4 to 6.0) |
| sqrt | 4.1 (3.9 to 4.7) | 0.56 | 58.6 (56.7 to 68.5) | 21.6 (17.4 to 25.2) | 5.8 (5.5 to 6.1) |
| rem | 4.8 (4.4 to 5.8) | 1.79 | 62.9 (59.6 to 68.1) | 21.4 (17.4 to 25.7) | 5.8 (5.4 to 6.4) |
| toIntegral | 3.1 (3.0 to 3.4) | 0.52 | 60.1 (58.5 to 65.6) | 24.0 (17.4 to 27.2) | 5.9 (5.5 to 6.5) |
| min | 6.4 (6.1 to 6.7) | 2.49 | 73.0 (70.8 to 79.1) | 21.5 (17.3 to 25.0) | 5.8 (5.5 to 6.1) |
| max | 6.3 (6.0 to 6.6) | 2.47 | 72.2 (70.3 to 77.7) | 20.9 (17.2 to 25.2) | 5.7 (5.4 to 6.1) |
| abs | 3.0 (2.9 to 3.1) | 0.36 | 52.6 (51.0 to 54.6) | 22.0 (17.5 to 27.2) | 5.8 (5.5 to 6.4) |
| eq | 2.7 (2.6 to 2.8) | 0.43 | 47.4 (46.8 to 49.7) | 20.7 (16.8 to 24.5) | 5.5 (5.4 to 5.8) |
| lt | 2.7 (2.6 to 3.0) | 0.43 | 48.0 (46.9 to 51.3) | 23.8 (17.3 to 26.0) | 5.7 (5.4 to 6.2) |
| gt | 2.7 (2.6 to 2.9) | 0.42 | 47.7 (46.6 to 50.8) | 21.5 (17.2 to 25.0) | 5.6 (5.3 to 6.0) |
| all | 4.1 (2.6 to 6.4) | 0.48 | 62.3 (47.2 to 75.8) | 23.5 (17.2 to 25.9) | 5.8 (5.4 to 6.2) |

The machine was busy: over the run 35 to 65 percent of its 96 hardware threads were in use (median 55, load average 97 to 131). The run was pinned to the least busy core (CPU 11) at nice 0 with a core-scheduling cookie, so that nothing else ran on the second hardware thread of that core while a process was timed; other tasks still shared the first. From Lean: the kernel time (each proof term checked again with `Lean.Kernel.check`, timed with `IO.monoNanosNow`) and the clock between consecutive instances. From scripts: the process times (`scripts/time_solvers.py`, the monotonic clock around each process), the medians and the drawing. The whole Lean run of an instance is the clock from the end of the previous instance's report to the end of its own, plus an equal share of the rest of the process (loading the library, the prelude, exit). Source: `results/fig-time.csv`.

Files: `01-time-by-operation.png`, `01-time-by-operation.svg`.

## Figure 2: `02-reach-and-competition`

![Two panels of horizontal bars on an axis from 0 to 100 percent. Above, six bars for the families: the wintersteiger bar is entirely blue and ends in 39,994 of 39,994, and the bars of griggio, schanda, Vector, ramalho and UltimateAutomizer are almost or entirely light, ending in 2 of 214, 4 of 44, 6 of 91, 0 of 36 and 0 of 27. Below, five dark bars for Bitwuzla, COLIBRI, cvc5, colibri2 and Z3-Owl that fill between about two thirds and nine tenths of the axis, ending in 255 of 275 for Bitwuzla, and a light bar for FloatLib that ends in 0 of 275.](02-reach-and-competition.svg "What FloatLib's `float_decide` reaches in the QF_FP benchmarks of SMT-LIB 2025, and what SMT solvers solved in that logic at SMT-COMP 2025. In panel (a) a bar is one benchmark family, with the share of its benchmarks whose inputs are all fixed and whose status Lean proved, and the count at its end; the rest of a bar are search problems, which `float_decide` does not attempt. In panel (b) a bar is one solver of the single-query track on the competition's 275 selected benchmarks, from the published results, with FloatLib's count of benchmarks in reach among the same 275 below them. FloatLib was run on 2026-11-21 with Lean 4.36.0 on an Intel Xeon Platinum 8275CL (96 threads, shared with other jobs); the competition ran in 2025 on its own cluster with 1,200 seconds per benchmark.")

**Figure 2.** What FloatLib's `float_decide` reaches in the QF_FP benchmarks of SMT-LIB 2025, and what SMT solvers solved in that logic at SMT-COMP 2025. In panel (a) a bar is one benchmark family, with the share of its benchmarks whose inputs are all fixed and whose status Lean proved, and the count at its end; the rest of a bar are search problems, which `float_decide` does not attempt. In panel (b) a bar is one solver of the single-query track on the competition's 275 selected benchmarks, from the published results, with FloatLib's count of benchmarks in reach among the same 275 below them. FloatLib was run on 2026-11-21 with Lean 4.36.0 on an Intel Xeon Platinum 8275CL (96 threads, shared with other jobs); the competition ran in 2025 on its own cluster with 1,200 seconds per benchmark.

Alt text: Two panels of horizontal bars on an axis from 0 to 100 percent. Above, six bars for the families: the wintersteiger bar is entirely blue and ends in 39,994 of 39,994, and the bars of griggio, schanda, Vector, ramalho and UltimateAutomizer are almost or entirely light, ending in 2 of 214, 4 of 44, 6 of 91, 0 of 36 and 0 of 27. Below, five dark bars for Bitwuzla, COLIBRI, cvc5, colibri2 and Z3-Owl that fill between about two thirds and nine tenths of the axis, ending in 255 of 275 for Bitwuzla, and a light bar for FloatLib that ends in 0 of 275.

Notes: Panel (a): of the 40,406 benchmarks, 40,006 fix every input (every declared constant that the assertions use is equated to a literal or to a term over fixed constants), and Lean proved the status of all 40,006 with `propext`, `Classical.choice` and `Quot.sound` only: 39,994 single-operation tests of the wintersteiger family, 4 of schanda (unsat, binary32), 2 of griggio (they assert nothing, so they are trivially sat) and 6 of Vector (no declared constant; the benchmarks give no status, and Lean proves sat, as Z3 and cvc5 answer). The other 400 are search problems. Panel (b): the competition leaves out benchmarks that every solver answered within a second the year before, which removes the whole wintersteiger family, and none of its 275 selected benchmarks fixes its inputs: Bitwuzla 255 (140 sat, 115 unsat), COLIBRI 232 (133 sat, 99 unsat), cvc5 230 (139 sat, 91 unsat), colibri2 199 (117 sat, 82 unsat), Z3-Owl 173 (104 sat, 69 unsat); the non-competing Z3-Owl-base solved 139. The two panels answer different questions: (a) is evaluation at given inputs with a proof that Lean's kernel checks, (b) is search for inputs. From Lean: every proof and its axioms. From scripts: the classification and translation (`scripts/qffp2lean.py`), the counts, and the competition's numbers (`results-sq-2025.json.gz` of the competition's repository). Sources: `results/fig-coverage.csv`, `results/fig-smtcomp2025.csv`.

Files: `02-reach-and-competition.png`, `02-reach-and-competition.svg`.
