Skip to content

Add the erdos_autoformalized dataset - #30

Merged
tadamcz merged 6 commits into
mainfrom
erdos-autoformalized-dataset
Aug 26, 2026
Merged

Add the erdos_autoformalized dataset#30
tadamcz merged 6 commits into
mainfrom
erdos-autoformalized-dataset

Conversation

@tadamcz

@tadamcz tadamcz commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Adds apn/data/erdos_autoformalized: the 18 Erdős problems formalized by our own autoformalization pipeline (epoch-research/autoformalization, results/2026-08-25-erdos-target-run), absent from formal-conjectures at the run's pin. This is the first dataset not vendored from upstream FC — the dataset's NOTICE.md documents provenance and how that changes the usual layout semantics.

  • Sources/: the run's 18 root .lean files, verbatim (banners dropped and answer(sorry) ↔ forms already rewritten upstream of this repo). Problem 1020 (gate-held in the run over a decomposition dispute, not the formalization) is included on the same footing as the rest; no gate distinction is recorded.
  • fc_commit pins 9cbe1d3c — the FC commit the pipeline compiled against (post-rename layout, Lean v4.27.0; an ancestor of the erdos dataset's 488aade2), registered in _FC_PROFILES. Since nothing is vendored from FC, the pin plays only its runtime role (sandbox images + proving-library version).
  • Isolated/ + samples.jsonl: generated by the new scripts/generate_erdos_autoformalized_isolated.py (the shared cut engine; no un-recording surgery — the shipping-form invariants are asserted instead of rewritten). 20 members over 18 files: 713 and 1206 are two-part, one sample per part with the sibling cut.
  • Task: apn_erdos_autoformalized (no subsets; the default runs all 20).
  • Validation: tests/test_erdos_autoformalized.py (cheap census/shape/textual invariants) and tests/test_erdos_autoformalized_isolation.py (container suite: re-extraction structural check with the plain-equality statement certificate, and the scorer-exact compile gate), wired into the CI isolation job.

Locally verified at the pin: every source elaborates cleanly, all 20 specs compile with the scorer's exact lake env lean -o, cheap tests + mypy pass.

18 Erdős problems formalized by our own autoformalization pipeline
(epoch-research/autoformalization, results/2026-08-25-erdos-target-run),
absent from formal-conjectures at the run's pin -- the first dataset not
vendored from upstream FC (see the dataset's NOTICE.md).

This commit carries the machinery: the verbatim vendored Sources/ (the run's
root .lean files: banners dropped, answer-iff forms already rewritten), the
fc_commit pin 9cbe1d3c (what the run compiled against; registered in
_FC_PROFILES), the apn_erdos_autoformalized task + dataset builder, the
vendor-time generator (no un-recording surgery: it asserts the shipping-form
invariants instead of rewriting/excluding), the validation suites, and the CI
wiring. The generated samples.jsonl + Isolated/ land in the next commit.
scripts/generate_erdos_autoformalized_isolated.py output, run in the
Dockerfile generate stage at the dataset's pin (9cbe1d3c): 20 manifest rows
(the 18 problems; 713 and 1206 are two-part) and their per-target Isolated/
specs -- sibling parts cut, @[category ...] lists dropped (20 stripped).
Every source elaborated cleanly, and all 20 specs compile with the scorer's
exact `lake env lean -o` command in the same container.
Comment thread apn/dataset.py Outdated
Comment thread apn/task.py Outdated
@tadamcz
tadamcz merged commit 8fa3b4c into main Aug 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant