perf: clear the local context in one pass in `simpH` This PR makes the generation of `match` equations faster for a `match` with many alternatives and a catch-all. The `big_match_string` benchmark with 128 alternatives is about 14% faster (#16313). `simpH` simplifies each overlap hypothesis in a local context without the declarations it does not depend on. It removed them with `tryClearMany`, which creates a new goal for each declaration. It now uses `MVarId.cleanup`, which builds the new local context in one pass. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.