Skip to content

[Backport releases/v4.29.0] fix: mark levelZero, levelOne, and Level.ofNat as implicit_reducible#12743

Merged
kim-em merged 1 commit intoreleases/v4.29.0from
backport-12719-to-releases/v4.29.0
Mar 1, 2026
Merged

[Backport releases/v4.29.0] fix: mark levelZero, levelOne, and Level.ofNat as implicit_reducible#12743
kim-em merged 1 commit intoreleases/v4.29.0from
backport-12719-to-releases/v4.29.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 1, 2026

Backport d59f229 from #12719.

…ucible` (#12719)

This PR marks `levelZero` and `Level.ofNat` as `@[implicit_reducible]`
so that `Level.ofNat 0 =?= Level.zero` succeeds when the definitional
equality checker respects transparency annotations. Without this,
coercions between structures with implicit `Level` parameters fail, as
reported by @FLDutchmann on
[Zulip](https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/backward.2EisDefEq.2ErespectTransparency/near/576131374).

🤖 Prepared with Claude Code

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit d59f229)
@kim-em kim-em merged commit 6979644 into releases/v4.29.0 Mar 1, 2026
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