Zulip Chat Archive

Stream: Is there code for X?

Topic: Quotient Remainder Theorem


Zeyi Zhao (Dec 26 2024 at 18:24):

Hi everyone, could anybody remind me where I could find the quotient reminder theorem over Q[x] in the mathlib repo? Thanks!

Notification Bot (Dec 26 2024 at 18:58):

This topic was moved here from #general > Quotient Reminder Theorem by Yury G. Kudryashov.

Yury G. Kudryashov (Dec 26 2024 at 18:59):

Please post a #mwe with a theorem you want to prove.

Yury G. Kudryashov (Dec 26 2024 at 19:00):

Also, what did you do to find it yourself?

Zeyi Zhao (Dec 26 2024 at 19:37):

What I am trying to prove is that given a polynomial p(x) with rational coefficients, it can be uniquely written as p(x)=q(x)f(x)+r(x), where f(x) is given, q(x) is the quotient, and r(x) is the remainder. Since I am pretty new to it, I am doing a primary search for explicit theorems over the repos. It is really helpful if you could tell me which repo I should be looking at to start with.

Johan Commelin (Dec 26 2024 at 19:39):

docs#Polynomial.instEuclideanDomain gives you the "euclidean algorithm" for polynomial rings

Zeyi Zhao (Dec 26 2024 at 19:52):

Johan Commelin said:

docs#Polynomial.instEuclideanDomain gives you the "euclidean algorithm" for polynomial rings

Thanks very much for the help!

Kevin Buzzard (Dec 26 2024 at 20:20):

Usually these theorems are called quot_add_rem but it would help if you asked the exact question in lean


Last updated: May 02 2025 at 03:31 UTC