Documentation

CslibFrontier.Computability.WordRAM.Realization.Signed

Signed-integer Memory.Prog primitives over Signed.encode #

This module provides pure-register Memory.Prog negation, addition, subtraction, and strict order comparison over Cslib.WordRAM.Signed.encode (2 * |z| + signBit), together with their Realizes .exact, ValidHistory, memoryCost, and clientResult certificates.

Main definitions #

Main results #

Negate a Signed.encode-packed integer in Memory.Prog ℕ without memory accesses.

Add two Signed.encode-packed integers in Memory.Prog ℕ without memory accesses.

Subtract two Signed.encode-packed integers (d.1 - d.2) in Memory.Prog ℕ.

@[reducible, inline]

Strict integer < predicate directly on Signed.encode-packed words.