# MathCode: An AI Coding Agent That Proves Math Theorems in Lean 4

Original title: MathCode, Mathematical Coding Agent

> Hacker News story 49322330 · language: en · submitted 2026-08-16
> Web version: https://zeli.app/story/49322330
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 115 · by [homarp](<https://news.ycombinator.com/user?id=homarp>) · 💬 29
[original](<https://math-ai-org.github.io/mathcode/>) · [HN discussion](<https://news.ycombinator.com/item?id=49322330>)

## Summary

MathCode is a terminal-based AI coding assistant that turns plain-language math problems into formal Lean 4 theorems and proofs. It features a persistent Lean REPL for fast compile checks, a theorem library for reuse, an axiom store, and an Obsidian knowledge graph. The agent can prove theorems interactively, decompose complex goals into parallel subgoals, and use multiple planning strategies. It requires macOS or Linux and the codex CLI.

## Key quote

> A persistent Lean language server brings compile checks to ~0.4s after a one-time warmup, instead of ~30s.

## HN discussion (29 comments)

### [muds](<https://news.ycombinator.com/item?id=49322972>)

> Interesting work. Is this a wrapper around the AUTOLEAN project (https://github.com/T3S1AMAX/autolean)?

### [eisbaw](<https://news.ycombinator.com/item?id=49323278>)

> the tricky bit is ensuring your inaccurate plain english statement is captured and formalized correctly as lean.

### [owlbite](<https://news.ycombinator.com/item?id=49323121>)

> Interesting, but I don't see any licensing terms, which means I can't touch it in a commercial setting.

---

## Cite

- Page: https://zeli.app/story/49322330
- Date: 2026-08-16
- Source: math-ai-org.github.io (https://math-ai-org.github.io/mathcode/)
- Hacker News: https://news.ycombinator.com/item?id=49322330

## Other languages

- zh: https://zeli.app/zh/story/49322330 · markdown: https://zeli.app/zh/story/49322330.md
- ja: https://zeli.app/ja/story/49322330 · markdown: https://zeli.app/ja/story/49322330.md
- ko: https://zeli.app/ko/story/49322330 · markdown: https://zeli.app/ko/story/49322330.md
- de: https://zeli.app/de/story/49322330 · markdown: https://zeli.app/de/story/49322330.md
- es: https://zeli.app/es/story/49322330 · markdown: https://zeli.app/es/story/49322330.md
