Topics include formalized mathematics, information theory, distributed learning, and space communications.
Featured
-
A black-box reduction for network regret
Our reduction turns a single node's comparator-adaptive regret guarantee into one for the whole network. Neighbors exchange predictions once per round.
-
mini-Lean-agent: a coding-agent baseline for Lean
Our Lean agent uses Bash to edit proofs and run Lean. We checked the final submissions with Lean FRO's comparator.
-
Capacity Atlas: formalizing the map of information theory
Capacity Atlas brings together channel-capacity problems and their known bounds. Entries link to the original papers and can include proofs checked in Lean.
All posts
RSS feedA black-box reduction for network regret
During my thesis, I worked on extending comparator-adaptive online learning to decentralized networks. In our preprint, “Black-Box Comparator-Adaptive Network Regret,” I think Hamid Jafarkhani and I have found the right approach! Preprint on arXiv
Suppose you have an online learning algorithm for a single node, with a certain comparator-adaptive regret bound. Our black-box reduction lets you get comparator-adaptive network regret with one round of communication between neighbors per learning step.
Network regret evaluates each node’s prediction on every node’s loss. That matters when predictions are used elsewhere in the network. Juliette Achddou, Cesa-Bianchi, and Qiu also make a case for using it in decentralized learning. Their paper
In our earlier work, we had to bound a pairwise disagreement term. This was painful because the analysis used a linearly growing number of gossip steps per round. Earlier work
In this work, we show that we can bound pairwise disagreement with the graph’s weighted total variation. Each node can compute its contribution to the total variation by just talking to its immediate neighbors!
The second ingredient was constructing a reduction that relates the total-variation-penalized problem to the original problem. We were inspired by Ashok Cutkosky and Francesco Orabona’s paper on black-box reductions.
Giving every pair of neighbors the same weight in the feedback update works on any connected, undirected graph without preprocessing. With a little preprocessing, we can adapt these weights to the network topology and improve the constants in the regret bound.
The experiment code and Lean formalization are on GitHub.
The Lean files from Levent Alpöge's Riemann hypothesis note
Levent Alpöge’s Riemann hypothesis note came with an archive containing a Lean project. I put the extracted files on GitHub, where you can browse them directly. Alpöge’s note
The project lives under extracted/lean/. The repository also has a short summary of the note. Lean files · Summary
An interactive guide to the circulant Hadamard conjecture
A circulant matrix is determined by its first row. Rotate that row one position at a time to get the other rows. The circulant Hadamard conjecture says that if the entries are ±1 and the rows are orthogonal, the matrix has order 1 or 4.
At the Caltech × SAIR Mathathon, Steven Creech and I made an interactive guide to OpenAI’s proposed proof. The overview follows the order-36 example, and you can open each step for the general argument. We received the Most Creative Award for the exposition. Interactive guide · Project repository
Testing network requirements in Lean
If a replica fails, will traffic still go through the gateway that enforces the access rules? Netlib lets you write down that requirement and check it in a Lean model of the network.
The command-line demo checks a network in normal operation and after a replica fails. Its reports link each result to the requirement and show the assumptions and evidence behind it. Netlib source and demo
Norm arithmetic in Lean
If you have bounds for the norms of x + y and x - y, you can bound the norm of x by adding the two vectors to get 2 • x. The norm_arith tactic searches for decompositions like this, and Lean checks the resulting proof.
import NormArith
example {E : Type*} [SeminormedAddCommGroup E] [NormedSpace ℝ E]
(x y : E) (a b : ℝ)
(h₁ : ‖x + y‖ ≤ a) (h₂ : ‖x - y‖ ≤ b) :
‖x‖ ≤ (a + b) / 2 := by
norm_arith
I used AI to generate the tactic, its documentation, and a paper about the method. All three are in the norm-arith repository.
mini-Lean-agent: a coding-agent baseline for Lean
mini-Lean-agent is a lightweight theorem-proving agent for Lean tasks built on mini-SWE-agent. Final submissions are verified with Lean FRO’s comparator. With this agent, we showed that modern LLMs do not need a complicated agent architecture to solve Lean problems.
Our preprint was submitted to arXiv on October 12, 2026. Similar ideas appeared in independent work around the same time: ReuF2F, submitted on October 19, introduced Leanimum-agent, and h1: A Taste of the Bitter Lesson in Automated Theorem Proving, submitted on October 25, introduced the h1 agent.
claim
I built claim, a claim registry for mathematics, where you can post a hash of some math work while you work on the exposition.
You keep the original ZIP and publish its SHA-256 hash. Once you share the archive, anyone can recompute the hash and compare it with the one you posted. If you file a claim in the repo, a bot records the hash in a pull request and uses that pull request’s creation time as the claim date.
arxiv-latex-cleaner in the browser
I built arxiv-latex-cleaner, a web-based interface to clean up LaTeX source files for arXiv submissions. It’s a fork of the original arxiv-latex-cleaner by Google research.
Pick a ZIP of your LaTeX project and download the cleaned ZIP. The cleaner runs in your browser through Pyodide and removes auxiliary files such as .aux and .log. Source code
Princeton Math Calendar
I made a nicer version of Princeton’s Math Department Calendar, with speaker names instead of just the talk titles.
The event description includes the speaker’s affiliation. The feed refreshes daily and works with Google Calendar and Outlook. Subscribe to the calendar
AI for mathematics and formalized mathematics
My current work focuses on AI for theorem proving and formalized mathematics. At Princeton, I work on research and tool development in AI for mathematics.
I previously organized a group for people in the greater Los Angeles area to learn how to write mathematical proofs in Lean. I have contributed to Compfiles, Sphere-Packing, and OrderedSemigroups, among other projects.
PDF Canary
I built pdf-canary, a tool to insert canary strings into PDFs, with both web and client interfaces.
The canary lives in the PDF’s text layer. The page still looks the same when you open it, and tools that extract the text can pick up the canary. The web version processes the file in your browser. Source code
Capacity Atlas: formalizing the map of information theory
Capacity Atlas is a (hopefully) community-maintained registry of channel-capacity problems. It has records of known bounds, and can have Lean formalizations that accompany them. We also reference the primary sources for each proof.
This was inspired by Thomas Bloom’s Erdős Problems website, erdosproblems.com, which was very lively in the mathematics community in 2026. Ideally, this will bring the same energy to the information-theory community, where many problems are still open.
Commonly Cited
I built Commonly Cited, a tool that gives the most commonly cited authors in a given paper’s references. It has a web interface and a command-line interface.
A bibliography often shortens a long author list to “et al.” The web app looks up the full list in Crossref, so those coauthors count too. The audit shows which works the app matched and which references are still unresolved.
The command-line tool can also split the credit for a reference among its authors. With that option, a paper with four authors contributes a quarter to each person’s total. Source code
Privacy-preserving error feedback for distributed learning
Practical distributed learning often uses aggressive, biased compression for communication from clients to the server. Guaranteeing convergence, however, typically requires client-specific control variates for error feedback.
Per-client control variates undermine privacy guarantees and scale poorly with the number of clients. To address this, we proposed a framework that uses previous aggregated client updates for feedback. This permits highly aggressive compression without the privacy and scaling problems of client-specific control variates. The open-source code is available on GitHub.
Parameter-free decentralized learning
Tuning learning rates is a major pain point in online learning. In the decentralized setting, the problem is harder because nodes must coordinate with one another and may have different optimal learning rates.
In our first paper, we proposed a decentralized online learning method that does not require learning rates and achieves sublinear network regret bounds. To do this, we extended the parameter-free framework from Francesco Orabona and Dávid Pál with a gossip consensus scheme. We also developed a new betting-function framework that is easier to analyze and that we believe is of independent interest.
Follow-up work introduced DECO-EF, which combines parameter-free coin-betting predictions with compressed, difference-based gossip. It gives the first expected sublinear network-regret guarantees for parameter-free decentralized online learning under compressed communication, to the best of our knowledge.
The first paper’s analysis requires a linear gossip schedule—in learning round t, we perform t rounds of gossip—to achieve sublinear regret bounds, which is impractical. In our experiments, a constant number of gossip rounds worked well, so we asked whether a constant schedule could also guarantee sublinear network regret.
We followed up on that question in A black-box reduction for network regret.
The code for this project is available on GitHub.
Extremal Sidon sets in Lean
In a Sidon set, each pair sum determines its summands up to order. Miquel Ortega and Sean Prendiville used Fourier estimates to show how near-maximal Sidon sets are distributed in arithmetic progressions. Their paper
The Lean formalization gives explicit constants for the estimates. The repository connects the twelve submitted statements to their checked proofs and records how AI was used. Lean formalization · Proof blueprint
Error-correcting codes from generalized quadrangles
Together with Simeon Ball, we developed a method to construct point-line incidence matrices for several families of generalized quadrangles in polynomial time. The running times have degrees 4, 6, and 11 depending on the family—high, but still an improvement over existing exponential methods.
Using these constructions, we built what is, to our knowledge, the largest repository of point-line incidence matrices for generalized quadrangles. The matrices are also quasi-cyclic, a desirable property when constructing error-correcting codes from generalized quadrangles. The repository includes matrices in the .alist format for running LDPC simulations.
Truly decentralized learning on directed graphs
Decentralized optimization algorithms typically require bidirectional communication between nodes.
For directed networks and non-convex losses, existing algorithms required each node to know how many listeners it had—its out-degree. We proposed a line of work that avoids this requirement.
The framework also naturally accommodates network delays: we can add imaginary nodes to model delayed communication and use the same analysis to obtain convergence guarantees.
Asynchronous federated learning meets compression
In 2021, Meta announced FedBuff, a system for asynchronous federated learning with buffered aggregation. In plain terms, the server waits for a certain number of client updates and then averages the updates in the buffer.
Its analysis did not consider communication compression, a key component of practical federated learning systems. We proposed an algorithm with a similar buffered asynchronous structure and a hidden-state feedback mechanism that supports highly aggressive communication compression.
We proved that the algorithm behaves nicely with respect to the compression parameter: the asynchrony and compression error cross-terms are negligible in the convergence rate.
Our analysis also revealed and fixed a bug in the original FedBuff convergence proof, without requiring its bounded-gradient assumption. Independently, Mohammad Taha Toghani and César A. Uribe proposed another fix, though without considering compression.
Fitting a lattice to noisy points
Suppose you have a set of noisy measurements in the plane and you think they came from a lattice. The code estimates an origin and two basis vectors for that lattice. It alternates between assigning integer coordinates to the measurements and refitting the basis and origin to reduce the squared error.
I implemented the fit in Python and MATLAB. The repository also has an AMPL model. Code and examples
Code from my master's thesis on LDPCs
These are the scripts I used for my master’s thesis at UPC, supervised by Simeon Ball. An LDPC code has a sparse parity-check matrix. Its Tanner graph connects each symbol to the checks that involve it. The MATLAB scripts can draw that graph and compute the length of its shortest cycle. Master’s thesis · Thesis code
The repo also has GAP code for constructing point-line incidence matrices of generalized quadrangles. Simeon and I came back to those constructions in our work on quasi-cyclic codes.
Maintaining communication while entering the Martian atmosphere
During the Entry, Descent, and Landing phase of rover missions to Mars, communication is lost because of the large Doppler shift caused by the spacecraft’s rapid deceleration in the Martian atmosphere. During my time at JPL, we proposed a system that tracks this Doppler shift to maintain communications throughout the phase.
This system will be implemented in the next generation of NASA’s spacecraft radios.
As part of this work, we also derived an analytical approximation for the frequency-error standard deviation of phase-locked loops, which is of independent interest.
JavaSnake
A Snake game in Java.
I made it to run in a terminal. The board adjusts to the size of the window, and each round starts with a new maze of walls.