Skip to content

test(hex-poly): cover dense polynomial negation - #9858

Merged
kim-em merged 1 commit into
mainfrom
issue-9387
Aug 31, 2026
Merged

test(hex-poly): cover dense polynomial negation#9858
kim-em merged 1 commit into
mainfrom
issue-9387

Conversation

@kim-em

@kim-em kim-em commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Closes #9387.

Add generic DensePoly Int conformance coverage for the public negation operation using the existing typical, zero-edge, and sparse adversarial fixtures. The checks pin coefficientwise output, additive inverse, involution, and agreement between subtraction and adding a negation. Extend the module contract and library SPEC to advertise the operation, properties, and edge cases.

Directive validation: DensePoly.neg has its own compiled Array.map implementation while sub uses a separate padded binary loop, so these checks cover the intended executable owner surface and their agreement is non-vacuous.

Verification:

  • lake build HexPoly.Conformance
  • lake build
  • git diff --check

🤖 Prepared with Codex

@kim-em
kim-em enabled auto-merge (squash) August 31, 2026 12:41
@kim-em
kim-em merged commit ca295cc into main Aug 31, 2026
1 check passed
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.

test(hex-poly): cover DensePoly.neg in the conformance module

1 participant