lean4-htt/tests/elab_bench
Kyle Miller 19baa470e5
feat: MVarId.assertAfter fvar alias info, MVarId.replace mvar dependencies, specialize tactic using eta arguments (#13528)
This PR gives the `specialize` tactic the ability to instantiate
universal quantifiers other than the first using `specialize h (y := v)`
syntax. It also fixes an issue where `MVarId.assertAfter` did not record
variable alias information, and an issue where `MVarId.replace` and
`MVarId.replaceLocalDecl` did not take metavariables into account when
calculating dependencies. Additionally it fixes some uninstantiated
metavariables bugs, including one in the Infoview tactic state
hypothesis diff.

The `specialize` tactic now uses `Lean.MVarId.replace` to simplify the
implementation, and as a consequence it tries to keep the specialized
hypothesis close to its original spot in the local context.

Additional metaprogramming API:
- `Lean.Expr.getLambdaBody` to accompany `Lean.Expr.getNumHeadLambdas`
- `Lean.LocalContext.setType`, `Lean.MetavarContext.setFVarType`,
`Lean.MVarId.setFVarType`
- `Lean.MVarId.assertAfter'` to assert a new hypothesis as early as
possibly in the context where it is well-formed, as a frontend to
`Lean.MVarId.assertAfter`, which assumes the new hypothesis is
well-formed

Breaking change: metaprograms cannot assume that `MVarId`s change if
metavariables are assigned. For example, the `change` tactic will no
longer change `MVarId`s if the only effect is incidental metavariable
assignments.

Mathlib impact: this revealed many `dsimp`s that did nothing and could
be deleted.

Closes #9893
2026-04-30 10:36:29 +00:00
..
big_beq.lean
big_beq.lean.out.ignored
big_beq_rec.lean
big_beq_rec.lean.out.ignored
big_deceq.lean
big_deceq.lean.out.ignored
big_deceq_rec.lean
big_deceq_rec.lean.out.ignored
big_do.lean
big_do.lean.out.expected
big_match.lean
big_match.lean.out.ignored
big_match_nat.lean
big_match_nat.lean.out.ignored
big_match_nat_split.lean
big_match_nat_split.lean.out.ignored
big_match_partial.lean
big_match_partial.lean.out.ignored
big_omega.lean
big_omega_MT.lean
big_omega_MT.lean.init.sh
big_struct.lean
big_struct_dep.lean
big_struct_dep1.lean
bv_decide_inequality.lean
bv_decide_inequality.lean.no_test chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
bv_decide_large_aig.lean
bv_decide_large_aig.lean.out.expected
bv_decide_mod.lean
bv_decide_mod.lean.no_test chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
bv_decide_mul.lean
bv_decide_realworld.lean
bv_decide_rewriter.lean
cbv_aes.lean chore: fix spelling errors (#13274) 2026-04-04 07:34:34 +00:00
cbv_arm_ldst.lean chore: disable cbv usage warning (#12986) 2026-03-19 14:12:04 +00:00
cbv_arm_ldst.lean.no_test chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
cbv_decide.lean chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
cbv_decide.lean.out.ignored
cbv_dedup.lean chore: disable cbv usage warning (#12986) 2026-03-19 14:12:04 +00:00
cbv_divisors.lean chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
cbv_divisors.lean.out.ignored
cbv_leroy.lean chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
cbv_leroy.lean.out.ignored
cbv_merge_sort.lean chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
cbv_merge_sort.lean.out.ignored
cbv_system_f.lean
cbv_system_f.lean.no_test chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
charactersIn.lean chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
charactersIn.lean.out.ignored
delayed_assign.lean test: add instantiateMVars tests and benchmark for delayed assignments (#12808) 2026-03-06 10:59:13 +00:00
delayed_sharing.lean test: add instantiateMVars tests and benchmark for delayed assignments (#12808) 2026-03-06 10:59:13 +00:00
grind_bitvec2.lean feat: MVarId.assertAfter fvar alias info, MVarId.replace mvar dependencies, specialize tactic using eta arguments (#13528) 2026-04-30 10:36:29 +00:00
grind_bitvec2.lean.no_test chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
grind_list2.lean
grind_ring_5.lean
iterators.lean
mut_rec_wf.lean
mut_rec_wf.lean.out.ignored
omega_stress.lean
omega_stress.lean.out.ignored
reduceMatch.lean
riscv-ast.lean
riscv-ast.lean.no_test chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
run_bench.sh chore: speed up test suite slightly (#12969) 2026-03-20 12:24:32 +00:00
run_test.sh chore: improve how test suite interacts with stages (#12913) 2026-03-16 15:20:03 +00:00
simp_arith1.lean
simp_bubblesort_256.lean
simp_congr.lean feat: require indentation in commands, allow empty tactic sequences (#13229) 2026-04-08 14:05:47 +00:00
simp_congr.lean.init.sh
simp_local.lean
simp_subexpr.lean
simp_subexpr.lean.out.ignored
string_simp_ne.lean feat: name the functional argument to brecOn in structural recursion (#12987) 2026-03-23 13:40:18 +00:00
string_simp_ne.lean.out.ignored test: add elab_bench for string literal simp performance (#12883) 2026-03-11 16:06:26 +00:00
workspaceSymbols.lean
workspaceSymbols.lean.out.ignored