No spurious NaNs

No spurious NaNs

Proved
dec2flt
No spurious NaNs. Every successful result for an input other than a NaN literal is not NaN.

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 ParserNonNanResults :
    ∀ (s : Str) (f : F64), DecimalGoalVocabularyDefault.sourceString s ->
      (¬ ∃ negative, DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) negative true) ->
      num.imp.dec2flt.dec2flt F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
        F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
        F64.Insts.CoreOpsArithNegF64 s = ok (core.result.Result.Ok f) -> ¬ DecimalGoalVocabularyDefault.isNan f := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem ParserNonNanResults__Refutation : Not
  (∀ (s : Aeneas.Std.Str) (f : dec2flt_model.F64),
    dec2flt_model.DecimalGoalVocabulary.sourceString dec2flt_model.DecimalGoalVocabularyDefault s →
      Not
          (@Exists.{1} (Option.{0} Bool) fun (negative : Option.{0} Bool) =>
            dec2flt_model.DecimalGoalVocabulary.specialLiteral dec2flt_model.DecimalGoalVocabularyDefault
              (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s) negative
              Bool.true) →
        @Eq.{1}
            (Aeneas.Std.Result.{0}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError))
            (@dec2flt_model.num.imp.dec2flt.dec2flt 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}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
              (@Aeneas.Std.core.result.Result.Ok.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError
                f)) →
          Not (dec2flt_model.DecimalGoalVocabulary.isNan dec2flt_model.DecimalGoalVocabularyDefault f)) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:ParserNonNanResults
Closure nodes
  • ParserNonNanResults

Models and assumptions

Program assumptions and trust

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

All 32 entries