Empirical pipeline, dataset, and audit artifacts studying Lean 4 adoption across 12,613 engineering arXiv preprints (2025–2026): eligibility denominators, Lean↔LaTeX authoring paradigms, clean-room kernel builds, Stage-2 recall, and Layer-A semantic fidelity (grounded in the taxonomy of docs/proof-methods.md).
Binary PDFs are not committed to Git. Every push to main regenerates all vector figures from git-tracked artifacts/, compiles every papers/*/main.tex variant cleanly via GitHub Actions, and publishes downloadable PDFs:
- 1-Click Latest PDF (Rolling Pre-Release):
lean-adoption-2026.pdf(papers-latestrelease) - GitHub Actions Build Artifacts (Paper PDFs + Vector Figures):
build-papers.ymlworkflow runs - Local Build:
make -C papers/lean-adoption-2026(automatically regenerates missing figures fromartifacts/intopapers/shared/figures/and compilespapers/lean-adoption-2026/main.pdf)
| Tool | Role | Links |
|---|---|---|
| cLEANsheet | Deterministic, zero-LLM static hygiene grader and offline clean-room kernel verifier (Verified Gold) implementing this study’s 6-category hygiene rubric and failure taxonomy |
Live Web App · GitHub (ANRGUSC/cLEANsheet) |
| Proof Atlas | Agent skill for authoring statement-locked Lean 4 formalizations, interactive Folio proof explorers, deterministic verification manifests, and human paper-to-Lean correspondence review—partly inspired by this study’s semantic-fidelity and reproducibility findings | GitHub (ANRGUSC/proof-atlas) · Live Folio Demo |
-
Working Empirical Paper (Lean Adoption in Engineering Research):
papers/lean-adoption-2026/main.tex(papers/lean-adoption-2026/PRE_ARXIV_TODO.md,papers/shared/references.bib,papers/lean-adoption-2026/Makefile) — concise 14-page longitudinal study of 12,613 arXiv preprints across 15 engineering and applied-theory categories (100% ofeess.*), denominator-adjusted eligibility (888draws /n=861unique T2 papers, Tier-1 adoption3.28%), 4-way role stratification, 27-repo Layer-A semantic audit under the formalized two-layer rubric (0/22engineering algorithmic material drift;274/274verifiedfile:linerefs;6/6human-signed named critiques +5/5clean spot-checks), clean-room Docker kernel builds (20non-operational compact repos in manuscript [15/20 = 75.0%OOTB,4,545OOTB /4,625incl. synth theorems];23/23total in replication archive [18/23 = 78.3%OOTB]),0/250stratified Stage-2 negative recall calibration (95% UB1.19%), 8/8 operational-FV boundary audit, off-arXiv check (TechRxiv/engrXiv/OpenAlex), blinded Stage-4 human IRR (30/30,$\kappa=1.000$ ), and 100-entry live-verified BibTeX database (papers/shared/references.bib) -
Canonical Unified 15-Category Dataset:
artifacts/unified_15cat_panel.json(synthesized viascripts/build_unified_15cat_artifacts.py; primary input tosrc/generate_figures.pyandscripts/check_paper_numbers.py) -
Lean 4 Eligibility & Denominator-Adjusted Adoption Pipeline:
docs/lean_eligibility_plan.md·artifacts/lean_eligibility_e1_t2_summary.json(full T2 zero-token E1 structural census,5,293/5,303 = 99.81%) ·artifacts/lean_eligibility_t2.json(uniform 60-draw/category 3-stratum Neyman SRSflashclassification,888draws /n=861unique T2 papers, nested Tier 1/2a/2b denominators & strictly matched conditional adoption) ·reports/lean_eligibility_analysis.md·reports/lean_eligibility_pilot_e0.md -
As-Built Pipeline & Reproduction Guide:
docs/AS_BUILT.md· Open Next Steps:docs/NEXT_STEPS.md -
Methodological & Scope References:
docs/proof-methods.md(12-mode failure taxonomy & paradigms) ·docs/layer_a_fidelity_rubric.md(reproducible Layer-A fidelity rubric) ·docs/track1_4way_coding_rubric.md(4-way domain-role rubric) ·docs/lean_eligibility_plan.md(E1/E2 eligibility design) ·docs/operational_fv_spinoff_brief.md(OpFV spin-off charter) ·docs/publication_strategy.html(venue roadmap) ·docs/archive/(historical development logs) -
Machine-Readable Structured Artifacts (
artifacts/, <2 MB, CC-BY-4.0):-
artifacts/unified_15cat_panel.json— Canonical unified 15-category dataset (<360 KB) synthesizing all 12,613 preprints across T0/T1/T2 (100% ofeess.*), all 82 confirmed Lean preprints under harmonized 4-way roles, all 27 Layer-A semantic audits (274/274verifiedfile:linerefs;0/22engineering material drift), all 23/23 exhaustive compact (<15kLoC) Docker kernel builds (18/23 = 78.3%OOTB pass,5,259OOTB /5,339incl. synth theorems,11/11Gold axiom-clean;20non-operational compact repos reported in manuscript),0/250Stage-2 negative recall calibration (95% UB1.19%),8/8operational-FV boundary audit, off-arXiv probe, and blinded human IRR; sole input tosrc/generate_figures.pyandscripts/check_paper_numbers.py -
artifacts/slices/manifest.json— Declarative registry of all matched longitudinal slices (2025-11T0,2026-05T1,2026-11T2) and 15-category panel metadata -
artifacts/sandbox_builds/(results_2026-11.json,results_2026-05.json,results_plus7_2026-11.json,results_plus7_math.json,summary.json) — Isolated--network=noneDockerlake build+ programmaticLean.collectAxiomsverification logs across all 23/23 standalone compact (<15kLoC) repositories -
artifacts/off_arxiv_probe.json— Zero-token off-arXiv bibliometric check (2025–2026):0/7,849TechRxiv +0/2,662engrXiv =0/10,511confirmed Lean 4 / Mathlib preprints (95% UB0.029%); OpenAlexMathlibsurges15.5×YoY (235 → 3,632), with Engineering (fields/22) at1.42%(55/3,867) -
artifacts/track3_operational_fv_pilot.json— Complete 8/8 operational system-verification boundary audit (4cloned repos +4prose-only) -
artifacts/lean_eligibility_e1_t2_summary.json,artifacts/lean_eligibility_t2.json, &artifacts/lean_eligibility_pilot_e0.json— Full T2 (N=5,303) deterministic mathematical-structure census, Pilot E0 positive-control calibration (71/71math roles inL1∪L2,8/8op-FV inL3), and Stage E2 (888draws /n=861unique T2 papers) post-stratified denominator-adjusted adoption estimates (1.28%raw →3.28%Tier 1 /3.50%matchedL1/2.60%matchedL2) - Per-stage and per-slice source logs feeding
unified_15cat_panel.json:artifacts/phase_c1_15cat_longitudinal.json,artifacts/phase_c2_plus7_audits.json,artifacts/phase2_provenance.json,artifacts/longitudinal_summary.json,artifacts/track1_sensitivity_summary.json,artifacts/scout_eng_tier12_2026_11_summary.json,artifacts/slices/{2025-11,2026-05,2026-11}/{classifications,plus7_classifications,layer_a_audits,plus7_layer_a_audits,recall_calibration,recall_calibration_plus7}.json, andartifacts/human_annotations/
-
-
Rendered Survey Reports (
reports/):-
reports/lean_eligibility_analysis.md&reports/lean_eligibility_pilot_e0.md— Denominator-adjusted Lean 4 eligibility analysis (N=5,303E1 census +888draws /n=861unique T2 E2 stratified sample) and Pilot E0 calibration (n=127) -
reports/phase_c1_15cat_longitudinal.md&reports/phase_c2_plus7_audits.md— 15-category longitudinal panel (12,613preprints) and+7Stage-5/sandbox synthesis -
reports/off_arxiv_probe.md— Off-arXiv bibliometric triangulation across TechRxiv, engrXiv, and OpenAlex -
reports/track3_operational_fv_pilot.md— Complete 8/8 operational system-verification boundary audit -
reports/slices/2026-11/recall_calibration.md&reports/slices/2026-11/recall_calibration_plus7.md— Combined0/250Stage-2 GitHub negative recall calibration (410repos checked, 95% UB1.19%) +0/125non-GitHub negatives -
reports/slices/2026-11/phase2_layer_a_audit.md,reports/slices/2026-11/phase2_layer_a_audit_plus7.md, &reports/slices/2026-05/phase2_layer_a_audit.md— Deep Layer-A semantic fidelity audits across all 27 audited repositories (24in T2 +3in T1) - Per-slice Phase 0/1 & historical 8-cat reports:
reports/longitudinal_analysis.md,reports/track1_sensitivity_analysis.md,reports/scout_eng_tier12_2026_11.md, andreports/slices/{2025-11,2026-05,2026-11}/{phase0,phase1_survey,phase1_plus7}.md
-
lean-engineering-study/
README.md
LICENSE # BSD-3-Clause (code); see artifacts/LICENSE for CC-BY-4.0 data
CITATION.cff # Standard citation metadata (GitHub / Zenodo)
pyproject.toml / uv.lock
.github/workflows/
build-papers.yml # Regenerates figures from artifacts/, compiles papers/*/main.tex,
# uploads GH Actions PDFs + rolling `papers-latest` release
ci.yml # Runs pytest, BibTeX audit, numeric consistency gate, zero-PDF & blind checks
src/ # Strictly static/deterministic Python pipeline & figures
db.py # SQLite schema & idempotent upserts
patterns.py # Deterministic Lean, Beyond-Lean, LaTeX, and static .lean scanners
ingest_arxiv.py # Stage 1: Bias-free multi-slice arXiv OAI-PMH (arXivRaw) ingest
fetch_and_screen.py # Stage 2: Polite HTML5/PDF full-text pre-screen
profile_artifacts.py # Stage 3: Strictly static LaTeX + GitHub/GitLab/Zenodo/arXiv-ancillary profiler
calibrate_recall.py # Stage-2 negative recall calibration via gh api
export_workflow_inputs.py # Export candidate bundles for parallel LLM classification
prepare_phase2_audit.py # Extract math-preserving Markdown & prep Layer-A audit bundles
export_artifacts.py # Export canonical, license-safe JSONs from SQLite -> artifacts/
report_phase0.py # Phase 0 markdown summary generator
report_phase1.py # Import classifications & generate Phase 1 report
report_phase2.py # Import Layer-A audits & generate Phase 2 report
report_longitudinal.py # Comparative T0 / T1 / T2 longitudinal analysis & JSON summary
screen_math_structure.py # Stage E1: Deterministic LaTeXML/PDF math-structure extractor & E2 sampler
analyze_lean_eligibility.py # Stage E2: Post-stratified & Hájek denominator-adjusted adoption analyzer
layer_a_rubric.py # Deterministic two-layer Layer-A semantic fidelity scoring rubric
generate_figures.py # Zero-DB vector PDF figure generator (9 figures from artifacts/)
workflows/ # Parallel LLM agent workflows (prompts + strict JSON schemas)
classify_candidates.py # Stage 4: Parallel candidate classifier (flash)
classify_lean_eligibility.py # Stage E2: Batched 5-per-prompt Lean eligibility classifier (flash)
audit_layer_a.py # Stage 5: Adversarial Layer-A auditor (pro)
sandbox/ # Isolated Docker execution boundary (lake build / #print axioms)
scripts/
audit_bib.py # BibTeX hygiene, citation sync & --live arXiv API metadata audit
check_paper_numbers.py # Numeric consistency gate verifying main.tex against artifacts/
pin_phase2_provenance.py # Pins commit SHAs, toolchains & file:line checks for Phase-2 repos
probe_off_arxiv.py # Zero-token off-arXiv bibliometric probe (TechRxiv/engrXiv/OpenAlex)
export_blind_artifact.py # Builds verified double-blind review zip (dist/blind_artifact.zip)
tests/
test_patterns.py # Unit tests for regex detectors, Lean lexer, and LaTeX scanners
test_audit_bib.py # Unit tests for BibTeX parser and hygiene checks
test_check_paper_numbers.py # Unit tests for numeric consistency gate and archive unpackers
artifacts/ # Git-tracked small structured outputs (<2 MB, license-safe)
longitudinal_summary.json
phase2_provenance.json # Pinned commit SHAs, toolchains & 274/274 file:line provenance checks
slices/
manifest.json # Declarative slice registry
2025-11/ # T0 classifications
2026-05/ # T1 classifications + Layer-A audits
2026-11/ # T2 classifications, Layer-A audits, recall calibration, figure inputs
human_annotations/ # Schema & workflow for human IRR labels & commit-SHA pins
sandbox_builds/ # Schema for isolated Docker kernel verification results
reports/ # Rendered Markdown reports (longitudinal + per-slice)
papers/ # ZERO PDFs in Git — built locally or via GitHub Actions
shared/ # Shared references.bib & generated figures/ (gitignored *.pdf)
lean-adoption-2026/ # Working empirical paper (main.tex + Makefile)
docs/ # As-built guide, next steps, rubrics, taxonomy, strategy, archive/
data/ # Gitignored local cache (SQLite DBs, cloned third-party repos)
# Install dependencies (including pytest dev group)
uv sync --dev
# Run unit tests and CI hygiene gates (BibTeX + paper-to-artifact numeric consistency)
uv run pytest
uv run python scripts/audit_bib.py
uv run python scripts/check_paper_numbers.py
# Regenerate all 9 vector PDF figures directly from git-tracked artifacts/ (no SQLite DB needed)
uv run python -m src.generate_figures
# Build the empirical paper PDF locally (auto-generates figures if missing)
make -C papers/lean-adoption-2026
# Re-run isolated Docker lake build + #print axioms verification on compact repos (<15k LoC; n=23 total)
docker build -t lean-survey-sandbox:v1 sandbox/
uv run python sandbox/run_sandbox_audit.py # Initial-8 compact cohort (n=14)
uv run python sandbox/run_sandbox_audit.py --cohort plus7 # +7 engineering compact cohort (n=3)
uv run python sandbox/run_sandbox_audit.py --cohort plus7_math # +7 pure_math_or_tcs compact cohort (n=6)
# Export a clean, verified double-blind review archive to dist/blind_artifact.zip
uv run python scripts/export_blind_artifact.pySee docs/AS_BUILT.md for full pipeline architecture, parameters, and reproduction instructions (including OAI-PMH ingestion, eligibility sampling, artifact synthesis, and sandbox verification).
If you use this study, dataset, failure taxonomy, or companion tools in your research, please cite:
@misc{moeller2026lean_engineering,
author = {Moeller, Scott and Krishnamachari, Bhaskar},
title = {Lean Adoption in Engineering Research: A Longitudinal Empirical Study of arXiv Preprints and Formal Proof Artifacts},
year = {2026},
howpublished = {Working paper},
url = {https://github.com/ANRGUSC/lean-engineering-study/releases/download/papers-latest/lean-adoption-2026.pdf}
}Authors: Scott Moeller (Independent Researcher, Rhode Island, US) and Bhaskar Krishnamachari (Autonomous Networks Research Group (ANRG), Ming Hsieh Department of Electrical and Computer Engineering, Viterbi School of Engineering, University of Southern California).