Skip to content
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 can change explicitness of arguments #772

Open
fpvandoorn opened this issue Sep 26, 2022 · 0 comments
Open

local notation can change explicitness of arguments #772

fpvandoorn opened this issue Sep 26, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@fpvandoorn
Copy link
Member

(reporting this so that it can be linked to, not really requesting that this should be fixed)

The following code shows some weird interaction between local notation involving variables and the explicitness of said variables in declarations:

variables {G : Type*} {L : G → G}

local prefix ` ◾ `:67 := L

variables (L)

local prefix ` † `:67 := L

lemma explicit (p : G) : L p = p :=
sorry -- works as intended

lemma implicit (p : G) : ◾p = p :=
sorry -- the variable `L` is an implicit argument to this lemma, but should be explicit

variables {L}

lemma explicit2 (p : G) : †p = p :=
sorry -- the variable `L` is an explicit argument to this lemma, but should be implicit

#check @explicit
#check @explicit2
#check @implicit
@fpvandoorn fpvandoorn added the bug Something isn't working label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant