Zulip Chat Archive
Stream: mathlib4
Topic: Linear independence of polynomial sequences over semirings
Julian Berman (Feb 21 2025 at 18:58):
In #20846 we define polynomial sequences and prove they are linearly independent in R[X]
for R
a ring. The question was asked on whether this is true in a semiring. @Etienne Marion mentioned after discussing with a friend that this seems likely true in a semiring with injective addition, but we don't seem to have an AddCancelCommSemiring
class to go along with docs#AddCancelCommMonoid. I think (especially given I am nearly at the limits of what I understand personally) that for the PR we're going to leave this as a TODO regardless, but it seemed like a good suggestion to confirm that in fact that typeclass doesn't exist with some other name, and/or whether I've missed anything else obvious.
Riccardo Brasca (Feb 21 2025 at 19:21):
Don't we have IsAddCancel
or something like that?
Etienne Marion (Feb 21 2025 at 19:22):
Ah indeed there is docs#IsCancelAdd !
Etienne Marion (Feb 21 2025 at 19:53):
The proof strategy we discussed was to use the fact that a semiring which has IsCancelAdd
could be injected in a ring, which we did not check but seemed reasonable. However I'm not at all sure how this should be stated, I'll take any suggestions.
Maybe it will just be easier to do the proof "by hand", I think I'll give it a try this week-end.
Riccardo Brasca (Feb 21 2025 at 19:59):
Yes, this is related to the fact that the natural map from a commutative cancellative monoid to the groupification is injective. I think this is somewhere in mathlib
Riccardo Brasca (Feb 21 2025 at 20:02):
Anyway proving this by hand should be easy in any concrete case
Junyan Xu (Feb 21 2025 at 20:30):
This also arose in
Etienne Marion (Feb 21 2025 at 20:59):
Ah indeed! I had no idea there had been a recent change in the definition. I don't feel confident enough to dive in those localization questions.
Riccardo Brasca (Feb 21 2025 at 21:17):
The previous definition (the usual one just written for semirings) is not very interesting, since 1,2,3, ...
is â„•
-linearly independent.
Etienne Marion (Feb 21 2025 at 21:18):
Yes but I thought the current definition had always been there
Riccardo Brasca (Feb 21 2025 at 21:18):
I think the current one is the same as "linear independent over the ringification" (at least for cancellative semirings)
Riccardo Brasca (Feb 21 2025 at 21:19):
I just made the word "ringification" up, but I mean the same construction as getting ℤ
from â„•
(the should be the adjoint of the forgetful functor).
Edward van de Meent (Feb 21 2025 at 21:28):
for those who missed it and don't feel like searching through the previous thread, under the previous definition, a family was LinearIndependent
exactly when the kernel of docs#Finsupp.linearCombination is trivial. Indeed, the kernel of taking linear combinations of Nat.succ
is trivial, but taking linear combinations is not injective (which is the current definition of LinearIndependent
)
Etienne Marion (Feb 22 2025 at 13:27):
I got
lemma linearIndependent {R : Type*} [Semiring R] [IsCancelAdd R] [IsRightCancelMulZero R]
(S : Sequence R) : LinearIndependent R S
sorry-free! It needs some tidying though.
Julian Berman (Feb 22 2025 at 13:28):
Amazing. I saw your "horrible" last night :) looking forward to learning from the less-horrible version.
Etienne Marion (Feb 22 2025 at 13:30):
Haha yeah I had never dealt with polynomials in Mathlib before and got a little bit frustrated :sweat_smile:
Antoine Chambert-Loir (Feb 22 2025 at 18:43):
(Just a comment that won't help much, I fear.) This seems to be a particular case of the following situation: Starting from an R
-module M
with a filtration (which doesn't seem to be formalized in mathlib), that is a monotone family of submodules indexed by an ordered set, you can consider its associated graded module (direct sum of quotient of the filtered parts modulo the sum of the strictly slower ones), and you have a family in that module which induces a basis in the graded module—then it is a basis.
Eric Wieser (Feb 22 2025 at 19:22):
(there is an open PR about associated graded rings, and possibly also modules)
Julian Berman (Feb 22 2025 at 19:23):
Yeah in trying to understand Antoine's comment we found an old thread from you Eric on them :) EDIT: looks like #20913 and #20940
Antoine Chambert-Loir (Feb 22 2025 at 21:24):
Thanks. I'll try to review these PR.
Jz Pan (Feb 23 2025 at 03:36):
Antoine Chambert-Loir said:
you can consider its associated graded module (direct sum of quotient of the filtered parts modulo the sum of the strictly slower ones)
But for this particular question you only need to consider the R
-module structure of this graded module, but not over any graded ring.
Last updated: May 02 2025 at 03:31 UTC