🤖 Trợ lý AI•Mã nguồn mở•Đang hoạt động

MathCode

Coding agent cho bài toán toán học, có thể biến mô tả tự nhiên thành Lean 4 theorem và thử formal proof tự động.

#mathcode
Danh mục
🤖 Trợ lý AI
Giá
Mã nguồn mở
GitHub Stars
⭐ 753
Ngôn ngữ
Shell
License
Apache-2.0
Ngày thêm
2026-04-08
Tóm tắt từ README GitHub
MathCode English 中文 MathCode is a coding assistant for the terminal and browser, with built-in Lean 4 support. It can inspect proof goals, search declarations, check candidates, and verify completed proofs. Website · Releases · Issues · Discord What you can do - Work on code and Lean proofs in your own workspace. - Use the terminal or a local WebUI with math and diagram rendering. - Store verified theorems and explicit assumptions, and explore dependencies in Obsidian. - Add project skills, Python analysis tools, and MCP plugins. Lean is the proof authority: a proof is complete only after strict verification succeeds. Library storage and vault updates are explicit actions. Get started Supports macOS Apple Silicon (arm64) and Linux x86 64 with glibc and AVX2 . The default backend requires the CLI and a Codex login. Setup installs the CLI and WebUI without Lean/Mathlib by default, in both interactive terminals and scripts. explicitly selects this mode. Use for a full installation, or add Lean later with . Lean support needs about 10 GiB of additional disk space. Existing Lean installations are kept. Setup installs a command for new shells. Use immediately, or
Xem thêm từ README.md

Đánh giá chi tiết

Tổng quan

MathCode là coding agent chuyên cho bài toán toán học, đặc biệt nhắm tới formalization và proving với Lean 4. Người dùng đưa bài toán bằng ngôn ngữ tự nhiên, hệ thống sẽ cố chuyển thành theorem rồi thử chứng minh tự động.

So với các coding agent general-purpose, MathCode có định vị rất hẹp nhưng cũng vì thế mà thú vị. Đây là kiểu tool hợp với research, theorem proving và các workflow liên quan đến toán hình thức hơn là software engineering nói chung.

Tính năng chính

  • Nhận bài toán bằng ngôn ngữ tự nhiên rồi chuyển sang Lean 4 theorem
  • Tích hợp Lean LSP để hỗ trợ quá trình formal proof thông minh hơn
  • Có bootstrap script để tải binary, pipeline AUTOLEAN và local Lean setup
  • Output các formalizations vào thư mục riêng để tiếp tục kiểm tra và chỉnh sửa
  • Tập trung vào bài toán mathematical coding thay vì code assistant đa năng

Ai nên dùng

Hợp với researcher, sinh viên toán-tin, hoặc ai đang làm formal methods và muốn thử agent chuyên cho theorem proving.

Hạn chế

  • Use case rất hẹp, không phải coding agent đa dụng cho hầu hết developer
  • Phụ thuộc vào Lean toolchain và môi trường setup khá đặc thù
  • Repo bootstrap nhẹ, nhiều phần logic nằm trong binary và bundle tải từ release nên cần tin vào release pipeline