import Tablet.Preamble import Tablet.Binary64MagnitudeTarget import Tablet.F64_Insts_CoreOpsArithDivF64F64 import Tablet.F64_Insts_CoreOpsArithMulF64F64 import Tablet.F64_Insts_CoreOpsArithNegF64 import Tablet.F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64 import Tablet.num_imp_dec2flt_decimal_Decimal_try_fast_path open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: NativeCorrectOrDefer] theorem NativeCorrectOrDefer : ∀ (d : num.imp.dec2flt.decimal.Decimal) (o : Option F64), num.imp.dec2flt.decimal.Decimal.try_fast_path F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64 F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64 F64.Insts.CoreOpsArithNegF64 d = .ok o → o = none ∨ ∃ f : F64, o = some f ∧ d.many_digits = false ∧ Binary64MagnitudeTarget ((d.mantissa.val : Real) * 10 ^ d.exponent.val) (f.val % 2 ^ 63) ∧ f.val / 2 ^ 63 = if d.negative then 1 else 0 := by -- BODY sorry end dec2flt_model