DispatchComponentCompliance__Refutation

Lean checked

Statement

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

Theorem

The following result is false: There is one instance of the shared contracts in DispatchContracts such that, on every nonempty source-valid Rust byte slice, the extracted numeric parser returns normally and its result equals the contract's numeric-parser result. On every source-valid Rust byte slice, including the empty slice, 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 nonempty 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. Thus every traced numeric call receives the already-established nonempty source-valid body, while special-parser agreement itself remains quantified over all source-valid slices. 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 nonempty source-valid-slice preconditions on numeric parsing, the all-slices source-valid precondition on special parsing, the valid-rendering preconditions on 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.DispatchContractsUninhabited
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__Refutation]
theorem DispatchComponentCompliance__Refutation : ¬ (∃ C : DispatchContracts,
      (∀ (s : Slice Std.U8),
        SourceValidByteSlice s ->
        s.val ≠ [] ->
        ∃ 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 retained as authored. The explanatory prose is preserved as it stood when captured.

Earlier prose review

An earlier review questioned the prose argument. Lean subsequently checked the formal proof. Review of the statement’s intended meaning is a separate judgment.

Proof

Suppose, for contradiction, that the complete positive compliance claim in the theorem statement holds. Its outermost quantifier supplies a witness C:\texttt{DispatchContracts}; all the component-agreement and traced-flow clauses following that witness are additional conjuncts and are not needed for this contradiction. The witness C gives an inhabitant of \operatorname{Nonempty}(\texttt{DispatchContracts}). However, DispatchContractsUninhabited states that no dispatcher contract package exists, equivalently that \operatorname{Nonempty}(\texttt{DispatchContracts}) is false. Applying that result to the inhabitant represented by C yields a contradiction. Hence the assumed existential compliance claim is false, which is exactly the asserted refutation.

Lean proof


  rintro ⟨C, _⟩
  exact DispatchContractsUninhabited (Nonempty.intro C)

Download Lean source · Download TeX source

Complete Lean module
import Tablet.DecimalGoalVocabularyDefault
import Tablet.DispatchContracts
import Tablet.DispatchContractsUninhabited
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__Refutation]
theorem DispatchComponentCompliance__Refutation : ¬ (∃ C : DispatchContracts,
      (∀ (s : Slice Std.U8),
        SourceValidByteSlice s ->
        s.val ≠ [] ->
        ∃ 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
  rintro ⟨C, _⟩
  exact DispatchContractsUninhabited (Nonempty.intro C)

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.

Helper theorems included
All 153 entries
Technical checking records
Local closure summary
{
  "node": "DispatchComponentCompliance__Refutation",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "cc7e7c454f7f55bc5b0ed774f58ff4675ffc224e7f50464f0ede1cfea9de2919",
  "active_statement_hash": "cdb4db22630f769fea2e62fe1661540ccf3d04ae2d077cf4728063c8d477e42b",
  "kernel_axioms": [
    "propext"
  ],
  "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-23",
  "boundary_theorems": {},
  "strict_theorem_deps": {
    "DispatchContractsUninhabited": "d0cddc91b375723e"
  },
  "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": "Sound flag superseded by recorded Lean closure",
  "assessment_status": "ReviewerPinnedFail",
  "fingerprint_relation": "differs from current fingerprint",
  "assessment_fingerprint": "sound-v2:8d6cb2d9e2445e45c059aff387f710d675ecb3a47fd3d8ad1ef946f6cd091e9a",
  "current_fingerprint": "sound-v2:59d9dec47146ec37af8e91f627c11bf5e2619a1b877aee782ce41600c1183ed1",
  "superseded_for_theorem_closure": true
}
Review verdicts
{
  "corr_status": "Pass",
  "sound_status": "Fail",
  "substantiveness_status": "Pass"
}