Andrew M Wells (@WellsAndrewM) profile picture

Code reasoning for fun and profit

Joined December 2020
Photo by Andrew M Wells (@WellsAndrewM)Photo by Andrew M Wells (@WellsAndrewM)Photo by Andrew M Wells (@WellsAndrewM)Photo by Andrew M Wells (@WellsAndrewM)
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
On the plus side, there's never been a better time to remove unwanted ads from your refrigerator
13
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…
3
17
1
100
7,744
Postmortem for Lean Kernel Soundness Bug #14576 leodemoura.github.io/blog/20… #lean4 #leanlang #leanprover
5
37
4
183
77,762
Andrew M Wells retweeted
17
176
10
3,611
56,932
I don't want your lab-grown proofs. The suffering is what makes it special.
1
26
You don’t have to look that far.
JUST IN: 🇺🇸 FBI Director Kash Patel says the FBI will find crypto scammers and bring them to justice.
204
1,351
38
22,397
711,677
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!
305
885
132
13,393
634,448
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.
The sheer scale of a trillion dollars can be hard to comprehend. Let me put it in perspective. You would have to earn a dollar a year for a trillion years straight to have that much money.
336
2,125
124
27,566
897,889
Andrew M Wells retweeted
classic cold start problem
Eight sleep uses AI to guess the temperature you’ll want and it’s somehow wrong literally 100% of the time
2
2
107
7,256
Andrew M Wells retweeted
Replying to @iScienceLuvr
Putting “Ph.D.” in your social media name is a sure sign of a pompous retard
4,404
5,953
1,746
75,163
5,762,015
Andrew M Wells retweeted
This is some major banana republic sh*t!
JUST IN: 🇺🇸 Trump-IRS settlement permanently blocks IRS from auditing tax claims for President Trump and his family, Politico reports.
8
7
229
15,798
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?
“We have to have sympathy. We need to at least let them engage in some stock trading so they can continue to take care of their family.” - House Speaker Mike Johnson (R-LA) on lawmakers trading stocks.
209
552
26
7,761
400,717
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.
4
1
82
6,313
Andrew M Wells retweeted
I wonder if Anthropic would manage to push past IBM if they release Mythos
87
66
48
1,763
173,889
His bloom-berg terminal
The advanced research tool used to do this analysis
50
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
8
82
10
422
29,899
Andrew M Wells retweeted
This is really giving reviewers too much credit.
A striking statistic about the state of academia: About half of all academic papers are read only by the author and reviewer.
39
205
11
3,714
133,663
If your boyfriend uses tailscale instead of rolling his own network, that’s your girlfriend.
relationship is getting serious (adding her macbook to my tailscale network)
116