NaN acceptance

NaN acceptance

Proved
dec2flt
NaN acceptance. Every NaN literal returns Ok of a float satisfying is_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 ParserNanAcceptance :
    ∀ (s : Str) (sign : Option Bool), DecimalGoalVocabularyDefault.sourceString s ->
      DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) sign true -> ∃ f : F64,
      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 ParserNanAcceptance__Refutation : ¬ (∀ (s : Str) (sign : Option Bool), DecimalGoalVocabularyDefault.sourceString s ->
      DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) sign true -> ∃ f : F64,
      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
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:ParserNanAcceptance
Closure nodes
  • ParserNanAcceptance

Models and assumptions

Program assumptions and trust

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

All 32 entries