Skip to content

chore: preserve erased specs through mvcgen' spec DB migration#13897

Merged
sgraf812 merged 1 commit into
masterfrom
sg/sym-mvcgen-erased-specs
May 30, 2026
Merged

chore: preserve erased specs through mvcgen' spec DB migration#13897
sgraf812 merged 1 commit into
masterfrom
sg/sym-mvcgen-erased-specs

Conversation

@sgraf812
Copy link
Copy Markdown
Contributor

This PR refactors mvcgen' to not drop erased @[spec] theorems when migrating the legacy spec database. Erased entries are now copied into the new database and filtered out at lookup time, matching the legacy behavior.

migrateSpecTheoremsDatabase folds simpThms.erased into database.erased via the new SpecProof.ofOrigin helper. SpecTheoremsNew.findSpecs filters matched candidates by the erased set.

This PR refactors `mvcgen'` to not drop erased `@[spec]` theorems when
migrating the legacy spec database. Erased entries are now copied into
the new database and filtered out at lookup time, matching the legacy
behavior.

`migrateSpecTheoremsDatabase` folds `simpThms.erased` into
`database.erased` via the new `SpecProof.ofOrigin` helper.
`SpecTheoremsNew.findSpecs` filters matched candidates by the erased
set.
@sgraf812 sgraf812 force-pushed the sg/sym-mvcgen-erased-specs branch from 105d624 to 7832649 Compare May 30, 2026 06:32
@sgraf812 sgraf812 enabled auto-merge May 30, 2026 06:33
@sgraf812 sgraf812 disabled auto-merge May 30, 2026 06:33
@sgraf812
Copy link
Copy Markdown
Contributor Author

!bench

@leanprover-radar
Copy link
Copy Markdown

leanprover-radar commented May 30, 2026

Benchmark results for 7832649 against 1744bf5 are in. No significant results found. @sgraf812

  • build//instructions: -392.2M (-0.00%)

No significant changes detected.

@sgraf812 sgraf812 added this pull request to the merge queue May 30, 2026
Merged via the queue into master with commit 729a662 May 30, 2026
16 checks passed
@sgraf812 sgraf812 deleted the sg/sym-mvcgen-erased-specs branch May 30, 2026 07:09
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 30, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 1744bf5f0742abe8931bab51ab3c79cbcf93dc6c --onto c47a0c7cf035381a2bcdd4cdf2442782eb4a5214. You can force Mathlib CI using the force-mathlib-ci label. (2026-05-30 07:23:26)

@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 1744bf5f0742abe8931bab51ab3c79cbcf93dc6c --onto 803553a556fd82fa1060efb0c43eda542130cb16. You can force reference manual CI using the force-manual-ci label. (2026-05-30 07:23:27)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants