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

Make algebra_tactics robust to attacks on the algebraic hierarchy #108

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

Tragicus
Copy link
Contributor

@Tragicus Tragicus commented Jan 20, 2025

The algebraic hierarchy keeps changing, so we compute the coercions that need to be inserted in the arguments of the constants in GRing. This computation is done at compile-time so that it does not slow down the execution of the tactics.

This should subsume #100 and #106.

@Tragicus Tragicus mentioned this pull request Jan 20, 2025
@@ -1393,5 +1393,6 @@ pred canonical-Z-semiring o:constant.
pred canonical-Z-ring o:constant.
pred canonical-Z-comring o:constant.
pred canonical-Z-unitring o:constant.
pred coercion i:string o:term.
Copy link
Member

Choose a reason for hiding this comment

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

In Db we should have only outputs (I thought elpi was complaining about this ...)

@CohenCyril CohenCyril merged commit c819257 into math-comp:master Jan 21, 2025
20 checks passed
@CohenCyril
Copy link
Member

@pi8027 this should be resilient to changes

@Tragicus Tragicus deleted the coercions branch January 21, 2025 08:25
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.

2 participants