Selected exponent range

Selected exponent range

Proved
dec2flt
Selected exponent range. On a successful numeric parse, each raw pair selected by the dispatcher for final float assembly has a biased exponent in 0..=2047.

View proof and assumptions

Supporting proofs
Inspect related source (201)
More program dependencies (159)
Standard-library dependencies (39)

Related source and models come from the extraction records and declared dependencies.

Lean statement and supporting proof

Proposition checked for this verdict

theorem ParserSelectedExponent :
    ∀ (s : Str) (f : F64) (tr : num.imp.dec2flt.Dec2FltAssemblyTrace F64),
      DecimalGoalVocabularyDefault.sourceString s ->
      num.imp.dec2flt.dec2flt_with_trace
        F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
        F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
        F64.Insts.CoreOpsArithNegF64 s =
        ok (core.result.Result.Ok f, num.imp.dec2flt.Dec2FltTrace.Assembled tr) ->
      0 <= tr.selected_pair.p_biased.val ∧ tr.selected_pair.p_biased.val <= 2047 := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem ParserSelectedExponent__Refutation : Not
  (∀ (s : Aeneas.Std.Str) (f : dec2flt_model.F64)
    (tr : dec2flt_model.num.imp.dec2flt.Dec2FltAssemblyTrace dec2flt_model.F64),
    dec2flt_model.DecimalGoalVocabulary.sourceString dec2flt_model.DecimalGoalVocabularyDefault s →
      @Eq.{1}
          (Aeneas.Std.Result.{0}
            (Prod.{0, 0}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
              (dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64)))
          (@dec2flt_model.num.imp.dec2flt.dec2flt_with_trace dec2flt_model.F64 Aeneas.Std.U64
            dec2flt_model.F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64 dec2flt_model.F64.Insts.CoreOpsArithDivF64F64
            dec2flt_model.F64.Insts.CoreOpsArithMulF64F64 dec2flt_model.F64.Insts.CoreOpsArithNegF64 s)
          (@Aeneas.Std.Result.ok.{0}
            (Prod.{0, 0}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
              (dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64))
            (@Prod.mk.{0, 0}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
              (dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64)
              (@Aeneas.Std.core.result.Result.Ok.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError
                f)
              (@dec2flt_model.num.imp.dec2flt.Dec2FltTrace.Assembled dec2flt_model.F64 tr))) →
        And
          (@LE.le.{0} Int Int.instLEInt (@OfNat.ofNat.{0} Int (nat_lit 0) (@instOfNat (nat_lit 0)))
            (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32
              (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased
                (@dec2flt_model.num.imp.dec2flt.Dec2FltAssemblyTrace.selected_pair dec2flt_model.F64 tr))))
          (@LE.le.{0} Int Int.instLEInt
            (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32
              (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased
                (@dec2flt_model.num.imp.dec2flt.Dec2FltAssemblyTrace.selected_pair dec2flt_model.F64 tr)))
            (@OfNat.ofNat.{0} Int (nat_lit 2047) (@instOfNat (nat_lit 2047))))) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:ParserSelectedExponent
Closure nodes
  • ParserSelectedExponent

Models and assumptions

Program assumptions and trust

These modeling choices occur in the declared dependencies of this requirement’s proofs.

All 31 entries