Home›Terence Tao›Article

Lean Grimoire

Terence Tao · Nov 12, 2026

Back in July, I started experimenting with using modern coding agents to build a number of mathematical visualization applets. With the extremely hectic events of the last few months, I had to set those projects aside; but I recently found a bit of time to work on one such project that I had started back then, which was to modernize a Javascript interactive textbook I had made back in 2018, entitled “QED”, and announced previously on this blog. The purpose of that textbook was to teach propositional and first-order logic in the form of a “crafting game”, where one applied various rules of logic to reach a desired conclusion from a given set of hypotheses.

With a coding agent, I rebuilt the game (which I have given the working title of “Lean Grimoire”) with a number of new features, for instance giving the option to show an in-progress Lean proof of one’s game state. Just for fun, I also added an option to play in a “fantasy mode” in which various game elements are depicted using fantasy-themed flavor text (for instance, mathematical statements become “potions”, mathematical expressions become “scrolls”, and so forth). Here is a typical screenshot, in which one has nearly completed the proof of the assertion A \implies A \wedge B given A \implies B:

I would be interested in having some playtesting of this app to make it more useful as a means to teach logical proofs and/or Lean.

Keep reading

Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.

More from Terence Tao

On a Physicist’s Version of Proofs and Prompts

[This is a guest post by Marc Klinger, Charlie Cummings, and Cynthia Keeler. This blog post was initially written in a different file format and converted using AI. — T.] We are excited to announce the launch of our new website Physics and

G.R.H. Polymath

[This is a guest post by Anurag Sahay, Will Sawin, and Lior Silberman – T.] Last Friday Levent Alpöge announced a Lean certificate containing a proof of the Generalized Riemann hypothesis. Since then there has been a flurry of activity in v

Finite-Time Singularity Formation for the Three-Dimensional Euler Equations

[This is a guest post by Matei P. Coiculescu. This blog post was initially written in a different file format and converted using AI. — T.] The Euler equations model the motion of an inviscid fluid: fluid motion in the absence of shear stre

Tenure-track position in pure and applied mathematics at UCLA

The Department of Mathematics at the University of California, Los Angeles, invites applications for a tenure-track faculty position as an Assistant Professor in mathematics. A competitive candidate should have a transformative research pro

Even more posts, opinion pieces, interviews, and position statements

AHM Statement on the Announced Proof of the Riemann Hypothesis Positionen des Präsidiums der Deutschen Mathematiker-Vereinigung (DMV) zur Bedeutung Künstlicher Intelligenz für die Mathematik (Positions of the Presidium of the German Mathema