Zulip Chat Archive

Stream: Is there code for X?

Topic: question about quadratic equations


mathcat (Jun 18 2024 at 14:51):

Hello, super new to lean, I have the quadratic equation hp : (6 - 4 * k) * x * x + (2 - 9 * k ^ 2) * x + (3 - k ^ 3) = 0, where x k : ℤ. The next step in my proof is to continue with a new hypothesis that the discriminant >= 0 if solutions exist. I looked through the docs, but I'm not able to use any of the discriminant theorems there. How do I continue?

David Ang (Jun 18 2024 at 17:13):

You might be able to find something in Algebra/QuadraticDiscriminant.lean

Kevin Buzzard (Jun 18 2024 at 18:23):

If you ask your question with a #mwe you're more likely to nerdsnipe people into solving it. I would multiply both sides of the equation by 4*(6-4k), rewrite as (2*(6-4k)*x+(2-9*k^2))^2=mess using ring/polyrith and deduce the result you need from squre>=0, i.e. I'd just complete the square manually because for me that would be quicker than looking in the library.

mathcat (Jun 18 2024 at 20:09):

okay will keep in mind, thanks a lot


Last updated: May 02 2025 at 03:31 UTC