Skip to content

About

Empirical pipeline, dataset, and audit artifacts studying Lean 4 adoption across 12,613 engineering arXiv preprints (2025–2026): eligibility denominators, authoring paradigms, clean-room kernel builds, and semantic fidelity.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

lean-engineering-study

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).

Compiled Paper PDFs (Built Automatically in CI — Zero PDFs in Git)

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:

Companion Tools (Built from This Study)

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

Key Artifacts

Repository Layout

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)

Quick Commands

# 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.py

See docs/AS_BUILT.md for full pipeline architecture, parameters, and reproduction instructions (including OAI-PMH ingestion, eligibility sampling, artifact synthesis, and sandbox verification).

Citation

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).

About

Empirical pipeline, dataset, and audit artifacts studying Lean 4 adoption across 12,613 engineering arXiv preprints (2025–2026): eligibility denominators, authoring paradigms, clean-room kernel builds, and semantic fidelity.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages