Conditional component compliance

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 component compliance

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

View proof and assumptions

Revision introducing this program version · decision
The second dispatch refutation uses the same empty package. Concrete numeric normal-return and record laws must use A, exact-target preservation must use B, and the actual slow helper must still meet its full unsigned diagnostic contract. The prior full-domain compliance approval/proof inventory cannot validate these changed source meanings and requirements.
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_DispatchComponentCompliance :
    exists C : P9_T1_AbstractComponents,
      DispatchContracts C /\ P9_T1_NormalComponentRefinement C /\
      (forall s : Str, DecimalGoalVocabularyDefault.sourceString s ->
        s.val.length <= 3458764513820540928 ->
        forall call : P9_T1_DispatchCall, P9_T1_ReachedDispatchCall s call ->
        match call with
        | .number body _ =>
            SourceValidByteSlice body /\ body.val ≠ [] /\ body.val.length <= s.val.length /\
            P9_T1_ActualDispatchOperations.parseNumber body = ok (C.parseNumber body)
        | .special body neg =>
            SourceValidByteSlice body /\ body.val ≠ [] /\ body.val.length <= s.val.length /\
            P9_T1_ActualDispatchOperations.parseSpecial body neg = ok (C.parseSpecial body neg)
        | .native body neg d =>
            SourceValidByteSlice body /\ body.val ≠ [] /\ body.val.length <= s.val.length /\
            d.negative = false /\ d.mantissa.val < 10 ^ 19 /\
            P9_T1_ActualDispatchOperations.native { d with negative := neg } =
              ok (C.native { d with negative := neg })
        | .first body _ d =>
            SourceValidByteSlice body /\ body.val ≠ [] /\ body.val.length <= s.val.length /\
            d.mantissa.val < 10 ^ 19 /\
            P9_T1_ActualDispatchOperations.integer d.exponent d.mantissa =
              ok (C.integer d.exponent d.mantissa)
        | .increment _ _ d _ =>
            d.mantissa.val < 10 ^ 19 /\ exists next : Std.U64,
              d.mantissa + 1#u64 = ok next /\ next.val = d.mantissa.val + 1
        | .second _ _ d _ next =>
            next.val = d.mantissa.val + 1 /\
            P9_T1_ActualDispatchOperations.integer d.exponent next =
              ok (C.integer d.exponent next)
        | .compare _ _ _ first second =>
            num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq first second =
              ok (decide (first.m = second.m /\ first.p_biased = second.p_biased))
        | .post body _ d _ =>
            SourceValidByteSlice body /\ body.val ≠ [] /\ body.val.length <= s.val.length /\
            d.negative = false /\ d.mantissa.val < 10 ^ 19
        | .slow body _ _ _ =>
            SourceValidByteSlice body /\ body.val ≠ [] /\ body.val.length <= s.val.length /\
            (exists x : DecimalLexeme, x.leadingSign = none /\
              DecimalGoalVocabularyDefault.validNumeric x /\
              DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes body) /\
            P9_T1_ActualDispatchOperations.slow body = ok (C.slow body)
        | .assemble _ _ _ selected =>
            P9_T1_ActualDispatchOperations.assemble selected = ok (C.assemble selected)
        | .negate _ _ _ magnitude =>
            magnitude.val < 2 ^ 63 /\
            P9_T1_ActualDispatchOperations.negate magnitude = ok (C.negate magnitude)) /\
      (forall (s : Str) (x : DecimalLexeme),
        DecimalGoalVocabularyDefault.sourceString s ->
        s.val.length <= 576460752303421440 ->
        DecimalGoalVocabularyDefault.classifies (DecimalGoalVocabularyDefault.bytes s)
          (some (Sum.inl x)) ->
        forall target : F64,
          DecimalGoalVocabularyDefault.roundsMagnitude
            (DecimalGoalVocabularyDefault.accumulatedMagnitude x) target ↔
          DecimalGoalVocabularyDefault.roundsMagnitude
            (DecimalGoalVocabularyDefault.exactMagnitude x) target) := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem P9_T1_DispatchComponentCompliance__Refutation : Not
  (@Exists.{1} dec2flt_model.P9_T1_AbstractComponents fun (C : dec2flt_model.P9_T1_AbstractComponents) =>
    And (dec2flt_model.DispatchContracts C)
      (And (dec2flt_model.P9_T1_NormalComponentRefinement C)
        (And
          (∀ (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))) →
                ∀ (call : dec2flt_model.P9_T1_DispatchCall),
                  dec2flt_model.P9_T1_ReachedDispatchCall s call →
                    @dec2flt_model.P9_T1_DispatchCall.casesOn.{1}
                      (fun (x : dec2flt_model.P9_T1_DispatchCall) =>
                        (fun (call : dec2flt_model.P9_T1_DispatchCall) => Prop) x)
                      call
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool) =>
                        (fun (body : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a : Bool) =>
                            And (dec2flt_model.SourceValidByteSlice body)
                              (And
                                (@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)
                                    body)
                                  (@List.nil.{0} Aeneas.Std.U8))
                                (And
                                  (@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)
                                        body))
                                    (@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)))
                                  (@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 body)
                                    (@Aeneas.Std.Result.ok.{0}
                                      (Option.{0} dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                                      (dec2flt_model.P9_T1_AbstractComponents.parseNumber C body))))))
                          a a_1)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool) =>
                        (fun (body : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (neg : Bool) =>
                            And (dec2flt_model.SourceValidByteSlice body)
                              (And
                                (@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)
                                    body)
                                  (@List.nil.{0} Aeneas.Std.U8))
                                (And
                                  (@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)
                                        body))
                                    (@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)))
                                  (@Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} dec2flt_model.F64))
                                    (dec2flt_model.P9_T1_DispatchOperations.parseSpecial
                                      dec2flt_model.P9_T1_ActualDispatchOperations body neg)
                                    (@Aeneas.Std.Result.ok.{0} (Option.{0} dec2flt_model.F64)
                                      (dec2flt_model.P9_T1_AbstractComponents.parseSpecial C body neg))))))
                          a a_1)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal) =>
                        (fun (body : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (neg : Bool)
                              (d : dec2flt_model.num.imp.dec2flt.decimal.Decimal) =>
                            And (dec2flt_model.SourceValidByteSlice body)
                              (And
                                (@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)
                                    body)
                                  (@List.nil.{0} Aeneas.Std.U8))
                                (And
                                  (@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)
                                        body))
                                    (@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)))
                                  (And
                                    (@Eq.{1} Bool (dec2flt_model.num.imp.dec2flt.decimal.Decimal.negative d) Bool.false)
                                    (And
                                      (@LT.lt.{0} Nat instLTNat
                                        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64
                                          (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))
                                        (@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 10) (instOfNatNat (nat_lit 10)))
                                          (@OfNat.ofNat.{0} Nat (nat_lit 19) (instOfNatNat (nat_lit 19)))))
                                      (@Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} dec2flt_model.F64))
                                        (dec2flt_model.P9_T1_DispatchOperations.native
                                          dec2flt_model.P9_T1_ActualDispatchOperations
                                          (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mk
                                            (dec2flt_model.num.imp.dec2flt.decimal.Decimal.exponent d)
                                            (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d) neg
                                            (dec2flt_model.num.imp.dec2flt.decimal.Decimal.many_digits d)))
                                        (@Aeneas.Std.Result.ok.{0} (Option.{0} dec2flt_model.F64)
                                          (dec2flt_model.P9_T1_AbstractComponents.native C
                                            (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mk
                                              (dec2flt_model.num.imp.dec2flt.decimal.Decimal.exponent d)
                                              (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d) neg
                                              (dec2flt_model.num.imp.dec2flt.decimal.Decimal.many_digits d))))))))))
                          a a_1 a_2)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal) =>
                        (fun (body : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a : Bool)
                              (d : dec2flt_model.num.imp.dec2flt.decimal.Decimal) =>
                            And (dec2flt_model.SourceValidByteSlice body)
                              (And
                                (@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)
                                    body)
                                  (@List.nil.{0} Aeneas.Std.U8))
                                (And
                                  (@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)
                                        body))
                                    (@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)))
                                  (And
                                    (@LT.lt.{0} Nat instLTNat
                                      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64
                                        (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))
                                      (@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 10) (instOfNatNat (nat_lit 10)))
                                        (@OfNat.ofNat.{0} Nat (nat_lit 19) (instOfNatNat (nat_lit 19)))))
                                    (@Eq.{1} (Aeneas.Std.Result.{0} dec2flt_model.num.imp.dec2flt.common.BiasedFp)
                                      (dec2flt_model.P9_T1_DispatchOperations.integer
                                        dec2flt_model.P9_T1_ActualDispatchOperations
                                        (dec2flt_model.num.imp.dec2flt.decimal.Decimal.exponent d)
                                        (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))
                                      (@Aeneas.Std.Result.ok.{0} dec2flt_model.num.imp.dec2flt.common.BiasedFp
                                        (dec2flt_model.P9_T1_AbstractComponents.integer C
                                          (dec2flt_model.num.imp.dec2flt.decimal.Decimal.exponent d)
                                          (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))))))))
                          a a_1 a_2)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                          (a_3 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                        (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_4 : Bool)
                              (d : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                              (a_5 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                            And
                              (@LT.lt.{0} Nat instLTNat
                                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64
                                  (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))
                                (@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 10) (instOfNatNat (nat_lit 10)))
                                  (@OfNat.ofNat.{0} Nat (nat_lit 19) (instOfNatNat (nat_lit 19)))))
                              (@Exists.{1} Aeneas.Std.U64 fun (next : Aeneas.Std.U64) =>
                                And
                                  (@Eq.{1} (Aeneas.Std.Result.{0} (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U64))
                                    (@HAdd.hAdd.{0, 0, 0} Aeneas.Std.U64 (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U64)
                                      (Aeneas.Std.Result.{0} (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U64))
                                      (@Aeneas.Std.instHAddUScalarResult Aeneas.Std.UScalarTy.U64)
                                      (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d)
                                      (Aeneas.Std.U64.ofNat
                                        (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1)))
                                        (@of_decide_eq_true
                                          (@LE.le.{0} Nat instLENat
                                            (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1)))
                                            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64))
                                          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1)))
                                            (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64))
                                          (@id.{0}
                                            (@Eq.{1} Bool
                                              (@Decidable.decide
                                                (@LE.le.{0} Nat instLENat
                                                  (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1)))
                                                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64))
                                                (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1)))
                                                  (Aeneas.Std.UScalar.cMax Aeneas.Std.UScalarTy.U64)))
                                              Bool.true)
                                            (@Eq.refl.{1} Bool Bool.true)))))
                                    (@Aeneas.Std.Result.ok.{0} Aeneas.Std.U64 next))
                                  (@Eq.{1} Nat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64 next)
                                    (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)
                                      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64
                                        (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))
                                      (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1)))))))
                          a a_1 a_2 a_3)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                          (a_3 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) (a_4 : Aeneas.Std.U64) =>
                        (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_5 : Bool)
                              (d : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                              (a_6 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) (next : Aeneas.Std.U64) =>
                            And
                              (@Eq.{1} Nat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64 next)
                                (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)
                                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64
                                    (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))
                                  (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1)))))
                              (@Eq.{1} (Aeneas.Std.Result.{0} dec2flt_model.num.imp.dec2flt.common.BiasedFp)
                                (dec2flt_model.P9_T1_DispatchOperations.integer
                                  dec2flt_model.P9_T1_ActualDispatchOperations
                                  (dec2flt_model.num.imp.dec2flt.decimal.Decimal.exponent d) next)
                                (@Aeneas.Std.Result.ok.{0} dec2flt_model.num.imp.dec2flt.common.BiasedFp
                                  (dec2flt_model.P9_T1_AbstractComponents.integer C
                                    (dec2flt_model.num.imp.dec2flt.decimal.Decimal.exponent d) next))))
                          a a_1 a_2 a_3 a_4)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                          (a_3 a_4 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                        (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_5 : Bool)
                              (a_6 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                              (first second : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                            @Eq.{1} (Aeneas.Std.Result.{0} Bool)
                              (dec2flt_model.num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq first
                                second)
                              (@Aeneas.Std.Result.ok.{0} Bool
                                (@Decidable.decide
                                  (And
                                    (@Eq.{1} Aeneas.Std.U64 (dec2flt_model.num.imp.dec2flt.common.BiasedFp.m first)
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.m second))
                                    (@Eq.{1} Aeneas.Std.I32
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased first)
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased second)))
                                  (@instDecidableAnd
                                    (@Eq.{1} Aeneas.Std.U64 (dec2flt_model.num.imp.dec2flt.common.BiasedFp.m first)
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.m second))
                                    (@Eq.{1} Aeneas.Std.I32
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased first)
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased second))
                                    (Aeneas.Std.instDecidableEqUScalar_1 Aeneas.Std.UScalarTy.U64
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.m first)
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.m second))
                                    (Aeneas.Std.instDecidableEqIScalar_1 Aeneas.Std.IScalarTy.I32
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased first)
                                      (dec2flt_model.num.imp.dec2flt.common.BiasedFp.p_biased second))))))
                          a a_1 a_2 a_3 a_4)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                          (a_3 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                        (fun (body : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a : Bool)
                              (d : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                              (a_4 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                            And (dec2flt_model.SourceValidByteSlice body)
                              (And
                                (@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)
                                    body)
                                  (@List.nil.{0} Aeneas.Std.U8))
                                (And
                                  (@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)
                                        body))
                                    (@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)))
                                  (And
                                    (@Eq.{1} Bool (dec2flt_model.num.imp.dec2flt.decimal.Decimal.negative d) Bool.false)
                                    (@LT.lt.{0} Nat instLTNat
                                      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64
                                        (dec2flt_model.num.imp.dec2flt.decimal.Decimal.mantissa d))
                                      (@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 10) (instOfNatNat (nat_lit 10)))
                                        (@OfNat.ofNat.{0} Nat (nat_lit 19) (instOfNatNat (nat_lit 19)))))))))
                          a a_1 a_2 a_3)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                          (a_3 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                        (fun (body : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a : Bool)
                              (a_4 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                              (a_5 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                            And (dec2flt_model.SourceValidByteSlice body)
                              (And
                                (@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)
                                    body)
                                  (@List.nil.{0} Aeneas.Std.U8))
                                (And
                                  (@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)
                                        body))
                                    (@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)))
                                  (And
                                    (@Exists.{1} dec2flt_model.DecimalLexeme fun (x : dec2flt_model.DecimalLexeme) =>
                                      And
                                        (@Eq.{1} (Option.{0} Bool) (dec2flt_model.DecimalLexeme.leadingSign x)
                                          (@Option.none.{0} Bool))
                                        (And
                                          (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 body))))
                                    (@Eq.{1} (Aeneas.Std.Result.{0} dec2flt_model.num.imp.dec2flt.common.BiasedFp)
                                      (dec2flt_model.P9_T1_DispatchOperations.slow
                                        dec2flt_model.P9_T1_ActualDispatchOperations body)
                                      (@Aeneas.Std.Result.ok.{0} dec2flt_model.num.imp.dec2flt.common.BiasedFp
                                        (dec2flt_model.P9_T1_AbstractComponents.slow C body)))))))
                          a a_1 a_2 a_3)
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : Bool)
                          (a_2 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                          (a_3 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                        (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_4 : Bool)
                              (a_5 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                              (selected : dec2flt_model.num.imp.dec2flt.common.BiasedFp) =>
                            @Eq.{1} (Aeneas.Std.Result.{0} dec2flt_model.F64)
                              (dec2flt_model.P9_T1_DispatchOperations.assemble
                                dec2flt_model.P9_T1_ActualDispatchOperations selected)
                              (@Aeneas.Std.Result.ok.{0} dec2flt_model.F64
                                (dec2flt_model.P9_T1_AbstractComponents.assemble C selected)))
                          a a_1 a_2 a_3)
                      fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (a_1 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                        (a_2 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) (a_3 : dec2flt_model.F64) =>
                      (fun (a : Aeneas.Std.Slice.{0} Aeneas.Std.U8)
                            (a_4 : dec2flt_model.num.imp.dec2flt.decimal.Decimal)
                            (a_5 : dec2flt_model.num.imp.dec2flt.common.BiasedFp) (magnitude : dec2flt_model.F64) =>
                          And
                            (@LT.lt.{0} Nat instLTNat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64 magnitude)
                              (@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)))))
                            (@Eq.{1} (Aeneas.Std.Result.{0} dec2flt_model.F64)
                              (dec2flt_model.P9_T1_DispatchOperations.negate
                                dec2flt_model.P9_T1_ActualDispatchOperations magnitude)
                              (@Aeneas.Std.Result.ok.{0} dec2flt_model.F64
                                (dec2flt_model.P9_T1_AbstractComponents.negate C magnitude))))
                        a a_1 a_2 a_3)
          (∀ (s : Aeneas.Std.Str) (x : dec2flt_model.DecimalLexeme),
            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 576460752303421440) (instOfNatNat (nat_lit 576460752303421440))) →
                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)) →
                  ∀ (target : dec2flt_model.F64),
                    Iff
                      (dec2flt_model.DecimalGoalVocabulary.roundsMagnitude dec2flt_model.DecimalGoalVocabularyDefault
                        (dec2flt_model.DecimalGoalVocabulary.accumulatedMagnitude
                          dec2flt_model.DecimalGoalVocabularyDefault x)
                        target)
                      (dec2flt_model.DecimalGoalVocabulary.roundsMagnitude dec2flt_model.DecimalGoalVocabularyDefault
                        (dec2flt_model.DecimalGoalVocabulary.exactMagnitude dec2flt_model.DecimalGoalVocabularyDefault
                          x)
                        target))))) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:P9_T1_DispatchComponentCompliance
Closure nodes
  • P9_T1_DispatchComponentCompliance
Recorded replacement requirements

dispatch_component_compliance

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

Original program

dec2flt
Component compliance. The actual source components satisfy the contracts used in abstract composition, including preservation of the input's rounding target. The dispatcher establishes the helper preconditions at their call sites.

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