EconCSLib
EconCSLib is a Lean 4 project for checking results in Economics and Computation. The repository has two roles:
- Build a reusable library of mathematical tools for EC: probability, optimization, matching, auctions, online algorithms, fair division, learning, and related foundations.
- Keep a paper-by-paper audit trail showing which source definitions and theorems have been formalized, which assumptions remain, and where the proof deviates from an informal paper argument.
The project is meant to support both formalization work and human review. A human reader should be able to open a completed paper folder and understand what was proved without reading the full Lean implementation.
Links:
How The Repository Is Organized
EconCSLib/is the reusable library. Code here should be paper-independent and useful across more than one formalization.papers/contains one folder per source paper. These folders preserve the paper's notation, theorem numbering, proof DAG, validation report, and human-facing Lean interface.docs/contains project documentation. Some files are human-facing strategy and status documents; others are detailed conventions for agents and maintainers.skills/econcs-formalizer/contains the agent workflow instructions used to formalize papers consistently.
Reviewing A Formalized Paper
Start in the paper folder under papers/<PaperName>/.
For a completed or nearly completed paper, read these files in this order:
FINAL_VALIDATION_REPORT.md: human-facing report summarizing deviations, assumptions, and final status.PaperInterface.lean: readable definitions and theorem statements matching the paper. This is the main human-facing Lean file.- Dependency graph: visual map of named definitions, lemmas, theorems, and remaining caveats. Some paper folders keep only the source graph tracked and render the PDF locally.
Implementation-level proof files are for maintainers and agents. They should not be necessary for a first human audit of what the paper claims and what Lean proves.
Current Status
See site/index.html. Each paper folder also has a paper-local
status.json.
Paper IDs and folder names are stable artifact identifiers and may track an arXiv, conference, or original working-paper year. Public status tables use the published citation title and year.
Starting A New Paper With An Agent
To get started in formalizing your own paper, clone the repository and open an LLM agent tool (I use Codex with GPT 5.5 in xhigh thinking mode). Give the agent the paper link, and ask it to formalize the paper using the skill and workflow in the repository. (And please let me know what your experience is like!).
Development
This project is aligned to Lean/mathlib/CSLib v4.30.0-rc2.
Useful commands:
lake build EconCSLib
python3 scripts/audit_repository.py
lake build EconCSLib is the first fresh-clone check and should pass for the
public repository. python3 scripts/audit_repository.py is a maintainer audit.
In a fresh clone it may report missing ignored local artifacts such as source
PDFs, rendered dependency-graph PDFs, or review-dashboard caches; those are not
Lean verification failures.
License
Unless otherwise noted, the Lean source, scripts, documentation, and site source
are licensed under the Apache License, Version 2.0. See LICENSE.
Source-paper PDFs and extracted text caches are not included in the public
repository unless redistribution rights have been checked separately.