lean4-htt/tests/lean/run/prvNameWithMacroScopes.lean
Joachim Breitner 316ff35afd
feat: deriving instances: use accessible names (#10271)
This PR changes the naming of the internal functions in deriving
instances like BEq to use accessible names. This is necessary to
reasonably easily prove things about these functions. For example after
`deriving BEq` for a type `T`, the implementation of `instBEqT` is in
`instBEqT.beq`.
2025-09-06 18:12:20 +00:00

13 lines
150 B
Text

macro "test%" n:ident : command =>
`(def foo := 42
def $n := foo
)
test% bar
/--
info: def bar : Nat :=
foo✝
-/
#guard_msgs in
#print bar