Infinity

Infinity

Proved
parse_inf_nan
Infinity. For every byte slice and either value of the separate sign argument, an unsigned infinity keyword returns Some infinity with that sign.

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 SpecialHelperInfinity :
    ∀ (s : Slice Std.U8) (negative : Bool), DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes s) none false ->
      ∃ f : F64, num.imp.dec2flt.parse.parse_inf_nan
        F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative = ok (some f) ∧
        DecimalGoalVocabularyDefault.isInfinity negative f := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem SpecialHelperInfinity__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.false →
      @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.isInfinity dec2flt_model.DecimalGoalVocabularyDefault negative f)) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:SpecialHelperInfinity
Closure nodes
  • SpecialHelperInfinity

Models and assumptions

Program assumptions and trust

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

All 31 entries