Prerequisites
Description
lambdaMetaTelescope creates metavariables with anonymous user names instead of using the binder names from the lambda binders.
Context
This caused to_dual in mathlib to generate some definitions where the lambda binder names were wrong. That problem has now been fixed (leanprover-community/mathlib4#40946)
Steps to Reproduce
import Lean
open Lean Meta
/-- info: fun {x} => x -/
#guard_msgs in
run_meta
let e := Expr.lam `a (.sort 0) (.bvar 0) .default
let (mvars, _, e) ← lambdaMetaTelescope e
let e ← mkLambdaFVars mvars e
logInfo m!"{e}"
Expected behavior: The resulting bound variable is called a
Actual behavior: The resulting bound variable is called x
Versions
4.32.0-rc1
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
Prerequisites
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
lambdaMetaTelescopecreates metavariables with anonymous user names instead of using the binder names from the lambda binders.Context
This caused
to_dualin mathlib to generate some definitions where the lambda binder names were wrong. That problem has now been fixed (leanprover-community/mathlib4#40946)Steps to Reproduce
Expected behavior: The resulting bound variable is called
aActual behavior: The resulting bound variable is called
xVersions
4.32.0-rc1
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.