Conditional numeric acceptance

The statement differs between program versions. Each verdict below belongs to the statement shown on its page.

Conditional numeric acceptance

Proved
parse_number
Conditional numeric acceptance. Every nonempty source-valid byte slice of length at most 3 EiB that forms an unsigned numeric literal returns normally with Some. This requirement includes executions with integer overflow checks enabled and does not impose a limit on the number or mathematical value of explicit exponent digits within the stated byte-length domain.

View proof and assumptions

Revision introducing this program version · decision
NumberHelperAcceptance__Refutation uses 9223372036854120450 fractional ones followed by e-655359, whose initial sum is i64::MIN-1 before retry. Keep the original combination order for performance and exclude only exabyte-scale inputs with the explicit A bound. A+(10*T-1)=i64::MAX justifies the selected safe domain for the larger accumulator; the old sharp bound is not valid evidence for this new source. The source task still repairs the cutoff and slow defects.
Definitions quoted from revised requirements

Conditional abstract composition

dec2flt
Conditional abstract composition. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The lexical and conversion component contracts admit implementations, with numeric lexical acceptance, rejection and record representation required for nonempty source-valid byte slices of length at most A, and preservation of the ordinary mathematical exact rounding target required for numeric inputs of length at most B. Special parsing, native correctness-or-defer, integer correctness-or-defer, unrestricted assembly, and the full-significand accumulated-exponent slow diagnostic retain their existing domains; the slow diagnostic applies to every source-valid unsigned numeric literal, without an A or B restriction. For any components satisfying these contracts, the dispatcher's normal results on Rust strings of byte length at most A satisfy classification, accumulated-exponent rounding and lexical sign requirements. On numeric strings of byte length at most B they additionally satisfy ordinary mathematical exact rounding. These conclusions include the native shortcut, integer tier, many-digit endpoint decision, fallback, sign handling and final assembly. Contract inhabitability and the existence of an abstract normal output for every Rust string of byte length at most A must be established, not inferred from an implication over an empty contract package.

Conditional component compliance

dec2flt
Conditional component compliance. Let A = 3458764513820540928 bytes and B = 576460752303421440 bytes. The actual source components satisfy the contracts used in conditional abstract composition. In particular, the numeric lexical component returns normally and satisfies acceptance, rejection and record representation on every nonempty source-valid byte slice of length at most A; it preserves the input's ordinary mathematical exact rounding target on numeric slices of length at most B. The source components for special parsing, native conversion, integer conversion and unrestricted assembly retain their existing full-domain obligations. The actual slow component satisfies the full-significand accumulated-exponent diagnostic on every source-valid unsigned numeric literal, without a length restriction. For every Rust string of byte length at most A, the concrete dispatcher agrees with the abstract component operations at its calls and establishes their helper preconditions. On numeric strings of byte length at most B, this agreement additionally preserves the exact rounding target throughout dispatch. These obligations include native shortcut, integer tier, many-digit decision, fallback, sign handling and assembly, and require a genuinely inhabited compatible component package.
Supporting proofs
Inspect related source (198)
More program dependencies (156)
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_NumberHelperAcceptance :
    forall (s : Slice Std.U8) (x : DecimalLexeme),
      SourceValidByteSlice s -> s.val ≠ [] ->
      s.val.length <= 3458764513820540928 -> x.leadingSign = none ->
      DecimalGoalVocabularyDefault.validNumeric x ->
      DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes s ->
      exists d : num.imp.dec2flt.decimal.Decimal,
        P9_T1_ActualDispatchOperations.parseNumber s = ok (some d) := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem P13_T1_NumberHelperAcceptance__Refutation : Not
  (∀ (s : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (x : dec2flt_model.DecimalLexeme),
    dec2flt_model.SourceValidByteSlice s →
      @Ne.{1} (List.{0} Aeneas.Std.U8)
          (@Subtype.val.{1} (List.{0} Aeneas.Std.U8)
            (fun (l : List.{0} Aeneas.Std.U8) =>
              @LE.le.{0} Nat instLENat (@List.length.{0} Aeneas.Std.U8 l) Aeneas.Std.Usize.max)
            s)
          (@List.nil.{0} Aeneas.Std.U8) →
        @LE.le.{0} Nat instLENat
            (@List.length.{0} Aeneas.Std.U8
              (@Subtype.val.{1} (List.{0} Aeneas.Std.U8)
                (fun (l : List.{0} Aeneas.Std.U8) =>
                  @LE.le.{0} Nat instLENat (@List.length.{0} Aeneas.Std.U8 l) Aeneas.Std.Usize.max)
                s))
            (@OfNat.ofNat.{0} Nat (nat_lit 3458764513820540928) (instOfNatNat (nat_lit 3458764513820540928))) →
          @Eq.{1} (Option.{0} Bool) (dec2flt_model.DecimalLexeme.leadingSign x) (@Option.none.{0} Bool) →
            dec2flt_model.DecimalGoalVocabulary.validNumeric dec2flt_model.DecimalGoalVocabularyDefault x →
              @Eq.{1} (List.{0} Nat)
                  (dec2flt_model.DecimalGoalVocabulary.renderNumeric dec2flt_model.DecimalGoalVocabularyDefault x)
                  (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s) →
                @Exists.{1} dec2flt_model.num.imp.dec2flt.decimal.Decimal
                  fun (d : dec2flt_model.num.imp.dec2flt.decimal.Decimal) =>
                  @Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} dec2flt_model.num.imp.dec2flt.decimal.Decimal))
                    (dec2flt_model.P9_T1_DispatchOperations.parseNumber dec2flt_model.P9_T1_ActualDispatchOperations s)
                    (@Aeneas.Std.Result.ok.{0} (Option.{0} dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                      (@Option.some.{0} dec2flt_model.num.imp.dec2flt.decimal.Decimal d))) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:P13_T1_NumberHelperAcceptance
Closure nodes
  • P13_T1_NumberHelperAcceptance
Recorded replacement requirements

number_helper_acceptance

parse_number
Conditional numeric acceptance. Every nonempty source-valid byte slice of length at most 3 EiB that forms an unsigned numeric literal returns normally with Some. This requirement includes executions with integer overflow checks enabled and does not impose a limit on the number or mathematical value of explicit exponent digits within the stated byte-length domain.
Compare requirement statements

Original program

parse_number
Numeric acceptance. Every nonempty byte slice forming an unsigned numeric literal returns Some.

Read this version’s verdict and proof

Models and assumptions

Program assumptions and trust

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

All 34 entries