lean4-htt/tests/elab/7073.lean
Garmelon 08eb78a5b2
chore: switch to new test/bench suite (#12590)
This PR sets up the new integrated test/bench suite. It then migrates
all benchmarks and some related tests to the new suite. There's also
some documentation and some linting.

For now, a lot of the old tests are left alone so this PR doesn't become
even larger than it already is. Eventually, all tests should be migrated
to the new suite though so there isn't a confusing mix of two systems.
2026-02-25 13:51:53 +00:00

25 lines
568 B
Text

/-!
# Auxiliary declaration name resolution in tactic blocks
https://github.com/leanprover/lean4/issues/7073
It should be possible to refer to auxiliary declarations by partially- or fully-qualified names
in tactic blocks.
-/
theorem A : True ∧ True := by
let rec B := trivial
exact And.intro A.B A.C
where C := trivial
namespace M
theorem N : True ∧ True ∧ True :=
let rec O := by exact M.N.P
by exact ⟨N.O, M.N.O, N.P⟩
where P := trivial
theorem Q.R : Nat → True
| 0 => trivial
| 1 => by exact Q.R 0
| n + 2 => by exact M.Q.R (n + 1)