TorchLean API

FloatLib.Floats.Formats.Logarithmic.Configured.Proof

Correctness of configured exact logarithmic operations #

Wrapping is an equivalence with the complete code, zero denotes real zero, and multiplication agrees exactly with multiplication of decoded real values.

@[simp]

Unwrapping a freshly wrapped logarithmic code returns the original code.

@[simp]

Rewrapping the code of a logarithmic value returns the original value.

@[simp]

The distinguished logarithmic zero code denotes real zero.

@[simp]
theorem FloatLib.Floats.ExecFloat.Logarithmic.toReal_mul {radix : Numerics.Radix} (left right : Logarithmic radix) :
(left.mul right).toReal = left.toReal * right.toReal

Logarithmic multiplication agrees exactly with multiplication of decoded real values.