[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"HCNn7EmcdF":3},"# AppliedModelingLib\n\nAppliedModelingLib is a Lean 4 project for research in Economics and\nComputation and related applied-mathematics fields. Its goal is to enable\nresearchers to formalize papers in Lean without needing to know Lean\nthemselves. The central design principle is a human-AI-Lean formalization\nworkflow: an LLM writes Lean code, Lean checks formal statements and proofs,\nand both humans and LLM-as-judge processes can verify that the paper's\nstatements were translated into Lean correctly. We develop agent skills,\nhuman-facing reporting, a review dashboard, and auditing procedures to support\nthis workflow.\n\nLinks:\n- [Project website](https://gargnikhil.com/AppliedModelingLib/)\n- [Paper describing project](https://arxiv.org/abs/2606.13306)\n- [Slack workspace for applied math modeling in Lean](https://join.slack.com/t/appliedmodelinglib/shared_invite/zt-42slirzxx-rEO8eEns7~4~i3Lbu7N~lA)\n\nIf you use this project, please cite the following paper\n\n```\n@article{garg2026econcslib,\n  title={EconCSLib: AI-Assisted Lean Formalization for Economics \\& Computation research},\n  author={Garg, Nikhil},\n  journal={arXiv preprint arXiv:2606.13306},\n  year={2026}\n}\n```\n\n## Updating An Existing Fork After The Rename\n\nExisting fork owners can keep their forks and update their local upstream:\n\n```bash\ngit remote set-url upstream https://github.com/nikhgarg/AppliedModelingLib.git\ngit fetch upstream\n```\n\n## Contribute A Paper Formalization\n\nContributions can add a paper formalization or improve the reusable library,\ntooling, and documentation. A paper contribution focuses on that paper's\nresults and validation report.\n\nStart with the [contribution guide](CONTRIBUTING.md). The\n[step-by-step workflow](docs/NEW_CONTRIBUTOR_WORKFLOW.md) covers setup,\nformalization, validation, and submitting a pull request.\n\nWhen using a coding agent, give it the paper URL, exact source version, and\nfolder name, and ask it to follow the repository's paper-formalization skill\nthrough source inventory, proofs, and paper-scoped closeout.\n\n## How The Repository Is Organized\n\n- `AppliedModelingLib/` contains reusable mathematics and modeling tools shared\n  across paper formalizations.\n- `papers/` contains one folder per source paper. These folders preserve the\n  paper's notation, theorem numbering, proof DAG, validation report, and\n  human-facing Lean interface.\n- `docs/` contains project documentation. Some files are human-facing strategy\n  and status documents; others are detailed conventions for agents and\n  maintainers.\n- `skills/econcs-formalizer/` contains the agent workflow instructions used to\n  formalize papers consistently.\n- General lessons from private workflow examples are incorporated into the\n  public skills; the underlying wiki and feedback history remain private.\n\n## Human understanding of a Formalized Paper\n\nStart in the paper folder under `papers/\u003CPaperName>/`.\n\nFor a completed or nearly completed paper, read these files in this order:\n\n1. `FINAL_VALIDATION_REPORT.md`: source checked, theorem inventory, proof\n   deviations, remaining assumptions, and final status.\n2. The linked source-clarification memo: precise source-to-formalized changes,\n   additional assumptions, and remaining formalization gaps.\n3. `docs/HUMAN_REVIEW_PACKET.pdf`: the assembled source and Lean review material.\n4. `PaperInterface.lean`: readable definitions and theorem statements matching\n   the paper. This is the main human-facing Lean file.\n5. `docs/DependencyDAG.pdf`: visual map of named definitions, lemmas, theorems,\n   and remaining proof boundaries, with the TeX source alongside it.\n6. `README.md`: paper metadata and theorem-status ledger.\n\nImplementation-level proof files are for maintainers and agents. They should\nnot be necessary for a first human audit of what the paper claims and what Lean\nproves.\n\n## Development\n\nThis project is aligned to Lean/mathlib/CSLib `v4.30.0-rc2`.\n\nSee the [contributor workflow](docs/NEW_CONTRIBUTOR_WORKFLOW.md) for setup and\nvalidation commands, and the [architecture guide](docs/ARCHITECTURE.md) for\nlibrary and tooling development.\n\n## License\n\nUnless otherwise noted, the Lean source, scripts, documentation, and site source\nare licensed under the Apache License, Version 2.0. See [`LICENSE`](LICENSE).\nSource-paper PDFs and extracted text caches are not included in the public\nrepository unless redistribution rights have been checked separately.\n\n## Related project using the former name\n\nSee also [this paper](https://arxiv.org/abs/2606.16144) and\n[Lean Project](https://github.com/gametheoryinlean/EconCSLib), called\nEconCSLib. The two projects are separate and independently (and concurrently)\ndeveloped, with different focuses: our project focuses on automated\nformalization of research papers (with human-in-the-loop translation\nvalidation), while their project focuses on human curation (with LLM support)\nof a library of concepts for Economics and Computation.\n\n## More Documentation\n\n- [docs/README.md](docs/README.md): documentation index.\n- [docs/PAPER_STATUS.md](docs/PAPER_STATUS.md): public paper status.\n- [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md): repository architecture.\n- [docs/APPLIEDMODELINGLIB_DOMAIN_INDEX.md](docs/APPLIEDMODELINGLIB_DOMAIN_INDEX.md): library modules by domain.\n- [docs/NEW_CONTRIBUTOR_WORKFLOW.md](docs/NEW_CONTRIBUTOR_WORKFLOW.md): public repository and contribution workflow.\n- [docs/LEAN_STYLE.md](docs/LEAN_STYLE.md) and [docs/STATUS.md](docs/STATUS.md): contribution conventions.\n",1789154824772]