Statement
This explanation was written alongside the formalization to describe the statement and its reasoning.
Theorem · Number Helper Record Bounds
parse_number has negative = false and mantissa strictly less than 10^{19}.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.num_imp_dec2flt_parse_parse_number
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: NumberHelperRecordBounds]
theorem NumberHelperRecordBounds :
∀ (s : Slice Std.U8) (d : num.imp.dec2flt.decimal.Decimal),
s.val ≠ [] →
num.imp.dec2flt.parse.parse_number s = .ok (some d) →
d.negative = false ∧ d.mantissa.val < 10 ^ 19 := 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
number_helper_record_bounds. Its Lean proof is intentionally left open during Modeling; argument development will establish it from the extracted source model and its component contracts.Lean proof
sorry
end dec2flt_model
Download Lean source · Download TeX source
Complete Lean module
import Tablet.Preamble
import Tablet.num_imp_dec2flt_parse_parse_number
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: NumberHelperRecordBounds]
theorem NumberHelperRecordBounds :
∀ (s : Slice Std.U8) (d : num.imp.dec2flt.decimal.Decimal),
s.val ≠ [] →
num.imp.dec2flt.parse.parse_number s = .ok (some d) →
d.negative = false ∧ d.mantissa.val < 10 ^ 19 := by
-- BODY
sorry
end dec2flt_model
Proof structure
Follow the declared dependencies to read the supporting statements and proofs.
Used by
No incoming link is available in the captured dependency list.
Inspect related source (46)
- parse_number · dec2flt/parse.rs:231 Program Rust
- FloatErrorKind · num/mod.rs:18 Program Rust
- ParseFloatError · num/mod.rs:13 Program Rust
More program dependencies (35)
- Dec2FltAssemblyTrace · dec2flt/mod.rs:318 Program Rust
- Dec2FltTrace · dec2flt/mod.rs:284 Program Rust
- Lemire · dec2flt/mod.rs:115 Program Rust
- BiasedFp · dec2flt/common.rs:52 Program Rust
- ByteSlice · dec2flt/common.rs:4 Program Rust
- Decimal · dec2flt/decimal.rs:32 Program Rust
- DecimalSeq · dec2flt/decimal_seq.rs:21 Program Rust
- parse_partial_number · dec2flt/parse.rs:161 Program Rust
- CastInto · traits.rs:18 Program Rust
- Float · traits.rs:67 Program Rust
- FloatExt · traits.rs:168 Program Rust
- Int · traits.rs:27 Program Rust
- offset_from · dec2flt/common.rs:30 Program Rust
- adjust_many_digit_count · dec2flt/parse.rs:86 Program Rust
- adjust_many_digit_count_loop · dec2flt/parse.rs:89 Program Rust
- body · dec2flt/parse.rs:89 Program Rust
- parse_many_digits · dec2flt/parse.rs:104 Program Rust
- parse_scientific · dec2flt/parse.rs:121 Program Rust
- parse_scientific_loop · dec2flt/parse.rs:142 Program Rust
- body · dec2flt/parse.rs:142 Program Rust
- try_parse_digits · dec2flt/parse.rs:30 Program Rust
- try_parse_digits_loop0 · dec2flt/parse.rs:33 Program Rust
- body · dec2flt/parse.rs:33 Program Rust
- try_parse_digits_loop1 · dec2flt/parse.rs:50 Program Rust
- body · dec2flt/parse.rs:50 Program Rust
- read_u64 · dec2flt/common.rs:18 Program Rust
- is_8digits · dec2flt/common.rs:40 Program Rust
- MIN_19DIGIT_INT · dec2flt/parse.rs:8 Program Rust
- parse_8digits · dec2flt/parse.rs:18 Program Rust
- try_parse_19digits · dec2flt/parse.rs:61 Program Rust
- try_parse_19digits_loop · dec2flt/parse.rs:64 Program Rust
- body · dec2flt/parse.rs:64 Program Rust
- MASK · dec2flt/parse.rs:19 Program Rust
- MUL1 · dec2flt/parse.rs:20 Program Rust
- MUL2 · dec2flt/parse.rs:21 Program Rust
Standard-library dependencies (8)
- FpCategory · core/src/num/mod.rs:1522 Rust library
- Add · core/src/ops/arith.rs:76 Rust library
- Div · core/src/ops/arith.rs:460 Rust library
- Mul · core/src/ops/arith.rs:322 Rust library
- Neg · core/src/ops/arith.rs:690 Rust library
- BitOr · core/src/ops/bit.rs:254 Rust library
- Shl · core/src/ops/bit.rs:461 Rust library
- Shr · core/src/ops/bit.rs:584 Rust library
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
- Classical.choice
- Quot.sound
- propext
- sorryAx
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: NumberHelperRecordBounds
Helper theorems included
- NumberHelperRecordBounds
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice offset from
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice read u64
- num imp dec2flt common is 8digits
- num imp dec2flt decimal Decimal
- num imp dec2flt parse MIN 19DIGIT INT
All 17 entries
- NumberHelperRecordBounds
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice offset from
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice read u64
- num imp dec2flt common is 8digits
- num imp dec2flt decimal Decimal
- num imp dec2flt parse MIN 19DIGIT INT
- num imp dec2flt parse adjust many digit count
- num imp dec2flt parse parse 8digits
- num imp dec2flt parse parse 8digits MASK
- num imp dec2flt parse parse 8digits MUL1
- num imp dec2flt parse parse 8digits MUL2
- num imp dec2flt parse parse many digits
- num imp dec2flt parse parse number
- num imp dec2flt parse parse partial number
- num imp dec2flt parse parse scientific
- num imp dec2flt parse try parse 19digits
- num imp dec2flt parse try parse digits
Technical checking records
Local closure summary
{
"node": "NumberHelperRecordBounds",
"closure_version": "patch_c_v1",
"active_decl_hash": "ea421cd921650616b098fc1e896805a7af7f89825b564b97c8aa5b4d1c38401b",
"active_statement_hash": "40e1e5542a7d55cb9e2292c8fa59aa67b8b99eafc198912b20cc1aa7e138717c",
"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-3",
"boundary_theorems": {},
"strict_theorem_deps": {},
"strict_definition_deps": {
"num_imp_dec2flt_decimal_Decimal": "4c41a56bf44cb31e",
"num_imp_dec2flt_parse_parse_number": "f73f8bc11faa6db3"
}
}Prose assessment
{
"label": "Prose review has no verdict in this snapshot",
"assessment_status": null,
"fingerprint_relation": "unknown",
"assessment_fingerprint": null,
"current_fingerprint": "sound-v2:7493353d64a042d6ac1784ca32b19a4bdb6afbc0ee97773dd6b05e4aac4af83c",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Fail",
"substantiveness_status": "Pass"
}