Zulip Chat Archive

Stream: mathlib4

Topic: !4#3466 LinearAlgebra.FiniteDimensional


Jeremy Tan (Apr 16 2023 at 13:17):

!4#3466 (LinearAlgebra.FiniteDimensional) has been opened. It's quite a tough cookie, so feel free to commit anything that solves at least one of the remaining 90 errors

Eric Wieser (Apr 16 2023 at 13:38):

I pushed some partial fixes

Eric Wieser (Apr 16 2023 at 13:38):

It seems that a lot of PUnits now need to be PUnit.{u+1}

Scott Morrison (Apr 24 2023 at 09:31):

I pushed some more fixes to LinearAlgebra.FiniteDimensional. There's still a bit more to do!

Eric Wieser (Apr 24 2023 at 10:07):

I'm now stuck at a goal that is Module.rank F { x // x ∈ ⊥ } = Module.rank F { x // x ∈ ⊥ }. If I use sorry then the tactic state is happy but the kernel times out. If it dare try refl then that times out too

Eric Wieser (Apr 24 2023 at 10:08):

One possible idea is that switching to flat structures for subalgebra/submodule (like we did in Lean 3) would help here

Eric Wieser (Apr 24 2023 at 10:27):

I bumped up the timeout and now the proof is ok

Eric Wieser (Apr 24 2023 at 10:32):

The lemma takes 1.39s in Lean 3, I don't know how to get a total time in Lean 4 21s in Lean 4

Sebastian Ullrich (Apr 24 2023 at 10:39):

You can use trace.profiler and look at the root node

Scott Morrison (Apr 24 2023 at 10:39):

Finished!

Scott Morrison (Apr 24 2023 at 10:41):

Could we just drop all the -- Porting note: gets around lean4#2074? They are just noise at this point, making it harder to review the real porting notes.

Eric Wieser (Apr 24 2023 at 11:09):

I pushed a possibly controversial commit that removed a hack in favor of bumping a timeout

Eric Wieser (Apr 24 2023 at 11:10):

The downside is one lemma is now 100x slower (instead of 15x) than it was in Lean 3

Eric Wieser (Apr 24 2023 at 11:11):

On the other hand, I'm worried that continuing to add ad-hoc instances to speedup TC search in one specific place at at a time is just going to slow down TC search globally and make TC search harder to predict.

Scott Morrison (Apr 24 2023 at 11:40):

Maybe we could leave in place a comment explaining the instances that would speed it up, just as a breadcrumb.

Eric Wieser (Apr 24 2023 at 11:41):

That sounds like a good compromise


Last updated: Dec 20 2023 at 11:08 UTC