Skip to content

perf: use MVarId.assign instead of isDefEq in type class search#13775

Draft
JovanGerb wants to merge 2 commits into
leanprover:masterfrom
JovanGerb:Jovan-synthInstance-speedup
Draft

perf: use MVarId.assign instead of isDefEq in type class search#13775
JovanGerb wants to merge 2 commits into
leanprover:masterfrom
JovanGerb:Jovan-synthInstance-speedup

Conversation

@JovanGerb
Copy link
Copy Markdown
Contributor

This PR removes an isDefEq check in type class synthesis that is redundant.

Unfortunately, making this change breaks a few things in Mathlib, due to #9726, in combination with #9727.

@JovanGerb
Copy link
Copy Markdown
Contributor Author

!bench mathlib

@leanprover-radar
Copy link
Copy Markdown

leanprover-radar commented May 18, 2026

Benchmark results for leanprover-community/mathlib4-nightly-testing@a659c41 against leanprover-community/mathlib4-nightly-testing@70483db are in. There are significant results. @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 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 23:44:35)

@JovanGerb JovanGerb closed this May 19, 2026
@JovanGerb JovanGerb reopened this May 19, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/batteries that referenced this pull request May 19, 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 May 19, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label May 19, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

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