-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
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
Local notation with local variable #435
Comments
@leodemoura Thank you for fixing so quickly! There appears to be a remnant of this issue. This snippet fails: structure Op (α : Type _) where op : α → α → α
variable {α} (s : Op α)
local infixr:60 " ∙ " => s.op
example (x y : α) : x ∙ y = y ∙ x := sorry with
However, there is an easy workaround since this works as expected: structure Op (α : Type _) where op : α → α → α
variable {α} (s : Op α)
local infixr:60 " ∙ " => Op.op s
example (x y : α) : x ∙ y = y ∙ x := sorry Lean version: |
leodemoura
added a commit
that referenced
this issue
May 5, 2021
…in the notation prechecker see #435
1 task
ChrisHughes24
pushed a commit
to ChrisHughes24/lean4
that referenced
this issue
Dec 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Description
Local notation defined using a local variable no longer works.
Steps to Reproduce
Expected behavior:
Local notation accepted and usable locally.
Actual behavior:
Reproduces how often: Always
Versions
Lean (version 4.0.0-nightly-2021-05-02, commit e20a07bd6dd0, Release)
Linux pop-os 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP Thu Apr 22 16:00:45 UTC x86_64 x86_64 x86_64 GNU/Linux
Additional Information
Works fine with version nightly-2021-04-27 but breaks on nightly-2021-04-28.
The text was updated successfully, but these errors were encountered: