Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Tex2LeanNew to Visual Studio Code? Get it now.
Tex2Lean

Tex2Lean

kuldeepmeel

|
1 install
| (0) | Free
Turn a paper's theorem or algorithm into a Lean 4 formalization blueprint, using Mathlib and arlib.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tex2Lean

From a theorem in your paper to a working Lean 4 project.

Point this at your .tex sources, pick a result, and get a complete blueprint — the statement restated in Lean, a reuse map onto Mathlib and arlib, a layered architecture.

What you get

Reads your real sources Follows \input/\include/\subfile, picks up your own \newtheorem names, pulls in the proof, setup, and everything the statement \refs
Five focused passes Restate → reuse → architect → lay out → brief
Plain Markdown output BLUEPRINT.md, blueprint.json, tasks/NN-*.md — diffable, reviewable, yours
One-click scaffold A lake project pinned to your Mathlib and arlib revisions, skeleton and audit checks in place

Quick start

  1. Formalize: Connect Claude or ChatGPT — your key goes into the OS keychain, never into settings or your workspace.
  2. Formalize: Scan LaTeX sources — your theorems appear in the sidebar.
  3. Pick one, hit the rocket, review, scaffold.

Bring your own Anthropic or OpenAI key

Requirements

VS Code 1.90+, an Anthropic or OpenAI API key, and — for scaffolding — elan and lake. PDF import works too, with pdftotext or mutool, though .tex gives a materially better blueprint.


Built by meelgroup at Georgia Tech · Issues

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft