Exponent agreement

Exponent agreement

Proved
Mathematical specification
Exponent agreement. For every numeric literal whose accumulated explicit exponent equals its mathematical explicit exponent, exact and accumulated-exponent rounding agree.

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 ExponentValueAgreement :
    ∀ x : DecimalLexeme, DecimalGoalVocabularyDefault.validNumeric x ->
      DecimalGoalVocabularyDefault.accumulatedExplicitExponent x = DecimalGoalVocabularyDefault.mathExplicitExponent x ->
      ∀ target : F64,
        DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.exactMagnitude x) target ↔
        DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.accumulatedMagnitude x) target := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem ExponentValueAgreement__Refutation : Not
  (∀ (x : dec2flt_model.DecimalLexeme),
    dec2flt_model.DecimalGoalVocabulary.validNumeric dec2flt_model.DecimalGoalVocabularyDefault x →
      @Eq.{1} Int
          (dec2flt_model.DecimalGoalVocabulary.accumulatedExplicitExponent dec2flt_model.DecimalGoalVocabularyDefault x)
          (dec2flt_model.DecimalGoalVocabulary.mathExplicitExponent dec2flt_model.DecimalGoalVocabularyDefault x) →
        ∀ (target : dec2flt_model.F64),
          Iff
            (dec2flt_model.DecimalGoalVocabulary.roundsMagnitude dec2flt_model.DecimalGoalVocabularyDefault
              (dec2flt_model.DecimalGoalVocabulary.exactMagnitude dec2flt_model.DecimalGoalVocabularyDefault x) target)
            (dec2flt_model.DecimalGoalVocabulary.roundsMagnitude dec2flt_model.DecimalGoalVocabularyDefault
              (dec2flt_model.DecimalGoalVocabulary.accumulatedMagnitude dec2flt_model.DecimalGoalVocabularyDefault x)
              target)) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:ExponentValueAgreement
Closure nodes
  • ExponentValueAgreement

Models and assumptions

Program assumptions and trust

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

All 31 entries