DispatchComponentCompliance

Open

Statement

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

Theorem · Dispatch Component Compliance

The actual extracted lexical, special, native, integer, slow, assembly, and traced-dispatch operations jointly inhabit the contract used in abstract composition. In particular, the lexical operation preserves the input's exact binary64 rounding target, dispatch returns normally, and every helper call, guard, comparison, fallback, selected pair, assembly result, and lexical-sign observation satisfies the corresponding operational branch law.

Lean statement

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

import Tablet.Preamble
import Tablet.DispatchComponentContract
import Tablet.F64_Insts_CoreOpsArithDivF64F64
import Tablet.F64_Insts_CoreOpsArithMulF64F64
import Tablet.F64_Insts_CoreOpsArithNegF64
import Tablet.F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatU64
import Tablet.num_imp_dec2flt_biased_fp_to_float
import Tablet.num_imp_dec2flt_dec2flt_with_trace
import Tablet.num_imp_dec2flt_decimal_Decimal_try_fast_path
import Tablet.num_imp_dec2flt_lemire_compute_float
import Tablet.num_imp_dec2flt_parse_parse_inf_nan
import Tablet.num_imp_dec2flt_parse_parse_number
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DispatchComponentCompliance]
theorem DispatchComponentCompliance :
    ∃ c : DispatchComponentContract,
      c.parseNumber = num.imp.dec2flt.parse.parse_number ∧
      c.parseSpecial = (fun s negative =>
        num.imp.dec2flt.parse.parse_inf_nan
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative) ∧
      c.native = (fun d =>
        num.imp.dec2flt.decimal.Decimal.try_fast_path
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64
          F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 d) ∧
      c.integer = (fun q w =>
        num.imp.dec2flt.lemire.compute_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 q w) ∧
      c.slow = (fun s =>
        num.imp.dec2flt.slow.parse_long_mantissa
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s) ∧
      c.assemble = (fun fp =>
        num.imp.dec2flt.biased_fp_to_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatExtU64 fp) ∧
      c.dispatch = (fun s =>
        num.imp.dec2flt.dec2flt_with_trace
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64
          F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 s) := 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: This is the principal theorem for supplied goal dispatch_component_compliance. Its Lean proof is intentionally left open during Modeling; argument development will instantiate DispatchComponentContract with the operations named in the Lean statement and prove its laws from the extracted definitions and helper theorems.

Lean proof


  sorry

end dec2flt_model

Download Lean source · Download TeX source

Complete Lean module
import Tablet.Preamble
import Tablet.DispatchComponentContract
import Tablet.F64_Insts_CoreOpsArithDivF64F64
import Tablet.F64_Insts_CoreOpsArithMulF64F64
import Tablet.F64_Insts_CoreOpsArithNegF64
import Tablet.F64_Insts_Dec2flt_modelNumImpDec2fltLemireU64
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatExtU64
import Tablet.F64_Insts_Dec2flt_modelNumImpTraitsFloatU64
import Tablet.num_imp_dec2flt_biased_fp_to_float
import Tablet.num_imp_dec2flt_dec2flt_with_trace
import Tablet.num_imp_dec2flt_decimal_Decimal_try_fast_path
import Tablet.num_imp_dec2flt_lemire_compute_float
import Tablet.num_imp_dec2flt_parse_parse_inf_nan
import Tablet.num_imp_dec2flt_parse_parse_number
import Tablet.num_imp_dec2flt_slow_parse_long_mantissa

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: DispatchComponentCompliance]
theorem DispatchComponentCompliance :
    ∃ c : DispatchComponentContract,
      c.parseNumber = num.imp.dec2flt.parse.parse_number ∧
      c.parseSpecial = (fun s negative =>
        num.imp.dec2flt.parse.parse_inf_nan
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s negative) ∧
      c.native = (fun d =>
        num.imp.dec2flt.decimal.Decimal.try_fast_path
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64
          F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 d) ∧
      c.integer = (fun q w =>
        num.imp.dec2flt.lemire.compute_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 q w) ∧
      c.slow = (fun s =>
        num.imp.dec2flt.slow.parse_long_mantissa
          F64.Insts.Dec2flt_modelNumImpTraitsFloatU64 s) ∧
      c.assemble = (fun fp =>
        num.imp.dec2flt.biased_fp_to_float
          F64.Insts.Dec2flt_modelNumImpTraitsFloatExtU64 fp) ∧
      c.dispatch = (fun s =>
        num.imp.dec2flt.dec2flt_with_trace
          F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64
          F64.Insts.CoreOpsArithDivF64F64
          F64.Insts.CoreOpsArithMulF64F64
          F64.Insts.CoreOpsArithNegF64 s) := 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 (181)
More program dependencies (157)
Standard-library dependencies (21)

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 128 entries
Technical checking records
Local closure summary
{
  "node": "DispatchComponentCompliance",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "236f8f579894e83582d02db3c48a987535b2bae23d022254f28645950fbda7d0",
  "active_statement_hash": "4a18fcfaad11ed8942aadfdbd4a707257e10b72a1b9146a8cf871ae06c26f4a2",
  "kernel_axioms": [
    "propext",
    "sorryAx"
  ],
  "toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
  "lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
  "checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
  "approved_axioms_hash": "b3d2e5a7a57ad9d2abdfb1c60bd76050a5cafa6a2be969c219d3ae71b2a8ade5",
  "axcheck_status": "Agreed",
  "accepted_at_snapshot_id": "worker-result-local-closure-issuance-cycle-4",
  "boundary_theorems": {},
  "strict_theorem_deps": {},
  "strict_definition_deps": {
    "DispatchComponentContract": "b532a1c174b7bbd6",
    "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": "81cd77dffa3d0e1e",
    "num_float_parse_ParseFloatError": "c43614ff2149ecf2",
    "num_imp_dec2flt_Dec2FltTrace": "644abe66cec8ac98",
    "num_imp_dec2flt_biased_fp_to_float": "acdde060e8d35ca7",
    "num_imp_dec2flt_common_BiasedFp": "c43614ff2149ecf2",
    "num_imp_dec2flt_dec2flt_with_trace": "ebe6a57c6dce0df6",
    "num_imp_dec2flt_decimal_Decimal": "c43614ff2149ecf2",
    "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:c90a151b1f0f388d1a05b103943aac54374ee6b4f68c5d137825f71868d3b88e",
  "superseded_for_theorem_closure": false
}
Review verdicts
{
  "corr_status": "Fail",
  "substantiveness_status": "FalseAsStated"
}