Zulip Chat Archive

Stream: mathlib4

Topic: !4#2986 Maschke theorem


Yury G. Kudryashov (Mar 26 2023 at 03:16):

In !4#2986, I add a shortcut instance for coercion of a docs4#LinearMap to a function. Without this instance, Lean fails to generate the coercion in the new file. With this coercion, I get a linter error in LinearAlgebra.Dfinsupp: Lean can simplify some (((s : Finset _) : Set _) : Type _) to (s : Type _) in the LHS.

Yury G. Kudryashov (Mar 26 2023 at 03:17):

Another issue is that Lean 4 is very slow on this file but this is probably related to already known issues with typeclasses in Lean 4.

Yury G. Kudryashov (Mar 26 2023 at 05:05):

UPD: it compiles (at least, locally) without this instance.

Sebastian Ullrich (Mar 26 2023 at 08:54):

Yury G. Kudryashov said:

Another issue is that Lean 4 is very slow on this file but this is probably related to already known issues with typeclasses in Lean 4.

Please always run the file under --profile before speculating about performance bottlenecks. For example, one of the slowest files, Mathlib.GroupTheory.MonoidLocalization, is dominated by [to_additive] interpretation.

Eric Rodriguez (Mar 26 2023 at 11:22):

I wonder if this slowdown is related to the non-compiling of RingHoms evaluated I had earlier; maybe it's worth checking that TC doesn't go down some loop?


Last updated: Dec 20 2023 at 11:08 UTC