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.P9_T1_DispatchOperations
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: P9_T1_AbstractComponents]
structure P9_T1_AbstractComponents where
-- BODY
parseNumber : Slice Std.U8 -> Option num.imp.dec2flt.decimal.Decimal
parseSpecial : Slice Std.U8 -> Bool -> Option F64
native : num.imp.dec2flt.decimal.Decimal -> Option F64
integer : Std.I64 -> Std.U64 -> num.imp.dec2flt.common.BiasedFp
slow : Slice Std.U8 -> num.imp.dec2flt.common.BiasedFp
assemble : num.imp.dec2flt.common.BiasedFp -> F64
negate : F64 -> 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
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_AbstractComponents",
"closure_version": "patch_c_v1",
"active_decl_hash": "4db6fc868ba05ac588875e9c80fee55e4be5b79b4b874c1de8b227b6be13410e",
"active_statement_hash": "ecadb0a2a79a8704f5430eaa18e916b42448ea38c239546a77af309bc096d778",
"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:c6aa1593474d801cb3a4a5eb48e0bd2b4a9abf8e9aaf0b6bfab2709a024168b3",
"current_fingerprint": "preservation-v1:c6aa1593474d801cb3a4a5eb48e0bd2b4a9abf8e9aaf0b6bfab2709a024168b3",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Pass",
"sound_status": "Pass",
"substantiveness_status": "Pass"
}