Zulip Chat Archive

Stream: general

Topic: linter fails


Yaël Dillies (Sep 27 2021 at 16:09):

This linting is funny. One of the tactics failed to typecheck!

Eric Wieser (Sep 27 2021 at 16:16):

Maybe you hit a hash collision in the cache?

Yaël Dillies (Sep 27 2021 at 16:19):

Oh, how do you know that?

Floris van Doorn (Sep 27 2021 at 17:14):

I'm worried that Lean is confused by the new notation introduced in this PR.

Bryan Gin-ge Chen (Sep 27 2021 at 17:21):

That was my first guess as well. Could you try putting the notation in a locale?

Floris van Doorn (Sep 27 2021 at 17:23):

Yeah, the problem is that the following notation make other notations that start with [ unusable.

notation `[` a `  ` b `  ` c `]` := btw a b c
notation `[` a ` < ` b ` < ` c `]` := sbtw a b c

I think that the story is as follows: after seeing [ Lean has to decide what this notation is going to mean. It can overload notation, but only if the parser is the same for the different overloads (which is not the case for btw, sbtw, and list.nil). If the future parsing is different, then it has to make a choice, and in this case it just chooses the last declared notation (the one for sbtw).

Yaël Dillies (Sep 27 2021 at 17:26):

Hmm, that's very sad. I'll just nuke it for now then.

Jakob von Raumer (Sep 27 2021 at 17:40):

Good news is that this will be possible in Lean 4

Yaël Dillies (Sep 27 2021 at 17:45):

Lean 4 save my notation :pray:

Violeta Hernández (May 03 2022 at 01:05):

https://github.com/leanprover-community/mathlib/runs/6266696983?check_suite_focus=true

Violeta Hernández (May 03 2022 at 01:05):

This has failed like four times in a row and I don't know why

Bryan Gin-ge Chen (May 03 2022 at 01:11):

Hmm, seems like it might be related to this elan issue: https://github.com/leanprover/elan/issues/73

cc: @Sebastian Ullrich

Bryan Gin-ge Chen (May 03 2022 at 01:12):

It looks like the error just started happening and I don't see any recent changes to elan so I'm a bit mystified.

Arthur Paulino (May 03 2022 at 01:17):

https://github.com/leanprover/elan/releases/download//elan-x86_64-unknown-linux-gnu.tar.gz indeed can't be found on my browser

Chris Lovett (May 03 2022 at 03:10):

Arthur Paulino said:

https://github.com/leanprover/elan/releases/download//elan-x86_64-unknown-linux-gnu.tar.gz indeed can't be found on my browser

I think I found a fix, see https://github.com/leanprover/elan/pull/74


Last updated: Dec 20 2023 at 11:08 UTC