DispatchContracts

Lean checked

Definition and explanation

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

Definition

For a total abstract operation record C of AbstractComponents, the compatible laws K(C) are DispatchContracts\,(C). Operations are data; these laws are a separate proposition. Put A=3458764513820540928 and B=576460752303421440 bytes. Every slice domain below is source-valid as in SourceValidByteSlice, without a UTF-8 premise. Grammar, byte rendering, all-digit magnitudes, rounding, signs and raw-word assembly are exactly DecimalGoalVocabularyDefault.
On nonempty slices of length at most A, every valid unsigned numeric lexeme rendering the entire slice has a returned numeric record, and failure of that whole-input unsigned grammar returns None. On every nonempty source-valid slice, without a length bound, any returned record has negative false and mantissa below 10^{19}. On unsigned numeric slices through A, a returned record without many digits denotes exactly the full-significand accumulated-exponent magnitude. With many digits, that magnitude lies in the half-open interval from mantissa times 10^{\mathrm{exponent}} to mathematical mantissa plus one times the same power. On unsigned numeric slices through B, the accumulated and ordinary mathematical exact magnitudes have precisely the same binary64 magnitude rounding targets. No exact-target law is imposed above B, and no bound on explicit exponent digit count or mathematical value is added.
On every source-valid slice and either separate sign, an unsigned infinity keyword returns Some of infinity with that sign, an unsigned NaN keyword returns Some of a NaN, and any other unsigned keyword input returns None. For every Decimal, native Some implies many_digits false and a magnitude rounding the exact record value, with the record's sign applied. For every I64/U64 input, the integer pair either has negative biased exponent, denoting deferral, or its assembled word is the clear-sign binary64 rounding of that input's exact w10^q. On every source-valid unsigned numeric slice, without an A or B bound, the slow pair assembles to the clear-sign rounding of its full-significand accumulated-exponent magnitude. Assembly agrees with the cast/shift/OR word on every unrestricted pair. Negation toggles precisely bit 63 on every binary64 word, including both zeros, infinities and every NaN payload.
The native, integer and slow value laws describe normal values when used for actual components; they do not require those concrete calls to terminate on their unrestricted domains. Normal refinement and A-bounded concrete realization are separate in NormalComponentRefinement and the compliance theorem. Checked increment, comparison, forced deferral, sign stripping and branch order are fixed by DispatchFrame, not freely chosen package relations. There is no universal upper bound on raw pair exponents and no unguarded many-digit endpoint conclusion among these laws.

Lean definition

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

import Tablet.P9_T1_AbstractComponents
import Tablet.DecimalGoalVocabularyDefault
import Tablet.SourceValidByteSlice
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: DispatchContracts]
structure DispatchContracts (C : P9_T1_AbstractComponents) : Prop where
-- BODY
  number_accept : forall (body : Slice Std.U8) (x : DecimalLexeme),
    SourceValidByteSlice body -> body.val ≠ [] ->
    body.val.length <= 3458764513820540928 ->
    x.leadingSign = none -> DecimalGoalVocabularyDefault.validNumeric x ->
    DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes body ->
    exists d, C.parseNumber body = some d
  number_reject : forall body : Slice Std.U8,
    SourceValidByteSlice body -> body.val ≠ [] ->
    body.val.length <= 3458764513820540928 ->
    (¬ exists x : DecimalLexeme, x.leadingSign = none /\
      DecimalGoalVocabularyDefault.validNumeric x /\
      DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes body) ->
    C.parseNumber body = none
  record_bounds : forall (body : Slice Std.U8) d,
    SourceValidByteSlice body -> body.val ≠ [] ->
    C.parseNumber body = some d -> d.negative = false /\ d.mantissa.val < 10 ^ 19
  record_accumulated : forall (body : Slice Std.U8) (x : DecimalLexeme) d,
    SourceValidByteSlice body -> body.val.length <= 3458764513820540928 ->
    x.leadingSign = none -> DecimalGoalVocabularyDefault.validNumeric x ->
    DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes body ->
    C.parseNumber body = some d ->
    if d.many_digits then
      DecimalGoalVocabularyDefault.decimalMagnitude d <= DecimalGoalVocabularyDefault.accumulatedMagnitude x /\
      DecimalGoalVocabularyDefault.accumulatedMagnitude x <
        (((d.mantissa.val + 1 : Nat) : Real) * (10 : Real) ^ d.exponent.val)
    else DecimalGoalVocabularyDefault.decimalMagnitude d = DecimalGoalVocabularyDefault.accumulatedMagnitude x
  exact_transport : forall (body : Slice Std.U8) (x : DecimalLexeme),
    SourceValidByteSlice body -> body.val.length <= 576460752303421440 ->
    x.leadingSign = none -> DecimalGoalVocabularyDefault.validNumeric x ->
    DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes body ->
    forall target : F64,
      DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.accumulatedMagnitude x) target ↔
      DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.exactMagnitude x) target
  special_infinity : forall (body : Slice Std.U8) negative,
    SourceValidByteSlice body ->
    DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes body) none false ->
    exists f, C.parseSpecial body negative = some f /\ DecimalGoalVocabularyDefault.isInfinity negative f
  special_nan : forall (body : Slice Std.U8) negative,
    SourceValidByteSlice body ->
    DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes body) none true ->
    exists f, C.parseSpecial body negative = some f /\ DecimalGoalVocabularyDefault.isNan f
  special_reject : forall (body : Slice Std.U8) negative,
    SourceValidByteSlice body ->
    (¬ exists nan, DecimalGoalVocabularyDefault.specialLiteral (DecimalGoalVocabularyDefault.bytes body) none nan) ->
    C.parseSpecial body negative = none
  native_normal : forall d f, C.native d = some f ->
    d.many_digits = false /\ exists magnitude : F64,
      DecimalGoalVocabularyDefault.roundsMagnitude (DecimalGoalVocabularyDefault.decimalMagnitude d) magnitude /\
      DecimalGoalVocabularyDefault.signedMagnitude d.negative magnitude f
  integer_normal : forall (q : Std.I64) (w : Std.U64),
    let fp := C.integer q w
    fp.p_biased.val < 0 ∨
      (DecimalGoalVocabularyDefault.roundsMagnitude
        ((w.val : Real) * (10 : Real) ^ q.val) (C.assemble fp) /\
        (C.assemble fp).val < 2 ^ 63)
  slow_normal : forall (body : Slice Std.U8) (x : DecimalLexeme),
    SourceValidByteSlice body -> x.leadingSign = none ->
    DecimalGoalVocabularyDefault.validNumeric x ->
    DecimalGoalVocabularyDefault.renderNumeric x = DecimalGoalVocabularyDefault.bytes body ->
    DecimalGoalVocabularyDefault.roundsMagnitude
      (DecimalGoalVocabularyDefault.accumulatedMagnitude x) (C.assemble (C.slow body)) /\
      (C.assemble (C.slow body)).val < 2 ^ 63
  assembly_all : forall fp, DecimalGoalVocabularyDefault.assembledWord fp (C.assemble fp)
  negate_all : forall f : F64,
    (C.negate f).val = if f.val < 2 ^ 63 then f.val + 2 ^ 63 else f.val - 2 ^ 63
end dec2flt_model
Preservation and explanation

Natural-language argument

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.

Preservation argument

Claim

The compatible laws retain exactly the reference's component input domains, successful-record and on-normal qualifications, and required normal-return conclusions when interpreted at actual calls. The constants are A=3458764513820540928 and B=576460752303421440. These laws constrain total abstract values; their definition establishes neither compatible-package inhabitability nor actual satisfaction, reached-call realization or dispatcher liveness.

Proof

Compare the fields with GOAL.md and the unchanged domain and observation definitions SourceValidByteSlice and DecimalGoalVocabularyDefault. Numeric acceptance and rejection are on nonempty source-valid arbitrary-byte slices through A, with whole-input unsigned grammar and no UTF-8 restriction. Their abstract conclusions are Some and None, respectively. In the actual-source obligations these must be normally returned options: establishing the bounded numeric equation of NormalComponentRefinement is a theorem obligation, not a normal-return assumption in preservation. Returned-record bounds retain their genuine Some premise and unrestricted nonempty source domain. Accumulated representation retains its returned-record premise through A, full significand, equality when many_digits is false and the half-open interval when it is true, with a mathematical upper successor.
Exact transport compares the unchanged accumulated and mathematical rounding targets only on unsigned numeric slices through B. A public complete Rust string through B has a sign-stripped body no longer than itself; removal of the leading sign changes neither magnitude nor the independent exponent sign. This identifies the domains without proving that exact transport holds for actual inputs.
The special laws keep every source-valid byte slice and either independent sign, with normal Some infinity/NaN or normal None as required conclusions at actual calls. Their normal equations are the separate special_all refinement condition. Native's None/Some alternatives, record sign and many_digits restriction describe normal actual values on every Decimal, including the disguised path. Integer correctness keeps every I64/U64 input and its on-normal negative-biased-exponent deferral alternative, otherwise requiring the clear-sign exact scalar target. There is no universal upper bound on raw pair exponents. Slow correctness keeps every source-valid unsigned numeric slice, with no A/B bound, full significand and bounded accumulated explicit exponent; it is on normal actual return, not unrestricted liveness.
The assembly word law applies to every unrestricted BiasedFp. Actual normal assembly is also required: it is the distinct assembly_all refinement equation, not a premise of the direct assembly goal. The negation value law toggles bit 63 on every word; negate_all separately requires the actual normal equation. Defining these conditions proves none of them for actual components.
The unchanged frame fixes checked increment, guards, exact pair comparison, forced deferral, fallback, selected-pair assembly and lexical signing. No combined endpoint dispatcher conclusion is hidden in a component law. ActualDispatchFrameEquality preserves actual frame and public projection observations independently of every compatible law and of concrete success. Abstract-package inhabitability, abstract normal output through A, actual normal refinement and normal realization at every A-bounded reached call therefore remain principal theorem conclusions. Current source/extraction evidence and the reference identity are in reference/model-evidence/dispatch-contracts.txt.

Requirement: parser nan acceptance

Every complete source-valid Rust string spelling a NaN literal must yield outer normal return containing Rust Ok of a NaN; success is a conclusion, not a premise, and no A/B restriction is added. The actual-frame equality and public projection preserve this return-existence assertion and the NaN word predicate on the same bytes. Abstract values and reached events do not discharge that assertion.

Requirement: parser infinity

Every complete source-valid Rust infinity literal must return normally with Rust Ok of infinity bearing its leading lexical sign, without an A/B bound or a prior-success premise. The actual-frame equality preserves the whole input, sign stripping, separate special sign and returned word, so the required existence and signed-infinity predicate are unchanged. Neither abstract totality nor a reached special event proves this return.

Requirement: parser non nan results

Here normal Rust Ok really is a hypothesis. On the same complete source-valid Rust input, exclusion of all signed NaN spellings and the returned word's non-NaN predicate are unchanged. Actual-frame equality transports that successful result without imposing an A/B bound or requiring a selected pair on native or special direct returns.

Requirement: parser numeric sign

This is conditional on a normally successful numeric parse on any complete source-valid Rust string, with no A/B bound. The preserved leading sign, sign-overwritten native input, pre-sign assembly word and final word express exactly the original lexical-sign conclusion, including zero and infinity. An exponent's sign is not the leading sign. Observation preservation does not assume or prove that conclusion.

Requirement: parser signed zero

Normal acceptance remains the hypothesis for a numeric literal of exact value zero on any source-valid Rust string, without an A/B bound. Whole-input numeric content, zero magnitude and the leading lexical sign are unchanged. Actual-frame equality preserves the complete returned word, hence distinguishes positive and negative zero instead of identifying their magnitudes or adding an acceptance obligation.

Requirement: parser selected exponent

Normal numeric success remains the hypothesis, without an A/B bound. Actual-frame equality preserves each genuinely selected raw pair and its biased-exponent field. The conclusion is still that these fields lie in 0,\ldots,2047, not an assumed bound on every component pair. Native direct returns supply no artificial pair; checked increment, comparison and slow replacement retain exactly which pair is selected. No compatible law assumes a universal upper bound on raw exponents; the selected-pair range remains the public goal's conclusion.

Requirement: parser selected magnitude sign

For a normally successful numeric parse, without an A/B bound, the observation is the cast/shift/OR word of the actual selected pair before lexical signing. The same trace and word are retained by actual-frame equality, so the clear-sign-bit conclusion remains unchanged. It is not a hypothesis on all BiasedFp inputs, nor a claim that the final negatively signed public word has a clear sign bit. Unrestricted assembly interprets every pair, but does not impose clear-sign bits as a hypothesis on its input.

Requirement: number helper record bounds

The domain is every nonempty source-valid byte slice with arbitrary contents, no UTF-8, unsigned-grammar or A/B restriction. An actual normal Some record is the legitimate premise; its unchanged fields must have negative false and mantissa below 10^{19}. The direct call and complete record are retained, so the representation does not turn this conditional field law into universal helper termination or restrict it to dispatcher-reached inputs. Here record_bounds names the conditional value law; it requires no proof of acceptance and has no A limit.

Requirement: special helper infinity

For every source-valid byte slice spelling an unsigned infinity keyword and either independent sign argument, the actual helper must return normally with Some infinity of that sign. Both normal return and Some are conclusions. The unchanged slice, case-insensitive keyword and Boolean argument retain this requirement without UTF-8, reachability or A/B restrictions; no current-call success is assumed. The special_infinity value law and the separately required special_all normal equation retain both parts of the actual goal; neither is established merely by defining them.

Requirement: special helper nan

For every source-valid byte slice spelling an unsigned NaN keyword and either independent sign argument, the actual helper must return normally with Some of a NaN. No normal-return or Some premise is introduced. The unchanged byte list, keyword predicate, separate sign and NaN word observation preserve this requirement on its full domain, independently of dispatcher reachability and without UTF-8 or A/B restrictions. The special_nan value law and the separately required special_all normal equation retain the normal Some conclusion, rather than weakening it to a law of successful outputs.

Requirement: special helper rejection

On every source-valid arbitrary-byte slice not spelling an unsigned inf, infinity or nan keyword, and for either independent sign argument, the actual helper must return normally with None. This includes empty and otherwise invalid slices, with no UTF-8 or A/B restriction. The retained ok none conclusion is not outer failure or divergence; the direct obligation is not conditioned on a reached or successful call. The special_reject value law and the separately required special_all normal equation retain normal None, not a conditional law about whatever result happened to return.

Requirement: native correct or defer

The input remains every Decimal, including both ordinary and disguised native paths. An actual outer normal return is the original hypothesis: None defers, while Some must round exact mantissa times 10^{\mathrm{exponent}} with the record's sign and implies many_digits false. The same optional value and fields are retained, without a length, record-bounds or reachability premise and without asserting unrestricted native termination. The native_normal value law does not make the actual normal hypothesis true; it constrains a value only when that return is given.

Requirement: integer correct or defer

The domain remains every I64 exponent and U64 mantissa. Conditional on the actual call's normal pair, negative biased exponent is deferral; otherwise its unrestricted assembled word must be the clear-sign binary64 rounding of exact w10^q. No biased-exponent upper bound, dispatcher reachability or termination premise is added. Retaining both operands and all pair fields preserves exactly this on-normal alternative. The integer_normal value law imposes neither unrestricted concrete termination nor a well-formedness bound on every raw pair.

Requirement: slow accumulated rounding

For every source-valid unsigned numeric slice, without an A or B limit, an actual normal slow pair must assemble to the nonnegative binary64 rounding of the full-significand accumulated-exponent value. The unchanged body retains every significand and exponent digit and the independent exponent sign. No dispatcher-reachability, truncated-record or exact-value premise replaces this domain, and unrestricted actual termination is not asserted. The slow_normal value law uses this full source-valid domain; the B exact-transport clause does not narrow or change it.

Requirement: assembly correspondence

For every unrestricted BiasedFp, actual assembly must return normally with bits equal to mantissa OR the Rust I32-to-U64 cast of biased exponent shifted left by 52, using bounded 64-bit word operations. Normal return is a conclusion, not a premise. Retaining both complete fields and the same assembly call preserves this assertion without well-formedness, exponent-range, clear-sign, selection or reachability assumptions. The assembly_all word law and the separate refinement equation retain the required actual normal return; a total abstract assembly function alone is not its proof.

Requirement: classification totality

Every finite byte string retains the same whole-input numeric, special and invalid classification relation. This mathematical relation executes no dispatcher component; the present definition adds neither Rust source-validity, UTF-8, an A/B bound nor a compatible-package premise. Thus the existence of a classification remains the original unrestricted mathematical conclusion.

Requirement: classification determinism

The unchanged whole-input grammar still determines the classification and complete numeric lexeme whose uniqueness is asserted for every finite byte string. No dispatcher result or event identifies different digit lists, signs, decimal-point positions or exponent contents. This definition supplies no computation or hypothesis to that mathematical uniqueness claim and adds no Rust-domain or A/B restriction.

Requirement: classification significand digit

Validity still requires at least one digit in the combined integer and fractional significand, irrespective of the separately recorded exponent digits. The mathematical claim refers to that unchanged grammar, not to successful parsing, a reached numeric event or an abstract component law. Its unrestricted numeric-literal domain therefore gains no source, UTF-8 or A/B condition.

Requirement: rounding totality

The target relation remains nearest-even binary64 magnitude rounding for every nonnegative real, including subnormals, zero and overflow to infinity. It has no source execution or input-length domain. This dispatcher definition cannot supply a target by abstract function totality or add a compatible-package assumption; the original mathematical target-existence claim and relation are unchanged.

Requirement: rounding determinism

Both candidate targets are still measured by the same unchanged nearest-even magnitude relation on each nonnegative real. Neither dispatcher selection nor a chosen abstract conversion function defines this relation or fixes its answer. Consequently the mathematical uniqueness claim keeps its unrestricted real domain and acquires no component, successful-return or length premise.

Requirement: exponent value agreement

For every valid numeric lexeme, equality of the accumulated and mathematical explicit exponents remains the hypothesis. All significand digits, fractional length and the exponent sign are retained in the two value interpretations, with the same rounding relation. This mathematical bridge uses no source call or dispatcher success and has no A/B restriction; neither value is replaced by a truncated record.

Requirement: dispatch abstract composition

The compatible-package existence claim remains separate from the conditional claims for every package satisfying the laws. On every complete source-valid Rust string through A=3458764513820540928, a normal abstract output must be established, and its classification, accumulated rounding and lexical sign must satisfy the reference; a Rust Err counts as normal, outer failure/divergence do not. Numeric complete strings through B=576460752303421440 additionally require the exact target.
The component laws keep nonempty arbitrary-byte numeric lexical slices through A, returned-record bounds on the unrestricted nonempty source domain, representation through A, and exact transport through B. Special, native, integer and unrestricted assembly retain their full domains, as does the source-valid unsigned numeric slow diagnostic with no A/B bound. The fixed frame retains native shortcut, integer operands, guarded checked increment, exact comparison, forced deferral, fallback, selected pair and signing. Total functions and their ok embedding alone prove neither compatible-package existence nor normal whole-frame output.

Requirement: dispatch component compliance

The actual-source obligation still requires an inhabited compatible package, its value laws, normal refinement and realization at every reached call on every complete source-valid Rust string through A=3458764513820540928. A reached event uses successful prior calls, not current-call or whole-dispatch success. Thus current-call normal agreement, helper preconditions, successful checked increment and exact comparison are conclusions still to be proved.
Numeric lexical acceptance/rejection and representation keep nonempty source-valid slices through A; returned-record bounds retain their unrestricted domain. Exact-target transport remains through B=576460752303421440, also measured on complete public strings. Special and unrestricted assembly require normal returns on their full domains; native/integer correctness remains on normal return, and slow correctness remains on normal return for every source-valid unsigned numeric slice without an A/B bound. Original operands, guards, forced deferral, fallback body, selected pair and sign observations are unchanged by actual-frame equality, independently of these correctness and liveness conclusions.

Requirement: number helper acceptance

Every nonempty source-valid arbitrary-byte slice through A=3458764513820540928 matching the whole unsigned numeric grammar must yield an actual normal Some record, including checked-arithmetic executions. Normal return and Some are conclusions. The slice has no leading sign, but its exponent may have either sign and any digit count or mathematical value within A. No UTF-8, reachability or prior-success condition is introduced. The number_accept value law together with the required bounded normal equation represents this actual conclusion, not a hypothesis that parsing has already succeeded.

Requirement: number helper rejection

Every nonempty source-valid arbitrary-byte slice through A=3458764513820540928 outside the whole unsigned numeric grammar must yield actual normal None, including checked-arithmetic executions. The same full slice is tested, including malformed exponent digits and characters after exponent accumulation stops. No UTF-8 or successful-call premise is added; ok none, outer checked failure and divergence remain distinct outcomes. The number_reject value law together with the required bounded normal equation represents normal None, not outer failure or an assumed return.

Requirement: parser exact rounding

Normal numeric acceptance remains the hypothesis, with B=576460752303421440 bounding the complete source-valid Rust string, including its optional leading sign. The target uses every significand digit and the ordinary mathematical explicit exponent, not its bounded accumulation. Actual-frame equality preserves the returned word and lexical sign, including subnormal results, signed zero and signed infinity, without adding an exponent-digit or value restriction. The exact_transport condition is B-bounded; it neither asserts exact rounding on all longer inputs nor proves actual transport.

Requirement: parser invalid rejection

Every complete source-valid Rust string through A=3458764513820540928 outside both whole-input grammars must yield outer normal return containing Rust Err, without panic, including checked executions. This is not conditional on dispatcher success. The same bytes include empty/sign-only cases and suffixes after exponent saturation. Actual-frame equality preserves the required return equation, not a replacement by outer failure, helper None or divergence.

Requirement: parser numeric acceptance

Every complete source-valid Rust numeric string through A=3458764513820540928, including its optional leading sign, must yield outer normal return containing Rust Ok without panic in checked executions. No current-call or whole-dispatch success is a premise. The unchanged whole-input grammar permits all exponent digit counts and mathematical values within A; observation equality retains the acceptance assertion without deriving it from abstract component totality.

Requirement: parser totality

For every complete source-valid Rust string through A=3458764513820540928, normal termination with a Rust Ok float or Rust Err is the conclusion, including empty, sign-only, numeric, special and invalid inputs and checked executions. There is no normal-return premise. Actual-frame equality and projection preserve this output-existence requirement as well as failures/divergence; neither of the latter, nor normal helper None by itself, counts as the required public result.

Requirement: parser accumulated rounding

Normal numeric acceptance remains the hypothesis, with A=3458764513820540928 bounding the complete source-valid Rust string. The unchanged diagnostic retains every significand digit and the bounded explicit-exponent fold, including its independent sign. Actual-frame equality preserves the word and leading lexical sign required for the accumulated target, including zero and infinity; it neither substitutes the exact value nor supplies an acceptance premise elsewhere. The record_accumulated and unrestricted slow value laws retain this diagnostic value rather than the ordinary exact value.

Requirement: parser equal target rounding

On a normally accepted numeric complete source-valid Rust string through A=3458764513820540928, equality of the ordinary exact and accumulated binary64 targets remains a separate hypothesis. Both full-significand values and the returned word are unchanged, so the common-target and leading-lexical-sign conclusions retain their meanings, including zero and infinity. No B bound or extra exponent restriction is imposed.

Requirement: number helper accumulated value

On every source-valid unsigned numeric slice through A=3458764513820540928, a returned normal Some record is the legitimate premise. With many_digits false it must exactly represent the full-significand accumulated value; otherwise that value must lie in [\mathit{mantissa}10^q,(\mathit{mantissa}+1)10^q). The upper endpoint uses mathematical addition, not an assumed successful machine increment. The complete slice and record fields are retained, with no UTF-8 or dispatcher-reachability premise. The record_accumulated field retains exactly this returned-record qualification and these two representation alternatives.

Download Lean source · Download TeX source

Proof structure

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

Explore this dependency tree

Inspect related source (44)
More program dependencies (11)
Standard-library dependencies (30)

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 9 entries
Technical checking records
Local closure summary
{
  "node": "DispatchContracts",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "ce5841ff10cd1b05c88e4532a5d929cf655fd36982904c32a37190d4b3c1d80e",
  "active_statement_hash": "3b07b5f309244668bcc424496b1754efa574e68530a5fa18706164f5f9cd25c8",
  "kernel_axioms": [
    "Classical.choice",
    "Quot.sound",
    "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-68",
  "boundary_theorems": {},
  "strict_theorem_deps": {},
  "strict_definition_deps": {
    "DecimalGoalVocabulary": "c08dd4b4aea4abb4",
    "DecimalGoalVocabularyDefault": "71a18a6c119a3cdc",
    "DecimalLexeme": "8ad754cf2c272e73",
    "F64": "ec4e25fbaf4e11d4",
    "P9_T1_AbstractComponents": "f08115fd2bb7e39d",
    "SourceValidByteSlice": "3dc42716a6378d26",
    "num_imp_dec2flt_common_BiasedFp": "c43614ff2149ecf2",
    "num_imp_dec2flt_decimal_Decimal": "b702e549017701b8"
  }
}
Prose assessment
{
  "label": "Recorded Sound: VerifierPass",
  "assessment_status": "VerifierPass",
  "fingerprint_relation": "matches current fingerprint",
  "assessment_fingerprint": "preservation-v1:effa21c2e8b07f381656a35702d30524a2fa1ba8c32e0f79dddc103dd13f1d5c",
  "current_fingerprint": "preservation-v1:effa21c2e8b07f381656a35702d30524a2fa1ba8c32e0f79dddc103dd13f1d5c",
  "superseded_for_theorem_closure": false
}
Review verdicts
{
  "corr_status": "Pass",
  "sound_status": "Pass",
  "substantiveness_status": "Pass"
}