Definition and explanation
This explanation was written alongside the formalization to describe the statement and its reasoning.
Definition
Lean definition
Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.
import Tablet.F64
import Tablet.num_imp_dec2flt_decimal_Decimal
import Tablet.num_imp_dec2flt_common_BiasedFp
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: P9_T1_DispatchOperations]
structure P9_T1_DispatchOperations where
-- BODY
parseNumber : Slice Std.U8 -> Result (Option num.imp.dec2flt.decimal.Decimal)
parseSpecial : Slice Std.U8 -> Bool -> Result (Option F64)
native : num.imp.dec2flt.decimal.Decimal -> Result (Option F64)
integer : Std.I64 -> Std.U64 -> Result num.imp.dec2flt.common.BiasedFp
slow : Slice Std.U8 -> Result num.imp.dec2flt.common.BiasedFp
assemble : num.imp.dec2flt.common.BiasedFp -> Result F64
negate : F64 -> Result F64
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
Proof
ok none is a normal helper refusal, not fail or
div. Merely collecting functions of these types evaluates no call
and equates none of these outcomes.Requirement: parser nan acceptance
Requirement: parser infinity
Requirement: parser non nan results
Requirement: parser numeric sign
Requirement: parser signed zero
Requirement: parser selected exponent
Requirement: parser selected magnitude sign
Requirement: number helper record bounds
Requirement: special helper infinity
Requirement: special helper nan
Requirement: special helper rejection
ok none conclusion is not outer failure or divergence;
the direct obligation is not conditioned on a reached or successful call.Requirement: native correct or defer
Requirement: integer correct or defer
Requirement: slow accumulated rounding
Requirement: assembly correspondence
Requirement: classification totality
Requirement: classification determinism
Requirement: classification significand digit
Requirement: rounding totality
Requirement: rounding determinism
Requirement: exponent value agreement
Requirement: dispatch abstract composition
Requirement: dispatch component compliance
Requirement: number helper acceptance
Requirement: number helper rejection
ok none, outer checked failure and divergence
remain distinct outcomes.Requirement: parser exact rounding
Requirement: parser invalid rejection
Requirement: parser numeric acceptance
Requirement: parser totality
Requirement: parser accumulated rounding
Requirement: parser equal target rounding
Requirement: number helper accumulated value
Proof structure
Follow the declared dependencies to read the supporting statements and proofs.
Inspect related source (2)
- BiasedFp · dec2flt/common.rs:56 Program Rust
- Decimal · dec2flt/decimal.rs:32 Program Rust
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
- propext
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
Technical checking records
Local closure summary
{
"node": "P9_T1_DispatchOperations",
"closure_version": "patch_c_v1",
"active_decl_hash": "e78139fa2c5c900a598e3d73e141219e43ec5c994704592e7e9985c89f689eb9",
"active_statement_hash": "d9e7d772ddc9460006a0923890c3747292438ff9e47e3df5f485bb62e741c26f",
"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-14",
"boundary_theorems": {},
"strict_theorem_deps": {},
"strict_definition_deps": {
"F64": "ec4e25fbaf4e11d4",
"num_imp_dec2flt_common_BiasedFp": "c43614ff2149ecf2",
"num_imp_dec2flt_decimal_Decimal": "c43614ff2149ecf2"
}
}Prose assessment
{
"label": "Recorded Sound: VerifierPass",
"assessment_status": "VerifierPass",
"fingerprint_relation": "matches current fingerprint",
"assessment_fingerprint": "preservation-v1:0748124e8294a22bbb2138c56f26cb1bfbcd71459a9a34779dc35080bd90c8c0",
"current_fingerprint": "preservation-v1:0748124e8294a22bbb2138c56f26cb1bfbcd71459a9a34779dc35080bd90c8c0",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Pass",
"sound_status": "Pass",
"substantiveness_status": "Pass"
}