arXiv · 2602.18657
DSLean: A Framework for Type-Correct Interoperability Between Lean 4 and External DSLs
Abstract
Domain-specific languages (DSLs) mediate interactions between interactive proof assistants and external automation, but translating between the prover's internal representation and such DSLs is a tedious engineering chore. To simplify this task, we present DSLean, a framework for bidirectional translation between expressions in the Lean proof assistant and external syntax. DSLean requires only a specification of an external language and its Lean equivalents, abstracting away meta-level implementation details. We demonstrate DSLean's capabilities by implementing three new automation tactics, providing access to external solvers for interval arithmetic, ordinary differential equations, and ring ideal membership.
Explore related subjects
Keep this discovery
Tate Rowney, Riyaz Ahuja, Jeremy Avigad, Sean Welleck. 2026-02-20. DSLean: A Framework for Type-Correct Interoperability Between Lean 4 and External DSLs. https://arxiv.org/abs/2602.18657
Cite the original work for its findings. Save a collection to share your selection of sources.