@[extern lean_hex_word_poly_add]
Dense addition over a full-word Montgomery ring, with a native array kernel behind the exact Lean contract.
Equations
- Hex.WordPoly.add ctx a b = a + b
Instances For
@[extern lean_hex_word_poly_sub]
Dense subtraction over a full-word Montgomery ring, with a native array kernel behind the exact Lean contract.
Equations
- Hex.WordPoly.sub ctx a b = a - b
Instances For
@[extern lean_hex_word_poly_mul]
Dense multiplication over a full-word Montgomery ring. The Lean body is
the exact logical contract; lean_hex_word_poly_mul is its allocation-light
runtime implementation.
Equations
- Hex.WordPoly.mul ctx a b = a * b
Instances For
@[extern lean_hex_word_poly_mul_add]
Sum of two dense products over a full-word Montgomery ring. The native kernel fuses both convolutions and the final addition into one output pass.
Equations
- Hex.WordPoly.mulAdd ctx a b c d = a * b + c * d
Instances For
@[simp]
The packed runtime kernel has the ordinary dense product as its logical value.
@[simp]
@[simp]