Conditional abstract composition

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

Local notation

Notation in this requirement: A = 3 EiB · B = ≈ 512 PiB.

Conditional abstract composition

Proved
dec2flt
Conditional abstract composition. Let A = 3 EiB and B = ≈ 512 PiB. 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.

View proof and assumptions

Revision introducing this program version · decision
Its refutation proves that the historical package is uninhabited, not a failed dispatcher execution. The minimal fixed-cutoff repair preserves exact targets only through B and normal numeric lexical behavior through A. Revise the component domains and dispatcher conclusions explicitly, retaining genuine inhabitability and all independent unbounded conversion contracts. This prevents a hidden global exact/diagnostic contradiction outside B.
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 (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 P9_T1_DispatchAbstractComposition :
    (exists C : P9_T1_AbstractComponents, DispatchContracts C) /\
    (forall C : P9_T1_AbstractComponents, DispatchContracts C ->
      forall s : Str, DecimalGoalVocabularyDefault.sourceString s ->
      s.val.length <= 3458764513820540928 ->
      exists r trace, P9_T1_DispatchFrame (P9_T1_EmbedComponents C) s = ok (r, trace)) /\
    (forall C : P9_T1_AbstractComponents, DispatchContracts C ->
      forall (s : Str) r trace, DecimalGoalVocabularyDefault.sourceString s ->
      s.val.length <= 3458764513820540928 ->
      P9_T1_DispatchFrame (P9_T1_EmbedComponents C) s = ok (r, trace) ->
      ((DecimalGoalVocabularyDefault.classifies (DecimalGoalVocabularyDefault.bytes s) none ->
        exists error, r = core.result.Result.Err error) /\
      (forall sign nan,
        DecimalGoalVocabularyDefault.classifies (DecimalGoalVocabularyDefault.bytes s)
          (some (Sum.inr (sign, nan))) ->
        exists f, r = core.result.Result.Ok f /\
          (if nan then DecimalGoalVocabularyDefault.isNan f
          else DecimalGoalVocabularyDefault.isInfinity (decide (sign = some true)) f)) /\
      (forall x : DecimalLexeme,
        DecimalGoalVocabularyDefault.classifies (DecimalGoalVocabularyDefault.bytes s)
          (some (Sum.inl x)) ->
        exists f magnitude, r = core.result.Result.Ok f /\
          DecimalGoalVocabularyDefault.roundsMagnitude
            (DecimalGoalVocabularyDefault.accumulatedMagnitude x) magnitude /\
          DecimalGoalVocabularyDefault.signedMagnitude
            (DecimalGoalVocabularyDefault.lexicalNegative x) magnitude f /\
          (s.val.length <= 576460752303421440 ->
            DecimalGoalVocabularyDefault.roundsMagnitude
              (DecimalGoalVocabularyDefault.exactMagnitude x) magnitude)))) := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem P9_T1_DispatchAbstractComposition__Refutation : Not
  (And
    (@Exists.{1} dec2flt_model.P9_T1_AbstractComponents fun (C : dec2flt_model.P9_T1_AbstractComponents) =>
      dec2flt_model.DispatchContracts C)
    (And
      (∀ (C : dec2flt_model.P9_T1_AbstractComponents),
        dec2flt_model.DispatchContracts C →
          ∀ (s : Aeneas.Std.Str),
            dec2flt_model.DecimalGoalVocabulary.sourceString dec2flt_model.DecimalGoalVocabularyDefault s →
              @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))) →
                @Exists.{1}
                  (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
                  fun
                    (r :
                      Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64
                        dec2flt_model.num.float_parse.ParseFloatError) =>
                  @Exists.{1} (dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64)
                    fun (trace : dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64) =>
                    @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.P9_T1_DispatchFrame (dec2flt_model.P9_T1_EmbedComponents C) 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) r trace)))
      (∀ (C : dec2flt_model.P9_T1_AbstractComponents),
        dec2flt_model.DispatchContracts C →
          ∀ (s : Aeneas.Std.Str)
            (r : Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64 dec2flt_model.num.float_parse.ParseFloatError)
            (trace : dec2flt_model.num.imp.dec2flt.Dec2FltTrace dec2flt_model.F64),
            dec2flt_model.DecimalGoalVocabulary.sourceString dec2flt_model.DecimalGoalVocabularyDefault s →
              @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}
                    (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.P9_T1_DispatchFrame (dec2flt_model.P9_T1_EmbedComponents C) 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) r trace)) →
                  And
                    (dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault
                        (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s)
                        (@Option.none.{0}
                          (Sum.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool))) →
                      @Exists.{1} dec2flt_model.num.float_parse.ParseFloatError
                        fun (error : dec2flt_model.num.float_parse.ParseFloatError) =>
                        @Eq.{1}
                          (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64
                            dec2flt_model.num.float_parse.ParseFloatError)
                          r
                          (@Aeneas.Std.core.result.Result.Err.{0, 0} dec2flt_model.F64
                            dec2flt_model.num.float_parse.ParseFloatError error))
                    (And
                      (∀ (sign : Option.{0} Bool) (nan : Bool),
                        dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault
                            (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s)
                            (@Option.some.{0}
                              (Sum.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool))
                              (@Sum.inr.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool)
                                (@Prod.mk.{0, 0} (Option.{0} Bool) Bool sign nan))) →
                          @Exists.{1} dec2flt_model.F64 fun (f : dec2flt_model.F64) =>
                            And
                              (@Eq.{1}
                                (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64
                                  dec2flt_model.num.float_parse.ParseFloatError)
                                r
                                (@Aeneas.Std.core.result.Result.Ok.{0, 0} dec2flt_model.F64
                                  dec2flt_model.num.float_parse.ParseFloatError f))
                              (@ite.{1} Prop (@Eq.{1} Bool nan Bool.true) (instDecidableEqBool nan Bool.true)
                                (dec2flt_model.DecimalGoalVocabulary.isNan dec2flt_model.DecimalGoalVocabularyDefault 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)))
                      (∀ (x : dec2flt_model.DecimalLexeme),
                        dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault
                            (dec2flt_model.DecimalGoalVocabulary.bytes dec2flt_model.DecimalGoalVocabularyDefault s)
                            (@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)) →
                          @Exists.{1} dec2flt_model.F64 fun (f : dec2flt_model.F64) =>
                            @Exists.{1} dec2flt_model.F64 fun (magnitude : dec2flt_model.F64) =>
                              And
                                (@Eq.{1}
                                  (Aeneas.Std.core.result.Result.{0, 0} dec2flt_model.F64
                                    dec2flt_model.num.float_parse.ParseFloatError)
                                  r
                                  (@Aeneas.Std.core.result.Result.Ok.{0, 0} dec2flt_model.F64
                                    dec2flt_model.num.float_parse.ParseFloatError f))
                                (And
                                  (dec2flt_model.DecimalGoalVocabulary.roundsMagnitude
                                    dec2flt_model.DecimalGoalVocabularyDefault
                                    (dec2flt_model.DecimalGoalVocabulary.accumulatedMagnitude
                                      dec2flt_model.DecimalGoalVocabularyDefault x)
                                    magnitude)
                                  (And
                                    (dec2flt_model.DecimalGoalVocabulary.signedMagnitude
                                      dec2flt_model.DecimalGoalVocabularyDefault
                                      (dec2flt_model.DecimalGoalVocabulary.lexicalNegative
                                        dec2flt_model.DecimalGoalVocabularyDefault x)
                                      magnitude f)
                                    (@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 576460752303421440)
                                          (instOfNatNat (nat_lit 576460752303421440))) →
                                      dec2flt_model.DecimalGoalVocabulary.roundsMagnitude
                                        dec2flt_model.DecimalGoalVocabularyDefault
                                        (dec2flt_model.DecimalGoalVocabulary.exactMagnitude
                                          dec2flt_model.DecimalGoalVocabularyDefault x)
                                        magnitude)))))))) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:P9_T1_DispatchAbstractComposition
Closure nodes
  • P9_T1_DispatchAbstractComposition
Recorded replacement requirements

dispatch_abstract_composition

dec2flt
Conditional abstract composition. Let A = 3 EiB and B = ≈ 512 PiB. 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.
Compare requirement statements

Original program

dec2flt
Abstract composition. The lexical and conversion component contracts admit implementations. For any components satisfying those contracts, the dispatcher's normal results satisfy the classification, rounding, and sign requirements. This includes the native shortcut, integer tier, many-digit decision, fallback, sign handling, and final assembly.

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 39 entries