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
When working with terms containing max u v w level parameters, Lean.Level.normalize often normalizes these to max (max u v) w.
Recall that `(level| max $u $v $w) refers to max u (max v w), so this choice is inconsistent with the associativity of the notation
Context
Explicit universe arguments frequently appear in the goal state in Mathlib's Cardinal library, and it is frustrating when the shorter max u v w x is replaced with the long max (max (max u v) w) x.
Prerequisites
Please put an X between the brackets as you perform the following steps:
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
When working with terms containing
max u v w
level parameters,Lean.Level.normalize
often normalizes these tomax (max u v) w
.Recall that
`(level| max $u $v $w)
refers tomax u (max v w)
, so this choice is inconsistent with the associativity of the notationContext
Explicit universe arguments frequently appear in the goal state in Mathlib's
Cardinal
library, and it is frustrating when the shortermax u v w x
is replaced with the longmax (max (max u v) w) x
.Discovered in this Zulip thread.
Steps to Reproduce
Run the following:
Expected behavior: State is
Actual behavior: State is
Either changing the normalization or changing the associativity of the notation would fix this.
Versions
[Output of
#version
or#eval Lean.versionString
][OS version, if not using live.lean-lang.org.]
Additional Information
[Additional information, configuration or data that might be necessary to reproduce the issue]
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: