Scientific computing in Lean 4
SciLean is a library for scientific computing written in Lean 4, enabling users to solve differential equations, perform optimization, and build machine learning applications. The project aims to leverage Lean's expressive functional programming and formal mathematics capabilities to enable code transformation guided by mathematical formalization, symbolic computation as a first-class feature, code generation from formal specifications, and catalogization of numerical methods. SciLean is built in Lean 4 and relies on OpenBLAS for accelerating numerical computations, with support currently limited to Linux and macOS. The project is in early development and includes performance profiling examples comparing C reference implementations, optimized Lean implementations, and idiomatic SciLean code.