leanprover-community / leanprover-community/mathlib4

Performance regressions using `rintro` generally and `obtain` vs `rcases/have`

Open
#15,871 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
4.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

In CategoryTheory.Sites.DenseSubsite #15350, we needed to put some dsimp's before obtains and break out rintros into rcases then haves to claw back some regression in performance with v4.11.0-rc1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with CategoryTheory.Sites.DenseSubsite and issue #15350, comparing the dsimp/obtain and rintro/rcases/have forms described there. Measure the v4.11.0-rc1 behavior to isolate the regression; done means the affected pattern and a concrete performance fix or follow-up are identified.

Written by the indexing model from the issue text.

Assessment

Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.