TorchLean API

FloatLib.Floats.Formats.Codebook.Arithmetic.Proof

Correctness of catalog-codebook arithmetic #

For the one-bit bipolar and two-bit ternary catalog tables, negation and multiplication agree with the corresponding integer operations on finite inputs. The proofs enumerate these tables' stored words. The ternary refinement statements assume finite operands; separate rejection theorems cover multiplication with a reserved operand.

@[simp]

A reserved left operand is rejected, including when the right operand is zero.

@[simp]

A reserved right operand is rejected, including when the left operand is zero.