Significand digit

Significand digit

Proved
Mathematical specification
Significand digit. Every numeric literal contains a significand digit.

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 ClassificationSignificandDigit :
    ∀ (bs : List Nat) x, (∀ b ∈ bs, b < 256) ->
      DecimalGoalVocabularyDefault.classifies bs (some (Sum.inl x)) ->
      x.integerDigits ≠ [] ∨ ∃ ds, x.fractionDigits = some ds ∧ ds ≠ [] := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem ClassificationSignificandDigit__Refutation : Not
  (∀ (bs : List.{0} Nat) (x : dec2flt_model.DecimalLexeme),
    (∀ (b : Nat),
        @Membership.mem.{0, 0} Nat (List.{0} Nat) (@List.instMembership.{0} Nat) bs b →
          @LT.lt.{0} Nat instLTNat b (@OfNat.ofNat.{0} Nat (nat_lit 256) (instOfNatNat (nat_lit 256)))) →
      dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault bs
          (@Option.some.{0} (Sum.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool))
            (@Sum.inl.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool) x)) →
        Or (@Ne.{1} (List.{0} Nat) (dec2flt_model.DecimalLexeme.integerDigits x) (@List.nil.{0} Nat))
          (@Exists.{1} (List.{0} Nat) fun (ds : List.{0} Nat) =>
            And
              (@Eq.{1} (Option.{0} (List.{0} Nat)) (dec2flt_model.DecimalLexeme.fractionDigits x)
                (@Option.some.{0} (List.{0} Nat) ds))
              (@Ne.{1} (List.{0} Nat) ds (@List.nil.{0} Nat)))) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:ClassificationSignificandDigit
Closure nodes
  • ClassificationSignificandDigit

Models and assumptions

Program assumptions and trust

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

All 31 entries