NLA-lib Explorer

Float.Model.BinaryRounding.int_mul_two_zpow_eq_of_le

Library · theorem

A binary multiple at exponent e is an integral lattice multiple at every exponent t\le e.

Float.Model.BinaryRounding.int_mul_two_zpow_eq_of_le (M : ℤ) {e t : ℤ} (h : t ≤ e) :
  ↑M * 2 ^ e = ↑(M * 2 ^ (e - t).toNat) * 2 ^ t

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.BinaryFormat.