Skip to content

perf: normalize levels after instantiateMVars#12225

Draft
JovanGerb wants to merge 3 commits intoleanprover:masterfrom
JovanGerb:Jovan-normalize-level
Draft

perf: normalize levels after instantiateMVars#12225
JovanGerb wants to merge 3 commits intoleanprover:masterfrom
JovanGerb:Jovan-normalize-level

Conversation

@JovanGerb
Copy link
Contributor

This PR is an attempt to address the kernel normalization issue reported by Kevin Buzzard at https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/kernel.20universe.20normalization.20issue/with/570436294.

The current implementation is not too efficient - it would be better to call Level.normalize straight from the c++. But the current version is a very small change, and easy to test.

@JovanGerb JovanGerb marked this pull request as draft January 29, 2026 01:37
@JovanGerb
Copy link
Contributor Author

!bench mathlib

@leanprover-radar
Copy link

leanprover-radar commented Jan 29, 2026

Benchmark results for leanprover-community/mathlib4-nightly-testing@f62f69d against leanprover-community/mathlib4-nightly-testing@e0bf30b are in! @JovanGerb

  • 🟥 main exited with code 1

No significant changes detected.

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

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-01-28 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-01-29 02:31:53)

ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jan 29, 2026
@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 Jan 29, 2026
ghost pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 29, 2026
@ghost ghost added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Jan 29, 2026
@ghost
Copy link

ghost commented Jan 29, 2026

Mathlib CI status (docs):

ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jan 29, 2026
ghost pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 29, 2026
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Jan 29, 2026
ghost pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 29, 2026
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jan 30, 2026
This PR fixes some linter warnings that came up on the adaptation branch of leanprover/lean4#12225.

- Removed some unused `simp` arguments
- Removed some uses of `change` that didn't do anything
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…ty#34591)

This PR fixes some linter warnings that came up on the adaptation branch of leanprover/lean4#12225.

- Removed some unused `simp` arguments
- Removed some uses of `change` that didn't do anything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan 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.

3 participants