Skip to content

Conversation

@kim-em
Copy link
Collaborator

@kim-em kim-em commented Jan 25, 2026

This PR adds a test case guarding against a regression where simp incorrectly rejects valid rewrites for perm lemmas.

The issue occurs when fvar ids created in async elaboration don't maintain declaration order in their Name.lt comparison, breaking the assumption in acLt that later-declared fvars compare greater.

The test is based on a minimal reproduction from @Rob23oba in #12136.

Depends on: #12148

See #12136

🤖 Prepared with Claude Code

This PR adds a test case guarding against a regression where `simp`
incorrectly rejects valid rewrites for perm lemmas.

The issue occurs when fvar ids created in async elaboration don't maintain
declaration order in their `Name.lt` comparison, breaking the assumption
in `acLt` that later-declared fvars compare greater.

This test depends on the revert in #12148.

See #12136

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@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 Jan 25, 2026
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 896da853046ce831f17d48894c0eef833087ff57 --onto 4c1e4a77b4952098ea043f9b8c2d155c20b24523. You can force Mathlib CI using the force-mathlib-ci label. (2026-01-25 04:06:14)

@leanprover-bot
Copy link
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 896da853046ce831f17d48894c0eef833087ff57 --onto e9a1c9ef63d8e53803c16077f03e2dacd4a890bd. You can force reference manual CI using the force-manual-ci label. (2026-01-25 04:06:16)

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.

4 participants