El Agente Math is a command-line interface (CLI) tool designed to extract, organize, and verify mathematical content from scientific documents such as LaTeX or Markdown papers.
To build an intelligent CLI agent capable of:
- Extracting mathematical symbols and formulas from source files.
- Linking symbol definitions with their usages.
- Verifying mathematical consistency across equations and sections.
| Stage | Feature | Description |
|---|---|---|
| Milestone 1 | Symbol Indexing | Parse all math environments and create a symbol index including file paths and positions. |
| Milestone 2 | Definition Extraction | Detect and extract symbol definitions, noting dependencies (e.g., E = mc^2 defines E). |
| Milestone 3 | Equation Linking | Build a dependency graph connecting formulas and symbol definitions. |
| Milestone 4 | Equation Checking | Verify correctness or logical consistency of equations using the defined symbols. |
| Milestone 5 | Error Reporting | Detect inconsistencies, undefined symbols, or circular dependencies. |
| Command | Description |
|---|---|
mai --index <path> |
Index all math symbols and formulas in the specified directory. |
mai --defs |
Generate definitions of all detected symbols. |
mai --check |
Check all equations for logical consistency using known definitions. |
mai --report |
Generate a markdown or JSON report of inconsistencies. |
| Command | Description |
|---|---|
mai --index <path> |
Index all math symbols and formulas in the specified directory. |
mai --defs |
Generate definitions of all detected symbols. |
mai --check |
Check all equations for logical consistency using known definitions. |
mai --report |
Generate a markdown or JSON report of inconsistencies. |
Assume you have a LaTeX project organized as follows:
my_paper/ โ โโโ main.tex โโโ intro.tex โโโ method.tex โโโ appendix.tex โโโ refs.bib โโโ figures/
mai --index ./
mai --defs
mai --check