Infinity

Infinity

Proved
dec2flt
Infinity. Every infinity literal returns Ok of the infinity with its lexical sign.

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 P13_T1_ParserInfinity :
    forall (s : Str) (sign : Option Bool),
      DecimalGoalVocabularyDefault.sourceString s ->
      DecimalGoalVocabularyDefault.specialLiteral
        (DecimalGoalVocabularyDefault.bytes s) sign false ->
      exists 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.isInfinity (decide (sign = some true)) f := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem P13_T1_ParserInfinity__Refutation : Not
  (∀ (s : Aeneas.Std.Str) (sign : Option.{0} Bool),
    dec2flt_model.DecimalGoalVocabulary.sourceString dec2flt_model.DecimalGoalVocabularyDefault s →
      dec2flt_model.DecimalGoalVocabulary.specialLiteral dec2flt_model.DecimalGoalVocabularyDefault
          (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s) sign Bool.false →
        @Exists.{1} dec2flt_model.F64 fun (f : dec2flt_model.F64) =>
          And
            (@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)))
            (dec2flt_model.DecimalGoalVocabulary.isInfinity dec2flt_model.DecimalGoalVocabularyDefault
              (@Decidable.decide (@Eq.{1} (Option.{0} Bool) sign (@Option.some.{0} Bool Bool.true))
                (@Option.instDecidableEq.{0} Bool instDecidableEqBool sign (@Option.some.{0} Bool Bool.true)))
              f)) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:P13_T1_ParserInfinity
Closure nodes
  • P13_T1_ParserInfinity

Models and assumptions

Program assumptions and trust

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

All 33 entries