Sign and commutativity lemmas for Float and Float32 #
The lemmas are proved through the logical models Float.Model and Float32.Model.
theorem Float.Model.UnpackedFloat.unpack_packComponents_neg {spec : Format} (s : Sign) (e : BitVec spec.exponentBits) (m : BitVec spec.mantissaBitsWithoutImplicit) :
theorem Float.Model.UnpackedFloat.flipSign_packComponents {spec : Format} (s : Sign) (e : BitVec spec.exponentBits) (m : BitVec spec.mantissaBitsWithoutImplicit) :
theorem Float.Model.UnpackedFloat.pack_neg {spec : Format} {u : UnpackedFloat} (h : u ≠ notANumber) :
Packing commutes with negation, except on NaN.
Negation of a packed float.
Negation of a packed float.