Computable API for canonical polynomails#79
Conversation
🤖 Gemini PR SummaryThis PR introduces a computable API for canonical univariate polynomials ( Features
Fixes
Refactoring
Documentation
Analysis of Changes
🎨 **Style Guide Adherence**The following lines violate the provided style guide:
📄 **Per-File Summaries**
Last updated: 2026-02-13 15:29 UTC. |
* Proof for degree_eq_support_max Automated commit at 20260211_230303 * fix: linting errors and warnings * fix: reintroduce docstring * fix: annotate lemmas --------- Co-authored-by: aleph-prover[bot] <247409690+aleph-prover[bot]@users.noreply.github.com> Co-authored-by: Derek Sorensen <d@dhsorens.com>
* Proof for induction_on Automated commit at 20260211_232242 * fix: linting errors, warnings, docstrings, annotation --------- Co-authored-by: aleph-prover[bot] <247409690+aleph-prover[bot]@users.noreply.github.com> Co-authored-by: Derek Sorensen <d@dhsorens.com>
|
/review External: Internal: Comments: |
🤖 AI Review (with external context)🤖 AI ReviewOverall Summary: 📄 **Review for `CompPoly/Univariate/Basic.lean`**Based on the review of the provided diff for The code generally implements polynomial operations and properties correctly, following a standard approach (e.g., Horner's method for induction, standard degree definitions). However, there is a Major misformalization issue regarding the use of 1. Incorrect Assumption Handling in
|
|
The bot's feedback on assumptions is wrong, as the proofs compile with the |
* Proof for divX_toPoly Automated commit at 20260213_143852 * fix: incorporate existing proof * fix docstring --------- Co-authored-by: aleph-prover[bot] <247409690+aleph-prover[bot]@users.noreply.github.com> Co-authored-by: Derek Sorensen <d@dhsorens.com>
* Proof for eval₂_toPoly Automated commit at 20260213_145823 * fix: docstrings, formatting, warnings --------- Co-authored-by: aleph-prover[bot] <247409690+aleph-prover[bot]@users.noreply.github.com> Co-authored-by: Derek Sorensen <d@dhsorens.com>
* Proof for divX_mul_X_add Automated commit at 20260213_151653 * fix: formatting errors and warnings --------- Co-authored-by: aleph-prover[bot] <247409690+aleph-prover[bot]@users.noreply.github.com> Co-authored-by: Derek Sorensen <d@dhsorens.com>
|
This PR is done for now, still some API work to be done from the roadmap but for now all the key theorems and lemmas are proved, and the key API functions on canonical polynomials defined. TODO next on this is to refactor the raw polynomials for more readability, etc. merging |
This pull request adds a mathlib-style API to (canonical) univariate polynomials, along with proofs of correctness. The general style is:
still a WIP