We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
evalExpr fails if any universe parameters are present, but #eval handles them correctly.
evalExpr
#eval
This impedes leanprover-community/mathlib4#9135
import Lean open Lean def foo.{u} : Nat := (ULift.up.{u} Nat.zero).down -- works universe u in #eval foo.{u} -- fails: (kernel) invalid reference to undefined universe level parameter 'u' #eval do let u : Lean.Level := .param `u Meta.evalExpr Nat (.const ``Nat []) (.const ``foo [u])
Expected behavior: both examples succeed and output 0
Actual behavior: the second example fails as shown
4.4.0-rc1
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered:
f22998e
Successfully merging a pull request may close this issue.
Prerequisites
Description
evalExpr
fails if any universe parameters are present, but#eval
handles them correctly.Context
This impedes leanprover-community/mathlib4#9135
Steps to Reproduce
Expected behavior: both examples succeed and output 0
Actual behavior: the second example fails as shown
Versions
4.4.0-rc1
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: