NaN

NaN

Proved
parse_inf_nan
NaN. For every byte slice and either value of the separate sign argument, an unsigned NaN keyword returns Some of a NaN.

View proof and assumptions

Supporting proofs
Inspect related source (199)
More program dependencies (157)
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 SpecialHelperNan :
    ∀ (s : Slice Std.U8) (negative : Bool), DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) none true ->
      ∃ f : F64, num.imp.dec2flt.parse.parse_inf_nan
        F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative = ok (some f) ∧ DecimalGoalVocabularyDefault.isNan f := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem SpecialHelperNan__Refutation : Not
  (∀ (s : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (negative : Bool),
    dec2flt_model.DecimalGoalVocabulary.specialLiteral dec2flt_model.DecimalGoalVocabularyDefault
        (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s) (@Option.none.{0} Bool)
        Bool.true →
      @Exists.{1} dec2flt_model.F64 fun (f : dec2flt_model.F64) =>
        And
          (@Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} dec2flt_model.F64))
            (@dec2flt_model.num.imp.dec2flt.parse.parse_inf_nan dec2flt_model.F64 Aeneas.Std.U64
              dec2flt_model.F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative)
            (@Aeneas.Std.Result.ok.{0} (Option.{0} dec2flt_model.F64) (@Option.some.{0} dec2flt_model.F64 f)))
          (dec2flt_model.DecimalGoalVocabulary.isNan dec2flt_model.DecimalGoalVocabularyDefault f)) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:SpecialHelperNan
Closure nodes
  • SpecialHelperNan

Models and assumptions

Program assumptions and trust

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

All 31 entries