Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solver for equations over ℚ #431

Merged
merged 9 commits into from
Sep 18, 2024
Merged

Solver for equations over ℚ #431

merged 9 commits into from
Sep 18, 2024

Conversation

plt-amy
Copy link
Member

@plt-amy plt-amy commented Sep 11, 2024

We can re-use the ring solver for expressions over ℚ, even involving inverses. The gist of it is that we can re-express any equation involving inverses to an equation between quotients of polynomials, then invoke the ring solver. Even though this idea seemed pretty dumb (surely there would be a cleverer algorithm over ℚ?), it's what the Rocq field tactic does as well. I also added some more comments explicating why ℚ is defined the way it is.

@Lavenza
Copy link
Member

Lavenza commented Sep 11, 2024

Pull request preview

TOTBWF
TOTBWF previously approved these changes Sep 11, 2024
src/Prim/Data/Sigma.lagda.md Outdated Show resolved Hide resolved
src/Data/Rational/Properties.lagda.md Outdated Show resolved Hide resolved
src/Data/Rational/Solver.agda Show resolved Hide resolved
TOTBWF
TOTBWF previously approved these changes Sep 12, 2024
TOTBWF
TOTBWF previously approved these changes Sep 18, 2024
Copy link
Collaborator

@TOTBWF TOTBWF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numbers 👍

@plt-amy plt-amy merged commit d195da5 into main Sep 18, 2024
5 checks passed
@plt-amy plt-amy deleted the aliao/rat-solver branch September 18, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants