test(fields): extend Mersenne31 regression coverage - #260
Conversation
🤖 PR SummaryTest / Regression Coverage
Infrastructure / CI
Refactoring
Remarks
Statistics
Lean Declarations ✏️ Removed: 3 declaration(s)
✏️ Added: 114 declaration(s)
📋 **Additional Analysis**The diff restructures the Mersenne field implementation, replacing the single-file 📄 **Per-File Summaries**
Last updated: 2026-07-20 09:49 UTC. |
6e4f165 to
51a0180
Compare
51a0180 to
8fda131
Compare
🤖 PR SummarySummaryThis PR adds regression test coverage for the Mersenne31 field implementation, which was originally introduced in upstream PR #257. The field itself (compressed into a subdirectory Test Coverage
Documentation
Refactoring / Deprecation
Mathematical Formalization (underlying, not additive in this PR)No changes were made to the formalization itself in this PR; the following files are present as a consequence of the upstream #257 merge but are not new in this PR:
CI / Validation (mentioned in PR body)The PR body lists lint style, import checking, and Note: The PR body acknowledges that because the branch Statistics
Lean Declarations ✏️ Removed: 3 declaration(s)
✏️ Added: 113 declaration(s)
📋 **Additional Analysis**No findings. 📄 **Per-File Summaries**
Last updated: 2026-08-26 08:10 UTC. |
Summary
Extends the Mersenne31 regression coverage added in #257. This branch has been refreshed onto #257 commit
5068d4c.Changes
CompPolyTests.Fields.Mersenne31.Instancesto check the canonical and fastFieldandNonBinaryFieldinstances, plus the canonical primality instance.ringEquivchecks for addition and multiplication.CompPolyTests.Validation
lake build CompPolyTests.Fields.Mersenne31.Instances CompPolyTests.Fields.Mersenne31.Fastlake test./scripts/lint-style.shgit diff --check./scripts/check-imports.shalso runs, but currently reports an unchanged #257 baseline issue:CompPoly/Fields/Mersenne.leanexists while the generatedCompPoly.leandoes not exportCompPoly.Fields.Mersenne.Stack note
#257 is still open. GitHub requires this cross-repository PR to target a branch in
Verified-zkEVM/CompPoly, and there is no upstream stack branch for #257, so this draft targetsmain. GitHub's raw diff therefore includes #257 as well as this companion commit.The additive diff relative to
adrienlacombe:pr257-mersenne31-baseis now exactly:tests/CompPolyTests.leantests/CompPolyTests/Fields/Mersenne31/Fast.leantests/CompPolyTests/Fields/Mersenne31/Instances.lean