7.8. Cross-references
HexModArith depends on HexArith and underpins the finite-field
libraries:
-
HexArithsupplies the machine-word Barrett and Montgomery kernels that the hot-loop contexts wrap. The_root_.BarrettCtxand_root_.MontCtxtypes referenced byHex.BarrettCtxandHex.MontCtxare the untypedUInt64kernels from that library. -
The finite-field library
HexGFqRingand the prime-field polynomial libraryHexPolyFpconsumeZMod64 pas their coefficient type, inheriting the ring structure and the field facts above for primep.
For arbitrary moduli, Hex.ZMod64.inv? returns an inverse only after
checking its product with the input is one. The success theorem
Hex.ZMod64.inv?_eq_some supplies that equation for elimination.