mathlib4 icon indicating copy to clipboard operation
mathlib4 copied to clipboard

feat: Generalize corollaries of rank-nullity theorem.

Open erdOne opened this issue 1 year ago • 2 comments


Open in Gitpod

erdOne avatar Jan 10 '24 16:01 erdOne

@erdOne are you still interested in working on this PR? Or is it obsolete now?

riccardobrasca avatar Feb 21 '24 14:02 riccardobrasca

I'm busy until mid-March. I think I'll come back to this after that. Feel free to adopt if this is needed elsewhere.

erdOne avatar Feb 23 '24 12:02 erdOne

Can you add a description of the PR?

Also, is it possible to split it? Correct me if I am wrong, but I have the impression you both generalize/move current results and add a new class. Maybe these two things are intertwined and difficult to separate, so don't worry if it is too much work to do it.

riccardobrasca avatar Apr 03 '24 08:04 riccardobrasca

I tried a bit and it seems hard to separate them.

erdOne avatar Apr 03 '24 17:04 erdOne

I tried a bit and it seems hard to separate them.

OK, don't worry.

riccardobrasca avatar Apr 03 '24 18:04 riccardobrasca

!bench

riccardobrasca avatar Apr 04 '24 19:04 riccardobrasca

Here are the benchmark results for commit b3998cd8727de70280a0072a5767c3c8e03f0fdc. There were significant changes against commit 92c745e2994217861e83a6e65a6ee286dd6f5cd6:

  Benchmark                                       Metric         Change
  =====================================================================
+ ~Mathlib.Algebra.Module.PID                     instructions    -5.1%
- ~Mathlib.LinearAlgebra.Dimension.Finite         instructions    22.3%
- ~Mathlib.LinearAlgebra.Dimension.Localization   instructions    58.9%

leanprover-bot avatar Apr 04 '24 20:04 leanprover-bot

Here are the benchmark results for commit b3998cd. There were significant changes against commit 92c745e:

  Benchmark                                       Metric         Change
  =====================================================================
+ ~Mathlib.Algebra.Module.PID                     instructions    -5.1%
- ~Mathlib.LinearAlgebra.Dimension.Finite         instructions    22.3%
- ~Mathlib.LinearAlgebra.Dimension.Localization   instructions    58.9%

@mattrobball do you think this is ok?

riccardobrasca avatar Apr 04 '24 20:04 riccardobrasca

Both file got longer (the +50% file doubled in size) so I guess it's fine as long as downstream files aren't slowed?

erdOne avatar Apr 04 '24 20:04 erdOne

Overall it is not terrible but it would nice to take a quick look at those two files to make sure you cannot make an easy change to fix the issue.

mattrobball avatar Apr 04 '24 20:04 mattrobball

After actually looking at the changes, this is perfectly fine.

mattrobball avatar Apr 04 '24 20:04 mattrobball

Thanks!

bors d+

riccardobrasca avatar Apr 04 '24 21:04 riccardobrasca

:v: erdOne can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

mathlib-bors[bot] avatar Apr 04 '24 21:04 mathlib-bors[bot]

bors merge

erdOne avatar Apr 05 '24 12:04 erdOne

Build failed (retrying...):

mathlib-bors[bot] avatar Apr 05 '24 14:04 mathlib-bors[bot]

Build failed (retrying...):

  • Build

mathlib-bors[bot] avatar Apr 05 '24 15:04 mathlib-bors[bot]

bors r- Can you merge master and fix the build before sending it back to bors? bors d+

sgouezel avatar Apr 05 '24 17:04 sgouezel

:v: erdOne can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

mathlib-bors[bot] avatar Apr 05 '24 17:04 mathlib-bors[bot]

Canceled.

mathlib-bors[bot] avatar Apr 05 '24 17:04 mathlib-bors[bot]

bors merge

erdOne avatar Apr 12 '24 14:04 erdOne

Pull request successfully merged into master.

Build succeeded:

mathlib-bors[bot] avatar Apr 12 '24 16:04 mathlib-bors[bot]