DispatchComponentCompliance

Open

Statement

This explanation was written alongside the formalization to describe the statement and its reasoning.

Theorem

There is one instance of the shared contracts in DispatchContracts such that, on every source-valid Rust byte slice, the extracted numeric parser returns normally and its result equals the contract's numeric-parser result, and, for either sign, the extracted special parser returns normally and its result equals the contract's special-parser result. On every source-valid slice carrying a valid unsigned numeric lexeme whose rendering is exactly the slice bytes, the extracted slow component also returns normally and its raw pair equals the contract's slow result. The instance's native, integer, comparison, assembly, and sign operations agree with every normal return of their corresponding extracted components. No helper-slice clause adds a UTF-8 premise. The instance therefore preserves each input's exact rounding target through the parsed-record equality or many-digit endpoint interval, and it retains all source-valid input domains and each component's normal-return-or-deferral distinction.
For every source-valid Rust string and every normal execution of the extracted traced dispatcher, the public dispatcher has the trace's first result projection and the same contract instance records the exact value flow. Empty and sign-only inputs take their distinct error branches. Otherwise the trace body is precisely the sign-stripped body, is a source-valid Rust byte slice, and its Boolean sign is the stripped optional sign; numeric and special parser results equal the corresponding contract results. A native return receives the parsed record with only its sign overwritten. On the assembly path, native conversion returned None; the first integer call receives exactly the parsed exponent and mantissa and produces the recorded first pair. The recorded second-call guard is exactly ``many digits and nonnegative first biased exponent.'' When true, the parser's \mathtt{mantissa}<10^{19} bound makes mantissa plus one safe in u64; the second call receives that successor and the same exponent, and the trace records its result and exact comparison with the first pair. Equality retains the first pair, while inequality preserves its mantissa, sets its exponent to -1, and records forced deferral. A false guard records no second operands or result and retains the first pair.
The slow-path guard is exactly negativity of the post-comparison exponent. A true guard calls the slow component on the unchanged sign-stripped body and selects its replacement pair; a false guard records no slow result and selects the post-comparison pair. The selected pair, assembled word, assembly result, whether the lexical sign is applied, and final result are all equal to their successive contract values. Direct special and native returns select no raw pair. Thus the source-string precondition on whole flow, the source-valid-slice preconditions on numeric parsing, special parsing, and slow fallback, and every other helper precondition and intermediate observation used by abstract composition are established at their actual call sites.

Lean statement

Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.

import Tablet.DecimalGoalVocabularyDefault
import Tablet.DispatchContracts
import Tablet.SourceValidByteSlice
import Tablet.F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64
import Tablet.F64_Insts_CoreOpsArithDivF64F64
import Tablet.F64_Insts_CoreOpsArithMulF64F64
import Tablet.F64_Insts_CoreOpsArithNegF64
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64
import Tablet.num_imp_dec2flt_dec2flt
import Tablet.num_imp_dec2flt_dec2flt_with_trace
import Tablet.num_imp_dec2flt_parse_parse_number
import Tablet.num_imp_dec2flt_parse_parse_inf_nan
import Tablet.num_imp_dec2flt_decimal_Decimal_try_fast_path
import Tablet.num_imp_dec2flt_lemire_compute_float
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa
import Tablet.num_imp_dec2flt_biased_fp_to_float

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DispatchComponentCompliance]
theorem DispatchComponentCompliance :
    ∃ C : DispatchContracts,
      (∀ (s : Slice Std.U8),
        SourceValidByteSlice s ->
        ∃ out,
          num.imp.dec2flt.parse.parse_number s = ok out ∧
            C.parseNumber (DecimalGoalVocabularyDefault.bytes s) = out) ∧
      (∀ (s : Slice Std.U8) negative,
        SourceValidByteSlice s ->
        ∃ out,
          num.imp.dec2flt.parse.parse_inf_nan
            F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative = ok out ∧
          C.parseSpecial (DecimalGoalVocabularyDefault.bytes s) negative = out) ∧
      (∀ d out,
        num.imp.dec2flt.decimal.Decimal.try_fast_path
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 d = ok out -> C.native d = out) ∧
      (∀ q w fp,
        num.imp.dec2flt.lemire.compute_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 q w = ok fp ->
        C.integer q w = fp) ∧
      (∀ (body : Slice Std.U8) x,
        SourceValidByteSlice body ->
        x.leadingSign = none ->
        DecimalGoalVocabularyDefault.validNumeric x ->
        DecimalGoalVocabularyDefault.renderNumeric x =
          DecimalGoalVocabularyDefault.bytes body ->
        ∃ fp,
          num.imp.dec2flt.slow.parse_long_mantissa
            F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 body = ok fp ∧
          C.slow (DecimalGoalVocabularyDefault.bytes body) = fp) ∧
      (∀ fp f,
        num.imp.dec2flt.biased_fp_to_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatExtU64 fp = ok f ->
        C.assemble fp = f) ∧
      (∀ magnitude result,
        F64.Insts.CoreOpsArithNegF64.neg magnitude = ok result ->
        C.applySign true magnitude = result) ∧
      (∀ magnitude, C.applySign false magnitude = magnitude) ∧
      (∀ a b equal,
        num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq
          a b = ok equal -> C.samePair a b = equal) ∧
      ∀ (s : Str) r (tr : num.imp.dec2flt.Dec2FltTrace F64),
        DecimalGoalVocabularyDefault.sourceString s ->
        num.imp.dec2flt.dec2flt_with_trace
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 s = ok (r, tr) ->
        num.imp.dec2flt.dec2flt
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 s = ok r ∧
        match tr with
        | num.imp.dec2flt.Dec2FltTrace.EmptyInput =>
            DecimalGoalVocabularyDefault.bytes s = [] ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) = none ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) none ∧
              ∃ e, r = core.result.Result.Err e
        | num.imp.dec2flt.Dec2FltTrace.SignOnly body negative =>
            body.val = [] ∧
              DecimalGoalVocabularyDefault.bytes s =
                [if negative then 45 else 43] ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) = none ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) none ∧
              ∃ e, r = core.result.Result.Err e
        | num.imp.dec2flt.Dec2FltTrace.Invalid body negative
            parseNumber parseSpecial =>
            ∃ sign,
              body.val ≠ [] ∧
              SourceValidByteSlice body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes body) ∧
              negative = decide (sign = some true) ∧
              parseNumber = none ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes body) = none ∧
              parseSpecial = none ∧
              C.parseSpecial (DecimalGoalVocabularyDefault.bytes body) negative = none ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) none ∧
              ∃ e, r = core.result.Result.Err e
        | num.imp.dec2flt.Dec2FltTrace.Special body negative
            parseNumber parseSpecial result =>
            ∃ sign,
              body.val ≠ [] ∧
              SourceValidByteSlice body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes body) ∧
              negative = decide (sign = some true) ∧
              parseNumber = none ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes body) = none ∧
              parseSpecial = some result ∧
              C.parseSpecial (DecimalGoalVocabularyDefault.bytes body) negative =
                some result ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) (some result) ∧
              r = core.result.Result.Ok result
        | num.imp.dec2flt.Dec2FltTrace.FastPath body negative parseNumber
            fastInput fastResult result =>
            ∃ sign parsed,
              body.val ≠ [] ∧
              SourceValidByteSlice body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes body) ∧
              negative = decide (sign = some true) ∧
              parseNumber = some parsed ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes body) = some parsed ∧
              fastInput = { parsed with negative := negative } ∧
              C.native fastInput = fastResult ∧ fastResult = some result ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) (some result) ∧
              r = core.result.Result.Ok result
        | num.imp.dec2flt.Dec2FltTrace.Assembled a =>
            ∃ sign parsed,
              a.body.val ≠ [] ∧
              SourceValidByteSlice a.body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes a.body) ∧
              a.negative = decide (sign = some true) ∧
              a.parse_number_result = some parsed ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes a.body) = some parsed ∧
              a.fast_path_input = { parsed with negative := a.negative } ∧
              a.fast_path_result = none ∧ C.native a.fast_path_input = none ∧
              a.first_compute_exponent = parsed.exponent ∧
              a.first_compute_mantissa = parsed.mantissa ∧
              C.integer a.first_compute_exponent a.first_compute_mantissa =
                a.first_compute_result ∧
              parsed.mantissa.val < 10 ^ 19 ∧
              parsed.mantissa.val + 1 < 2 ^ 64 ∧
              a.second_compute_guard =
                (parsed.many_digits &&
                  decide (0 <= a.first_compute_result.p_biased.val)) ∧
              (a.second_compute_guard = true ->
                ∃ nextMantissa second,
                  a.second_compute_exponent = some parsed.exponent ∧
                  a.second_compute_mantissa = some nextMantissa ∧
                  C.incrementMantissa parsed.mantissa = some nextMantissa ∧
                  nextMantissa.val = parsed.mantissa.val + 1 ∧
                  a.second_compute_result = some second ∧
                  C.integer parsed.exponent nextMantissa = second ∧
                  a.second_equals_first =
                    some (C.samePair a.first_compute_result second) ∧
                  ((C.samePair a.first_compute_result second = true ∧
                      a.forced_deferral = false ∧
                      a.post_comparison_pair = a.first_compute_result) ∨
                   (C.samePair a.first_compute_result second = false ∧
                      a.forced_deferral = true ∧
                      a.post_comparison_pair =
                        C.forceDefer a.first_compute_result ∧
                      a.post_comparison_pair.m = a.first_compute_result.m ∧
                      a.post_comparison_pair.p_biased.val = -1))) ∧
              (a.second_compute_guard = false ->
                a.second_compute_exponent = none ∧
                  a.second_compute_mantissa = none ∧
                  a.second_compute_result = none ∧
                  a.second_equals_first = none ∧
                  a.forced_deferral = false ∧
                  a.post_comparison_pair = a.first_compute_result) ∧
              a.slow_path_guard =
                decide (a.post_comparison_pair.p_biased.val < 0) ∧
              (a.slow_path_guard = true ->
                ∃ replacement,
                  a.slow_path_result = some replacement ∧
                  C.slow (DecimalGoalVocabularyDefault.bytes a.body) = replacement ∧
                  a.selected_pair = replacement) ∧
              (a.slow_path_guard = false ->
                a.slow_path_result = none ∧
                  a.selected_pair = a.post_comparison_pair) ∧
              C.assemble a.selected_pair = a.assembly_result ∧
              DecimalGoalVocabularyDefault.assembledWord
                a.selected_pair a.assembly_result ∧
              a.assembled_word.val = a.assembly_result.val ∧
              a.lexical_sign_applied = a.negative ∧
              C.applySign a.negative a.assembly_result = a.result ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) (some a.result) ∧
              r = core.result.Result.Ok a.result := by
Proof

Natural-language proof

The status above describes the Lean proof. Its explanatory prose may remain a sketch after that proof closes.

Explanatory prose status

Prose proof: SKETCH. The explanatory prose is preserved as it stood when captured.

Proof

SKETCH: Instantiate the shared operations by the extracted helpers. Totality of the extracted numeric and special parsers gives, on every source-valid slice, normal Option-valued results equal to the corresponding contract operations. On a source-valid slice rendered by a valid unsigned numeric lexeme, totality of the extracted slow helper similarly gives a normal raw-pair result equal to the contract slow operation. Prove each contract field from the corresponding helper specification. Unfold the extracted traced dispatcher. Its nested matches and guards give the branch equations in source order. The numeric-parser record bound proves that the checked mantissa increment cannot overflow. The two post-comparison branches give respectively identity or exponent--1 deferral; the following exponent test gives exactly the slow-call branches. The final three extracted calls establish assembly, optional negation, and result projection. This is the positive dispatch_component_compliance obligation; proof or disproof is deferred to argument development.

Lean proof


  sorry

end dec2flt_model

Download Lean source · Download TeX source

Complete Lean module
import Tablet.DecimalGoalVocabularyDefault
import Tablet.DispatchContracts
import Tablet.SourceValidByteSlice
import Tablet.F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64
import Tablet.F64_Insts_CoreOpsArithDivF64F64
import Tablet.F64_Insts_CoreOpsArithMulF64F64
import Tablet.F64_Insts_CoreOpsArithNegF64
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64
import Tablet.num_imp_dec2flt_dec2flt
import Tablet.num_imp_dec2flt_dec2flt_with_trace
import Tablet.num_imp_dec2flt_parse_parse_number
import Tablet.num_imp_dec2flt_parse_parse_inf_nan
import Tablet.num_imp_dec2flt_decimal_Decimal_try_fast_path
import Tablet.num_imp_dec2flt_lemire_compute_float
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa
import Tablet.num_imp_dec2flt_biased_fp_to_float

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DispatchComponentCompliance]
theorem DispatchComponentCompliance :
    ∃ C : DispatchContracts,
      (∀ (s : Slice Std.U8),
        SourceValidByteSlice s ->
        ∃ out,
          num.imp.dec2flt.parse.parse_number s = ok out ∧
            C.parseNumber (DecimalGoalVocabularyDefault.bytes s) = out) ∧
      (∀ (s : Slice Std.U8) negative,
        SourceValidByteSlice s ->
        ∃ out,
          num.imp.dec2flt.parse.parse_inf_nan
            F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative = ok out ∧
          C.parseSpecial (DecimalGoalVocabularyDefault.bytes s) negative = out) ∧
      (∀ d out,
        num.imp.dec2flt.decimal.Decimal.try_fast_path
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 d = ok out -> C.native d = out) ∧
      (∀ q w fp,
        num.imp.dec2flt.lemire.compute_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 q w = ok fp ->
        C.integer q w = fp) ∧
      (∀ (body : Slice Std.U8) x,
        SourceValidByteSlice body ->
        x.leadingSign = none ->
        DecimalGoalVocabularyDefault.validNumeric x ->
        DecimalGoalVocabularyDefault.renderNumeric x =
          DecimalGoalVocabularyDefault.bytes body ->
        ∃ fp,
          num.imp.dec2flt.slow.parse_long_mantissa
            F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 body = ok fp ∧
          C.slow (DecimalGoalVocabularyDefault.bytes body) = fp) ∧
      (∀ fp f,
        num.imp.dec2flt.biased_fp_to_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatExtU64 fp = ok f ->
        C.assemble fp = f) ∧
      (∀ magnitude result,
        F64.Insts.CoreOpsArithNegF64.neg magnitude = ok result ->
        C.applySign true magnitude = result) ∧
      (∀ magnitude, C.applySign false magnitude = magnitude) ∧
      (∀ a b equal,
        num.imp.dec2flt.common.BiasedFp.Insts.CoreCmpPartialEqBiasedFp.eq
          a b = ok equal -> C.samePair a b = equal) ∧
      ∀ (s : Str) r (tr : num.imp.dec2flt.Dec2FltTrace F64),
        DecimalGoalVocabularyDefault.sourceString s ->
        num.imp.dec2flt.dec2flt_with_trace
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 s = ok (r, tr) ->
        num.imp.dec2flt.dec2flt
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64 F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 s = ok r ∧
        match tr with
        | num.imp.dec2flt.Dec2FltTrace.EmptyInput =>
            DecimalGoalVocabularyDefault.bytes s = [] ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) = none ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) none ∧
              ∃ e, r = core.result.Result.Err e
        | num.imp.dec2flt.Dec2FltTrace.SignOnly body negative =>
            body.val = [] ∧
              DecimalGoalVocabularyDefault.bytes s =
                [if negative then 45 else 43] ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) = none ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) none ∧
              ∃ e, r = core.result.Result.Err e
        | num.imp.dec2flt.Dec2FltTrace.Invalid body negative
            parseNumber parseSpecial =>
            ∃ sign,
              body.val ≠ [] ∧
              SourceValidByteSlice body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes body) ∧
              negative = decide (sign = some true) ∧
              parseNumber = none ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes body) = none ∧
              parseSpecial = none ∧
              C.parseSpecial (DecimalGoalVocabularyDefault.bytes body) negative = none ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) none ∧
              ∃ e, r = core.result.Result.Err e
        | num.imp.dec2flt.Dec2FltTrace.Special body negative
            parseNumber parseSpecial result =>
            ∃ sign,
              body.val ≠ [] ∧
              SourceValidByteSlice body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes body) ∧
              negative = decide (sign = some true) ∧
              parseNumber = none ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes body) = none ∧
              parseSpecial = some result ∧
              C.parseSpecial (DecimalGoalVocabularyDefault.bytes body) negative =
                some result ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) (some result) ∧
              r = core.result.Result.Ok result
        | num.imp.dec2flt.Dec2FltTrace.FastPath body negative parseNumber
            fastInput fastResult result =>
            ∃ sign parsed,
              body.val ≠ [] ∧
              SourceValidByteSlice body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes body) ∧
              negative = decide (sign = some true) ∧
              parseNumber = some parsed ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes body) = some parsed ∧
              fastInput = { parsed with negative := negative } ∧
              C.native fastInput = fastResult ∧ fastResult = some result ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) (some result) ∧
              r = core.result.Result.Ok result
        | num.imp.dec2flt.Dec2FltTrace.Assembled a =>
            ∃ sign parsed,
              a.body.val ≠ [] ∧
              SourceValidByteSlice a.body ∧
              C.stripSign (DecimalGoalVocabularyDefault.bytes s) =
                some (sign, DecimalGoalVocabularyDefault.bytes a.body) ∧
              a.negative = decide (sign = some true) ∧
              a.parse_number_result = some parsed ∧
              C.parseNumber (DecimalGoalVocabularyDefault.bytes a.body) = some parsed ∧
              a.fast_path_input = { parsed with negative := a.negative } ∧
              a.fast_path_result = none ∧ C.native a.fast_path_input = none ∧
              a.first_compute_exponent = parsed.exponent ∧
              a.first_compute_mantissa = parsed.mantissa ∧
              C.integer a.first_compute_exponent a.first_compute_mantissa =
                a.first_compute_result ∧
              parsed.mantissa.val < 10 ^ 19 ∧
              parsed.mantissa.val + 1 < 2 ^ 64 ∧
              a.second_compute_guard =
                (parsed.many_digits &&
                  decide (0 <= a.first_compute_result.p_biased.val)) ∧
              (a.second_compute_guard = true ->
                ∃ nextMantissa second,
                  a.second_compute_exponent = some parsed.exponent ∧
                  a.second_compute_mantissa = some nextMantissa ∧
                  C.incrementMantissa parsed.mantissa = some nextMantissa ∧
                  nextMantissa.val = parsed.mantissa.val + 1 ∧
                  a.second_compute_result = some second ∧
                  C.integer parsed.exponent nextMantissa = second ∧
                  a.second_equals_first =
                    some (C.samePair a.first_compute_result second) ∧
                  ((C.samePair a.first_compute_result second = true ∧
                      a.forced_deferral = false ∧
                      a.post_comparison_pair = a.first_compute_result) ∨
                   (C.samePair a.first_compute_result second = false ∧
                      a.forced_deferral = true ∧
                      a.post_comparison_pair =
                        C.forceDefer a.first_compute_result ∧
                      a.post_comparison_pair.m = a.first_compute_result.m ∧
                      a.post_comparison_pair.p_biased.val = -1))) ∧
              (a.second_compute_guard = false ->
                a.second_compute_exponent = none ∧
                  a.second_compute_mantissa = none ∧
                  a.second_compute_result = none ∧
                  a.second_equals_first = none ∧
                  a.forced_deferral = false ∧
                  a.post_comparison_pair = a.first_compute_result) ∧
              a.slow_path_guard =
                decide (a.post_comparison_pair.p_biased.val < 0) ∧
              (a.slow_path_guard = true ->
                ∃ replacement,
                  a.slow_path_result = some replacement ∧
                  C.slow (DecimalGoalVocabularyDefault.bytes a.body) = replacement ∧
                  a.selected_pair = replacement) ∧
              (a.slow_path_guard = false ->
                a.slow_path_result = none ∧
                  a.selected_pair = a.post_comparison_pair) ∧
              C.assemble a.selected_pair = a.assembly_result ∧
              DecimalGoalVocabularyDefault.assembledWord
                a.selected_pair a.assembly_result ∧
              a.assembled_word.val = a.assembly_result.val ∧
              a.lexical_sign_applied = a.negative ∧
              C.applySign a.negative a.assembly_result = a.result ∧
              C.flow (DecimalGoalVocabularyDefault.bytes s) (some a.result) ∧
              r = core.result.Result.Ok a.result := by
-- BODY
  sorry

end dec2flt_model

Proof structure

Follow the declared dependencies to read the supporting statements and proofs.

Explore this dependency tree

Inspect related source (201)
More program dependencies (159)
Standard-library dependencies (39)

Related source and models come from the extraction records and declared dependencies.

Proof assumptions and review

Lean checks the formal proof. Trellis also reviews how the statement corresponds to the intended requirement.

Transitive assumptions

This list combines the assumptions recorded for this declaration and its dependencies. It may include assumptions used by auxiliary declarations in those modules.

Evidence gap: Incomplete inventory: open dependency: DispatchComponentCompliance

Helper theorems included
All 152 entries
Technical checking records
Local closure summary
{
  "node": "DispatchComponentCompliance",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "bcc82c55a58d8e33b7846e7f281aac650f8e2f2d6f6eb9828d7c68bbfedb8261",
  "active_statement_hash": "61a7aebc5a1bf763ce57b5455317373c5eb994b8609a36d3e5eb8646c8cca1b3",
  "kernel_axioms": [
    "propext",
    "sorryAx"
  ],
  "toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
  "lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
  "checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
  "approved_axioms_hash": "d5c04ffa333d9b33b238a527f5beaa2be82e021d3e9c0bbe01b1310280f7f55a",
  "axcheck_status": "Agreed",
  "accepted_at_snapshot_id": "worker-result-local-closure-issuance-cycle-27",
  "boundary_theorems": {},
  "strict_theorem_deps": {},
  "strict_definition_deps": {
    "DecimalGoalVocabulary": "65227461bf3cac06",
    "DecimalGoalVocabularyDefault": "512f8d0aea894250",
    "DecimalLexeme": "c43614ff2149ecf2",
    "DispatchContracts": "3f0f9208f9ef282a",
    "F64": "ec4e25fbaf4e11d4",
    "F64_Insts_CoreOpsArithDivF64F64": "dc44e13a99fc6bed",
    "F64_Insts_CoreOpsArithMulF64F64": "1ae1a9021a654abd",
    "F64_Insts_CoreOpsArithNegF64": "2d9be310c546ea2e",
    "F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64": "30963b4ef656cc79",
    "F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64": "60afe26c6a80cf0f",
    "F64_Insts_Dec2flt_modelNumImpTraitsFloatU64": "94095c9bf79da164",
    "Preamble": "5575719dcb1443eb",
    "SourceValidByteSlice": "3dc42716a6378d26",
    "num_float_parse_ParseFloatError": "c43614ff2149ecf2",
    "num_imp_dec2flt_Dec2FltAssemblyTrace": "2cba6e843ef4429b",
    "num_imp_dec2flt_Dec2FltTrace": "f5d0731ff1ab56ce",
    "num_imp_dec2flt_biased_fp_to_float": "acdde060e8d35ca7",
    "num_imp_dec2flt_common_BiasedFp": "5c88d5d7976c5e8f",
    "num_imp_dec2flt_common_BiasedFp_Insts_CoreCmpPartialEqBiasedFp_eq": "fbbf553e3c502a05",
    "num_imp_dec2flt_dec2flt": "f9f7d93449a25efa",
    "num_imp_dec2flt_dec2flt_with_trace": "ebe6a57c6dce0df6",
    "num_imp_dec2flt_decimal_Decimal": "63fd2f021dd0ef41",
    "num_imp_dec2flt_decimal_Decimal_try_fast_path": "2e4888f65a06b49f",
    "num_imp_dec2flt_lemire_compute_float": "39d89e3f0a8a9d4c",
    "num_imp_dec2flt_parse_parse_inf_nan": "85655c19a8791b54",
    "num_imp_dec2flt_parse_parse_number": "f73f8bc11faa6db3",
    "num_imp_dec2flt_slow_parse_long_mantissa": "cd8af64c3688b60f"
  }
}
Prose assessment
{
  "label": "Prose review has no verdict in this snapshot",
  "assessment_status": null,
  "fingerprint_relation": "unknown",
  "assessment_fingerprint": null,
  "current_fingerprint": "sound-v2:6d7d776d528e8523b1852a9252df4f7b18491c4a13a851cd7e360ac3081445bc",
  "superseded_for_theorem_closure": false
}
Review verdicts
{
  "corr_status": "Pass",
  "substantiveness_status": "FalseAsStated"
}