Rejection

Rejection

Proved
parse_inf_nan
Rejection. For every byte slice and either value of the separate sign argument, an input other than an unsigned inf, infinity, or nan keyword returns None.

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 SpecialHelperRejection :
    ∀ (s : Slice Std.U8) (negative : Bool),
      SourceValidByteSlice s ->
      (¬ DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) none false) ->
      (¬ DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) none true) ->
      num.imp.dec2flt.parse.parse_inf_nan
        F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative = ok none := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem SpecialHelperRejection__Refutation : Not
  (∀ (s : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (negative : Bool),
    dec2flt_model.SourceValidByteSlice s →
      Not
          (dec2flt_model.DecimalGoalVocabulary.specialLiteral dec2flt_model.DecimalGoalVocabularyDefault
            (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s)
            (@Option.none.{0} Bool) Bool.false) →
        Not
            (dec2flt_model.DecimalGoalVocabulary.specialLiteral dec2flt_model.DecimalGoalVocabularyDefault
              (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s)
              (@Option.none.{0} Bool) Bool.true) →
          @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.none.{0} dec2flt_model.F64))) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:SpecialHelperRejection
Closure nodes
  • SpecialHelperRejection

Models and assumptions

Program assumptions and trust

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

All 32 entries