Selected magnitude sign

Selected magnitude sign

Proved
dec2flt
Selected magnitude sign. On a successful numeric parse, the assembled word of each raw pair selected for final float assembly has a clear sign bit.

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 ParserSelectedMagnitudeSign :
    ∀ (s : Str) (f : F64) (tr : num.imp.dec2flt.Dec2FltAssemblyTrace F64),
      DecimalGoalVocabularyDefault.sourceString s ->
      num.imp.dec2flt.dec2flt_with_trace
        F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
        F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
        F64.Insts.CoreOpsArithNegF64 s =
        ok (core.result.Result.Ok f, num.imp.dec2flt.Dec2FltTrace.Assembled tr) ->
      DecimalGoalVocabularyDefault.assembledWord tr.selected_pair tr.assembled_word ∧ tr.assembled_word.val < 2 ^ 63 := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem ParserSelectedMagnitudeSign__Refutation : Not
  (∀ (s : Aeneas.Std.Str) (f : dec2flt_model.F64)
    (tr : dec2flt_model.num.imp.dec2flt.Dec2FltAssemblyTrace dec2flt_model.F64),
    dec2flt_model.DecimalGoalVocabulary.sourceString dec2flt_model.DecimalGoalVocabularyDefault s →
      @Eq.{1}
          (Aeneas.Std.Result.{0}
            (Prod.{0, 0}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
              (dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64)))
          (@dec2flt_model.num.imp.dec2flt.dec2flt_with_trace 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}
            (Prod.{0, 0}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
              (dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64))
            (@Prod.mk.{0, 0}
              (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
              (dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64)
              (@Aeneas.Std.core.result.Result.Ok.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError
                f)
              (@dec2flt_model.num.imp.dec2flt.Dec2FltTrace.Assembled dec2flt_model.F64 tr))) →
        And
          (dec2flt_model.DecimalGoalVocabulary.assembledWord dec2flt_model.DecimalGoalVocabularyDefault
            (@dec2flt_model.num.imp.dec2flt.Dec2FltAssemblyTrace.selected_pair dec2flt_model.F64 tr)
            (@dec2flt_model.num.imp.dec2flt.Dec2FltAssemblyTrace.assembled_word dec2flt_model.F64 tr))
          (@LT.lt.{0} Nat instLTNat
            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64
              (@dec2flt_model.num.imp.dec2flt.Dec2FltAssemblyTrace.assembled_word dec2flt_model.F64 tr))
            (@HPow.hPow.{0, 0, 0} Nat Nat Nat (@instHPow.{0, 0} Nat Nat (@Monoid.toPow.{0} Nat Nat.instMonoid))
              (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2)))
              (@OfNat.ofNat.{0} Nat (nat_lit 63) (instOfNatNat (nat_lit 63)))))) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:ParserSelectedMagnitudeSign
Closure nodes
  • ParserSelectedMagnitudeSign

Models and assumptions

Program assumptions and trust

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

All 32 entries