Skip to content

feat(dataset): add formal-verification proof-step dataset mining - #321

Merged
jackulau merged 3 commits into
mainfrom
feat/dataset-mine-proof-steps
Nov 28, 2026
Merged

jackulau merged 3 commits into
mainfrom
feat/dataset-mine-proof-steps

Conversation

@jackulau

Copy link
Copy Markdown
Owner

Summary

Adds formal-verification proof-step dataset mining (coding.sh dataset mine <name> --proof-steps) so teams can harvest real-world proof struggles into versioned eval datasets across all 7 supported languages (lean, rocq, dafny, verus, isabelle, tla, tlc):

  • Proof-step extraction (datasets/proof-mine.ts):
    • Solved transitions (outcome: "solved"): Failing (red) proof check → proof-file edit(s) → clean passing (green) proof check, capturing structured { kind: "proof-step", lang, file, command, error, goalSnippet } and { resolved: true, winningDiff?, winningCheck, attempts } while rejecting transitions that introduce net new escape hatches or bypass flags.
    • Stuck goals (outcome: "stuck"): Repeated or unresolved failing proof checks at session end, giving eval suites benchmarks of real hard proof goals.
    • Redaction & deduplication: Every error, goal snippet, command, path, and winning diff is redacted via createRedactor() before clipping and deduplicated via shared CaseDeduper across incremental runs.
  • CLI flags (dataset mine): --proof-steps, --proof-lang <LANG> (repeatable/comma list), and --proof-outcome solved|stuck|all (default all), rejecting invalid values or either filter without --proof-steps with exit 2.
  • Regenerates docs/reference/cli.md and updates docs/guides/evals.md and CHANGELOG.md.

Verification

  • tsc --noEmit: 0 errors in src/ and dataset/CLI tests
  • test/datasets/*.test.ts (including 11 new unit + E2E CLI tests in proof-mine.test.ts), dataset-curate, help, and docs reference tests: 121 pass, 0 fail (fails-without verified)
  • node scripts/lint/slop.mjs --strict-allowlist & node scripts/changelog/add.mjs --check: clean
  • apps/site/test/*.test.mjs: 161 pass, 0 fail

@jackulau jackulau added the ready Run the full suite on this pull request; main requires its check label Nov 28, 2026
@jackulau
jackulau merged commit f13ab28 into main Nov 28, 2026
35 checks passed
@jackulau
jackulau deleted the feat/dataset-mine-proof-steps branch November 28, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Run the full suite on this pull request; main requires its check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant