You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(Coding Theory): Add Gao decoder and correctness (#249)
* Add `ReedSolomon.lean` under `Data/CodingTheory`
* Add `GaoDecoder.lean`
* Add `ToMathlib/Polynomial/Roots.lean`
* Add `ToMathlib/Order/WithBot.lean`
* `EuclideanAlgorithm.lean`: Add Bézout invariants for `xgcd`
* `DivisionCorrectness.lean`: add `exactDiv_toPoly_iff`
* Add `GaoCorrectness.lean`
* `CompPoly.lean`: update imports
* Place encoder-only results in `ReedSolomon.lean`
* chore(coding-theory): address review nits on Gao decoder
Cosmetic cleanups to the Gao decoder formalization, no change to
statements or proof terms (axioms remain [propext, Classical.choice,
Quot.sound]; full build + lint-style pass):
- Convert bare `simp`/`simp [...]` to explicit `simp only [...]` at the
seven sites in `GaoCorrectness.lean`/`ReedSolomon.lean`, per the repo's
performance guidance (bare `simp` pulls in the full simp set).
- Rename lemmas mixing camelCase `errorLocator` into snake_case names:
`disagreement_subset_errorLocator_zeros`,
`disagreement_card_le_errorLocator_natDegree`,
`hammingDist_le_errorLocator_natDegree` -> `*_error_locator_*`.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor(coding-theory): move RS/Gao under Univariate/ReedSolomon
Relocate the Reed-Solomon code and Gao decoder from Data/CodingTheory/
to Univariate/ReedSolomon/, matching how the Guruswami-Sudan decoder
sits under its representation family (Bivariate/GuruswamiSudan/). Data/
is documented as helper lemmas and support definitions, not user-facing
decoders. Namespaces (CompPoly.ReedSolomon[.Gao]) are unchanged; only
file paths and the two internal imports move. CompPoly.lean regenerated
via update-lib.sh.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Alexander Hicks <25369263+alexanderlhicks@users.noreply.github.com>
0 commit comments