Pinned Tweet
We created a tool to find security vulnerabilities. We reduce token usage by 82% while finding more vulnerabilities.
How? We compute an over-approximation of all possible vulnerable code locations for each vulnerability class to focus the search.
DM me for a trial.
19
Andrew M Wells retweeted
I’m excited to release FloatLib, our verified arbitrary precision floating-point arithmetic library in Lean!
We’ve spent several months working on it, with speed and flexibility as goals from the start. We wanted to choose our own formats and rounding rules, run numerical code efficiently, and prove that its arithmetic behaves as specified.
Recent advances in applied mathematics, including work on Euler and Navier–Stokes, highlight why this matters. Scientific computing and machine learning depend on concrete numerical calculations, where rounding, overflow, and accumulation can affect the result. Formalizing that arithmetic helps connect the mathematics we prove with the code we actually run.
FloatLib brings together many numerical formats, shared arithmetic kernels, and Lean proofs of their behavior. I’ll walk through those pieces more in depthe below, showing some examples, and share what we learned from the numerical checks and speed comparisons.
1/n
Excited to share FloatLib, our verified arbitrary-precision floating-point arithmetic library in Lean.
We’ve spent several months trying to bring together the best of both worlds: arithmetic we can prove correct and implementations that run efficiently.
We built FloatLib to support verified machine learning and scientific computing, where rounding, overflow, and accumulation can change a program’s result.
FloatLib supports IEEE binary and decimal, arbitrary-width posits, P3109, and small ML formats. You can also define your own formats and rounding rules.
Each certified software backend comes with a Lean proof that it computes the specified result, including signed zeros and exceptional values.
A lot of the work went into making those implementations faster, with lookup tables for tiny formats, machine-word kernels, and limb algorithms for wider arithmetic. They share the same specifications, so each optimization must come with a proof that it preserves the result.
We also put FloatLib through extensive numerical checks and speed comparisons with established libraries, including MPFR, Flocq, FLoPS, Berkeley SoftFloat/TestFloat, and the posit libraries SoftPosit and Universal, across a range of formats, operations, and precisions. @Robertljg
Project & Paper: leandojo.org/floatlib.html
Code: github.com/lean-dojo/FloatLi…
Andrew M Wells retweeted
Google engineering culture was so great - even issues like this were covered.
testing.googleblog.com/2015/…
Andrew M Wells retweeted
Postmortem for Lean Kernel Soundness Bug #14576
leodemoura.github.io/blog/20…
#lean4 #leanlang #leanprover
Andrew M Wells retweeted
Really appreciate the city of Austin letting me know that I was imminent danger from the rain at 2am, 4am, 530am, and 6am!
Andrew M Wells retweeted
The sheer scale of a trillion dollars can be hard to comprehend. Let me put it in perspective. You would be able to buy 42 miles of high speed rail in California with that much money.
Andrew M Wells retweeted
What? It's not sufficient to park their money in an index fund or a blind trust? Lawmakers need to be active traders to take care of their families?
Andrew M Wells retweeted
Replying to @BradWilcoxIFS
Misleading stat. It has mostly to do with the wider variety of names for non-Muslim children than. Very different overall distributions.
Andrew M Wells retweeted
The CSLib steering committee recently announced the official launch of CSLib — an open-source effort to formalize computer science in Lean, inspired by the impact of Mathlib in mathematics.
CS researchers, practitioners, and enthusiasts are invited to get involved to support formalizing essential computer science concepts, and building infrastructure for reasoning about real-world code with Lean.
Learn more at:
🌐 cslib.io
📄 White paper: arxiv.org/abs/2602.04846
🤝 Contribute: github.com/leanprover/cslib/…
#LeanLang #LeanProver #CSLib #OpenSource #FormalVerification
































