Skip to content

fix: include zetaUnused in Meta.Config cache key#13772

Merged
kim-em merged 1 commit into
leanprover:masterfrom
kim-em:fix-zetaUnused-cache-key
May 18, 2026
Merged

fix: include zetaUnused in Meta.Config cache key#13772
kim-em merged 1 commit into
leanprover:masterfrom
kim-em:fix-zetaUnused-cache-key

Conversation

@kim-em
Copy link
Copy Markdown
Collaborator

@kim-em kim-em commented May 18, 2026

This PR closes #13770 by including Config.zetaUnused in Config.toKey. Without this, two configs that differ only in zetaUnused share a WHNF/isDefEq cache key, so reductions performed under one setting can be returned for the other. The new bit sits at position 22, immediately above zetaHave.

🤖 Prepared with Claude Code

@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 18, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-05-17 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-05-18 11:34:02)

@github-actions github-actions Bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label May 18, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label May 18, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

@kim-em kim-em added the changelog-language Language features and metaprograms label May 18, 2026
This PR closes leanprover#13770 by including
`Config.zetaUnused` in `Config.toKey`. Without this, two configs differing only
in `zetaUnused` shared a `WHNF`/`isDefEq` cache key, so reductions performed
under one setting could be returned for the other.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kim-em kim-em force-pushed the fix-zetaUnused-cache-key branch from b33cac7 to 520bf7c Compare May 18, 2026 12:33
@kim-em kim-em enabled auto-merge May 18, 2026 12:34
@kim-em kim-em added this pull request to the merge queue May 18, 2026
Merged via the queue into leanprover:master with commit 8f508e3 May 18, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-language Language features and metaprograms mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN 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.

Meta.Config cache key omits zetaUnused, allowing WHNF/isDefEq cache collisions

2 participants