formalize_tex
Converts TeX documents into Lean code via Formath JSONL, generating entities.jsonl and lean/src/<module>.lean files in sibling directories. Streamlines mathematical formalization workflows.
Instructions
End-to-end minimal pipeline: TeX -> Formath JSONL -> Lean stub module.
Writes to sibling directories beside the TeX's tex/ folder: formath/entities.jsonl and lean/src/<module>.lean.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tex_path": "<tex_path>"
},
"name": "formalize_tex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_name | No | Main | |
| tex_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |