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
Non-atomic variables (e.g. x.y) are normally disallowed in match patterns. If the non-atomic identifier exists in the environment, then the error no longer occurs.
Steps to Reproduce
defx.y := ()
example : Nat → Nat | x.y => x.y
Expected behavior: The error invalid pattern variable, must be atomic. This error appears if def x.y is removed.
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
Non-atomic variables (e.g.
x.y
) are normally disallowed inmatch
patterns. If the non-atomic identifier exists in the environment, then the error no longer occurs.Steps to Reproduce
Expected behavior: The error
invalid pattern variable, must be atomic
. This error appears ifdef x.y
is removed.Actual behavior: No error.
Versions
Lean 4.16.0-nightly-2025-01-05
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: