You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither OhNo.mk nor OhNo.x are noncomputable here; only the metadata used to populate the default arguments.
Context
Discussed on Zulip.
This example is contrived, but there are a very large number of noncomputable definitions in mathlib (many of which are only marked noncomputable because this avoids a very slow compilation pass).
Default structure initializers are rarely used in mathlib, so the impact is low
Steps to Reproduce
Run the code above
Expected behavior: Either lean emits no diagnostics, or it emits an error telling me how to fix the problem.
Actual behavior: Lean rejects the code above and leaves me with an unsolvable riddle about how to fix it.
Versions
[Output of lean --version in the folder that the issue occured in]
[OS version]
Prerequisites
Description
The following code:
gives the error
As directed by the error message, after some consideration I tried to mark it
noncomputable
, but the following is not legal syntax:Neither
OhNo.mk
norOhNo.x
are noncomputable here; only the metadata used to populate the default arguments.Context
Discussed on Zulip.
This example is contrived, but there are a very large number of
noncomputable
definitions in mathlib (many of which are only markednoncomputable
because this avoids a very slow compilation pass).Default structure initializers are rarely used in mathlib, so the impact is low
Steps to Reproduce
Run the code above
Expected behavior: Either lean emits no diagnostics, or it emits an error telling me how to fix the problem.
Actual behavior: Lean rejects the code above and leaves me with an unsolvable riddle about how to fix it.
Versions
[Output of
lean --version
in the folder that the issue occured in][OS version]
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: