Zulip Chat Archive
Stream: maths
Topic: Does Schwartz-Zippel hold for Integral Domains?
Bolton Bailey (Sep 14 2023 at 06:09):
This is blowing my mind right now. I replaced my Field F
instance with CommRing F
in my Schwartz-Zippel proof just to see what would break, and it came back complaining about IsDomain F
. I added that and the proof just ... worked. Does S-Z not require a field as the Wikipedia article, implies?
Bolton Bailey (Sep 14 2023 at 06:10):
I guess not, the original paper confirms in the intro.
Flo (Florent Schaffhauser) (Sep 14 2023 at 06:11):
It’s cool that you found out about that by formalizing the result 😊
Flo (Florent Schaffhauser) (Sep 14 2023 at 06:12):
(to be clear, I had no idea about any of this myself: I just find it interesting that we can advance our own understanding of math by explaining stuff to a computer)
Bolton Bailey (Sep 14 2023 at 06:15):
I should edit Wikipedia to clarify this.
Bolton Bailey (Sep 14 2023 at 06:20):
Now I want to go further. Can we weaken to semirings?
Bolton Bailey (Sep 14 2023 at 06:20):
Does the Finset version of docs#Polynomial.card_roots' hold for CommSemiring
?
Flo (Florent Schaffhauser) (Sep 14 2023 at 06:21):
Hmm, I actually don’t know.
Flo (Florent Schaffhauser) (Sep 14 2023 at 06:22):
I just find it funny because of the whole discussion we had yesterday and the days before on linearly ordered semirings :smiling_face:️
Eric Rodriguez (Sep 14 2023 at 08:41):
No, you need domains. x(x-2) has 0,2,4 as roots in z/8z for an example. I think cancellative semirings aren't enough either, but I can't remember
Kevin Buzzard (Sep 14 2023 at 08:45):
and 6
Antoine Chambert-Loir (Sep 14 2023 at 11:13):
From a math point of view, the case of a field and the case of a domain are equivalent because you can embed any domain into a field, its field of fractions, and knowing the result there suffices.
Bolton Bailey (Sep 15 2023 at 00:06):
Eric Rodriguez said:
No, you need domains. x(x-2) has 0,2,4 as roots in z/8z for an example. I think cancellative semirings aren't enough either, but I can't remember
Well yes, but what about comm semirings that are domains, like Nat?
Eric Rodriguez (Sep 15 2023 at 06:01):
I don't see why it would be true, as there's no euclidean algorithm, which usually means it's false, but I've been shocked before. I tried to make counterexamplea for a bit but it's actually quite hard to make a polynomial that has roots in a strict semiring
Eric Rodriguez (Sep 15 2023 at 06:01):
(domain isn't the right condition, you need cancellative - no zero divisors does not imply cancellative in semirings)
Yong Kiam (Apr 10 2024 at 06:29):
jumping in very late here: indeed, we found the same thing out in our formalization of Schwartz-Zippel for the AFP (changed field -> idom in Isabelle and it just worked)
Antoine Chambert-Loir (Apr 11 2024 at 06:39):
Bolton Bailey said:
reak, and it came back complaining about
IsDomain F
. I added that and the proof just ... worked. Does S-Z not r
The Schwartz-Zippel theorem says something about the probability that a -tuple randomly sampled from a set is a root of a given multivariate polynomial . Your question is about whether has to be a field or whether the assumption can be relaxed to integral domain. Lean told you the latter was enough, because it is the hypothesis needed by the standard proof. Actually, if you happen to know the case for fields and ask about what happens for an integral domain , you can always embed into its field of fractions . It is plain that the statement for a subset in is the same as the statement for viewed in , hence it holds.
Yaël Dillies (Oct 05 2024 at 13:22):
FYI, #5297 (the PR proving Schwartz-Zippel) is now ready for review!
Yaël Dillies (Nov 28 2024 at 16:01):
... and #5297 is ready for review again, hopefully for the last time
Last updated: May 02 2025 at 03:31 UTC