Blazing-Fast SMT-LIB Parsing for Rust and Lean
Jan Onderka, Armin Biere, Henrik B\"oving
Key points
From the paper's conclusion- We introduce blazing-smtlib, a Rust parsing library for SMT-LIB, and BSmtLib, its port to Lean.
Abstract
SMT-LIB is a standard input format for Satisfiability Modulo Theories (SMT) solvers. However, parsing the format is non-trivial and can become a bottleneck, e.g. when retrieving benchmark metadata or normalising the input for solvers. We introduce blazing-smtlib, a Rust parsing library for SMT-LIB, and BSmtLib, its port to Lean. We outline the library API we designed for composability and extensibility (including non-standard SMT-LIB commands), and discuss our implementation decisions for fast lexing and parsing. We proved that our lexing and parsing with Lean-specific optimisations match our formalised reading of the SMT-LIB syntax. We measured performance on a representative sample from the 2025 SMT-LIB corpus and found that blazing-smtlib is more than 6 times faster on the geometric mean than previous parsing libraries and BSmtLib is faster or comparable to them.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DueList: A Theory of Lists with Combinators for SMT SolversarXiv · 2026
- Sundance: A Simple SMT Solver for Program VerificationarXiv · 2026
- SeVerus: Context-Aware, Gamified Benchmarking for Rust VerificationarXiv · 2026
- An End-to-End Theory for Compositional Symbolic Execution: From Expressive Specifications to SMT (Extended Version)arXiv · 2026
- LLM-Assisted Unsatisfiability Proofs for Satisfiability Modulo Theories, Oracles, and Natural LanguageProceedings of the ACM on Programming Languages · 2026
- Formally Verified Semidefinite ProgrammingarXiv · 2026