/AI7h ago

Codex AI Solves Math Problem From Paper Written 30 Years Ago

71662415520.2K
Original postAnshul Kundaje#1650
Lior Pachter@lpachter

I recently used codex to solve a problem I posed in my first paper 30+ years ago. This is exciting (for me!) & below I explain the math and also a tool I developed for the project that helps build an alignment between the (human readable) latex and the (machine readable) lean. 1/

7:13 AM · Jun 9, 2026 · 20.2K Views
Sentiment

Users are excited about a mathematician using Codex to formalize and solve a 30-year-old hypercube problem in Lean because it shows AI's potential to help verify complex math proofs.

Pos
100.0%
Neg
0.0%
2 comments with sentiment.
Cluster Engagement
Posts from X
Most Activity
Most Activity
VIEWS1.7K
Lior Pachter@lpachter

To simultaneously prove a theorem while formalizing it a link is needed between definitions, lemmas, propositions, theorems etc. in latex with corresponding declarations in lean. To do this I created a tool called span: https://github.com/pachterlab/span 2/

7hViews 1.7KLikes 13Bookmarks 3
BOOKMARKS4LIKES15
Lior Pachter@lpachter

This approach realizes a vision for "machine-readable representations alongside narratives optimized for humans" as advocated for by @sinabooeshaghi and @NeuroLuebbert https://www.biorxiv.org/content/10.64898/2026.01.30.702911v1. Both are important and latex < -- > lean is a perfect example. 3/

7hViews 1.4KLikes 15Bookmarks 4
RETWEETS2
Lior Pachter@lpachter

I thought about this quite a bit in graduate school, even asking Noga Alon the question once (he gave a partial result on the spot!) It turns out the trivial lower bound can be matched with an elegant application of the probabilistic method. https://arxiv.org/abs/2606.01685 10/

7hViews 815Likes 9Bookmarks 2
REPLIES1
Lior Pachter@lpachter

Several people worked on this problem over the years, but it was a minor problem in a small corner of graph theory, so not that surprising that it has been open for a while. Then again, David Moews (first perfect score on a Putnam!) worked on it https://www.sciencedirect.com/science/article/pii/S0012365X9800154X. 9/

7hViews 845Likes 4Bookmarks 1
Lior Pachter@lpachter

So what is span? https://en.wikipedia.org/wiki/Span_(category_theory) It provides a controlled vocabulary for building a “ledger”, which contains “spans” linking the LaTeX, via labels, to Lean, using fully qualified declaration names. 4/

7hViews 1.1KLikes 7Bookmarks 2
Lior Pachter@lpachter

The span tool will check that the ledger is well formed: the LaTeX labels exist, the Lean declaration names resolve, and the resulting paper-facing graph is generated from real Lean dependencies rather than hand-drawn guesswork. 5/

7hViews 929Likes 3Bookmarks 2
Lior Pachter@lpachter

One of my contributions to that paper was defining optimal pebbling and posing the question to determine the optimal pebbling number of a hypercube. 8/ https://pesc.coppe.ufrj.br/~celina/cursos/cps845/PachterCN95.pdf

7hViews 727Likes 3Bookmarks 2
Lior Pachter@lpachter

There's a nice coda that "cooperation is essential", which is fun because this result echoed ideas I've been thinking about in evolutionary biology. https://www.biorxiv.org/content/10.64898/2026.04.07.716994v1 11/11

7hViews 763Likes 6Bookmarks 2
Lior Pachter@lpachter

So what was the paper I used it for? The math is a conjecture about the optimal pebbling number of a cube. It goes back to my first paper which originated from a summer project when I was an undergrad at Caltech working with a postdoc (Hunter Snevily, 1956 -- 2013). 7/

7hViews 800Likes 4Bookmarks 2
Lior Pachter@lpachter

span also facilitates checking that AI generated lean definitions match what is intended in a proof, and also helps to structure and visualize the architecture of a paper. I am finding that it is now an essential tool for all of my projects. 6/

7hViews 830Likes 3Bookmarks 1
Dani Alami@Daniel_Alami

@lpachter This is so cool!

6hViews 358Likes 1
Rutuja Bhoite@BhoiteRutuja

@lpachter @arjunrajlab Fascinating! excited to explore span for verifying math in papers

5hViews 202Likes 1
Marcos@MAMware

@lpachter ill be here to read about the tool latex/lean

5hViews 189Likes 1