Statement
This explanation was written alongside the formalization to describe the statement and its reasoning.
Lemma · Maximal numeric witness execution
1 followed by e655360, the extracted
parse_number returns fail integerOverflow.Lean statement
Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.
import Tablet.Assumptions
import Tablet.NumberHelperLeadingOneAdjustment
import Tablet.NumberHelperMaximalDigitScan
import Tablet.NumberHelperMaximalManyDigits
import Tablet.NumberHelperMaximalRetryOffset
import Tablet.NumberHelperScientificExponentBounds
import Tablet.NumberHelperSignedMaxOffset
import Tablet.SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_offset_from
import Tablet.SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64
import Tablet.num_imp_dec2flt_common_is_8digits
import Tablet.num_imp_dec2flt_parse_MIN_19DIGIT_INT
import Tablet.num_imp_dec2flt_parse_adjust_many_digit_count
import Tablet.num_imp_dec2flt_parse_parse_8digits
import Tablet.num_imp_dec2flt_parse_parse_many_digits
import Tablet.num_imp_dec2flt_parse_parse_number
import Tablet.num_imp_dec2flt_parse_parse_partial_number
import Tablet.num_imp_dec2flt_parse_try_parse_19digits
import Tablet.num_imp_dec2flt_parse_try_parse_digits
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: NumberHelperMaximalExecution]
theorem NumberHelperMaximalExecution :
forall s : Slice Std.U8,
s.val = List.replicate 9223372036854775800 49#u8 ++
[101#u8, 54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8] ->
num.imp.dec2flt.parse.parse_number s = fail integerOverflow := 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 retained as authored. The explanatory prose is preserved as it stood when captured.
Proof
e655360; the accumulator is some
u64. Suppose k<q. The slice then has at least eight bytes and its
first eight are all 49=\mathtt{0x31}. In
SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice read u64,
the range-to-eight operation is therefore in bounds, the eight-byte source
and destination have equal length, and little-endian assembly gives
u32 succeeds, and the final widening cast back to u64 is
exact. Thus no operation in this helper fails. The outer multiplication and
addition updating the bulk accumulator are also explicitly wrapping, and
dropping eight bytes is in bounds. This proves the induction step.e655360 remains, so the
eight-byte guard is false. The scalar loop reads its first byte 101 in
bounds; wrapping subtraction of 48 gives 53\not<10, so it consumes no
byte. The final drop by its zero count is in bounds. Hence the first digit
scan leaves exactly that suffix. Now use the configured 64-bit widths in
Assumptions and the definition
SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice offset from.
For the suffix relative to the original slice, the two length casts are
M:\mathtt{usize}\mapsto M:\mathtt{isize} and
7:\mathtt{usize}\mapsto7:\mathtt{isize}; both are in range, as is the
checked subtraction M-7=N. Thus the extracted digit count is exactly N.i64 exponent are zero.
The digit-count addition is N+0=N. Splitting byte 101 selects the
scientific branch. Applying the concrete 655360 clause of
NumberHelperScientificExponentBounds to the following six bytes
returns 65536 and the empty suffix. The first exponent addition is
0+65536, which is in signed 64-bit range. For the empty suffix relative to
the original slice, the cited offset_from definition casts lengths
M and zero to isize and performs the checked subtraction
M-0=M. The casts and subtraction succeed by Assumptions; the
subsequent cast of this nonnegative isize value to 64-bit
usize is exact.u64 is exact. The
largest checked product and sum occur on the nineteenth step:
e655360 has
length seven.isize to i64 is exact by
Assumptions. The second conjunct of the retry-offset lemma then says
that the final checked addition of the scientific value 65536 fails with
integerOverflow. Monadic binding propagates that failure out of
parse_many_digits, then out of
parse_partial_number. Finally, the defining bind in
num imp dec2flt parse parse number propagates the same failure
without reaching its length comparison. Hence parse_number has
exactly the asserted result.Lean proof
intro s hs
have hslen : s.val.length = 9223372036854775807 := by
rw [hs, List.length_append, List.length_replicate]
norm_num
have hnonempty : ¬ s.val = [] := by
intro h
have := congrArg List.length h
rw [hslen] at this
simp at this
obtain ⟨intEnd, mantissa, hscan, hintEnd⟩ :=
NumberHelperMaximalDigitScan s hs
have hintEndLen : intEnd.val.length = 7 := by
rw [hintEnd]
norm_num
obtain ⟨nDigits, hoffDigits, hnDigitsVal⟩ :=
NumberHelperSignedMaxOffset s intEnd (by omega) (by omega)
have hnDigits : nDigits.val = 9223372036854775800 := by
rw [hnDigitsVal, hslen, hintEndLen]
norm_num
let sci : Slice Std.U8 :=
⟨[54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8], by
have h : 6 <= intEnd.val.length := by rw [hintEnd]; norm_num
have := Nat.le_trans h intEnd.property
simpa using this⟩
have hsci : sci.val =
[54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8] := rfl
have hsplit : core.slice.Slice.split_first intEnd =
ok (some (101#u8, sci)) := by
have hbound : ([101#u8, 54#u8, 53#u8, 53#u8,
51#u8, 54#u8, 48#u8] : List Std.U8).length <= Usize.max := by
rw [← hintEnd]
exact intEnd.property
let t : Slice Std.U8 :=
⟨[101#u8, 54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8], hbound⟩
have hEq : intEnd = t := (Slice.eq_iff _ _).2 hintEnd
rw [hEq]
simp [core.slice.Slice.split_first, dec2flt_model.ModelSliceSplitFirst,
t, sci]
obtain ⟨empty, hscientific, hempty⟩ :=
NumberHelperScientificExponentBounds.2.1 sci hsci
have hemptyLen : empty.val.length = 0 := by simp [hempty]
have haddExp : (0#i64 + 65536#i64) = ok 65536#i64 := by rfl
obtain ⟨fullOffset, hoffFull, hfullOffsetVal⟩ :=
NumberHelperSignedMaxOffset s empty (by omega) (by omega)
have hfullVal : fullOffset.val = 9223372036854775807 := by
rw [hfullOffsetVal, hslen, hemptyLen]
norm_num
have hfullCast : lift (IScalar.hcast .Usize fullOffset) =
ok (Slice.len s) := by
have hbound : 0 <= fullOffset.val /\
fullOffset.val <= UScalar.max .Usize := by
rw [hfullVal]
simp [UScalar.max, Dec2Flt.configured_x86_64_numBits]
obtain ⟨z, hz, hzval⟩ := Aeneas.Std.WP.spec_imp_exists
(IScalar.hcast_inBounds_spec .Usize fullOffset hbound)
rw [hz]
congr 2
apply UScalar.eq_of_val_eq
rw [hfullOffsetVal, hempty] at hzval
simpa [Slice.len_val] using hzval
have haddZero : (nDigits + 0#isize) = ok nDigits := by
have hn := IScalar.hBounds nDigits
have hbits := Dec2Flt.configured_x86_64_numBits
have hlo : IScalar.min .Isize <= nDigits.val + (0#isize).val := by
simp [IScalar.min, IScalarTy.numBits, hbits] at hn ⊢
omega
have hhi : nDigits.val + (0#isize).val <= IScalar.max .Isize := by
simp [IScalar.max, IScalarTy.numBits, hbits] at hn ⊢
omega
obtain ⟨z, hz, hzval⟩ := Aeneas.Std.WP.spec_imp_exists
(IScalar.add_spec hlo hhi)
rw [hz]
congr 2
apply IScalar.eq_of_val_eq
simpa using hzval
have hnLarge : ¬ nDigits.val <= 19 := by
rw [hnDigits]
omega
have hnNonzero : ¬ nDigits.val = 0 := by
rw [hnDigits]
omega
obtain ⟨manyCount, hsub, hmanyVal⟩ := by
have hbits := Dec2Flt.configured_x86_64_numBits
have hlo : IScalar.min .Isize <= nDigits.val - (19#isize).val := by
simp [IScalar.min, IScalarTy.numBits, hbits, hnDigits]
have hhi : nDigits.val - (19#isize).val <= IScalar.max .Isize := by
simp [IScalar.max, IScalarTy.numBits, hbits, hnDigits]
exact Aeneas.Std.WP.spec_imp_exists (IScalar.sub_spec hlo hhi)
have hmanyVal' : manyCount.val = 9223372036854775781 := by
norm_num at hmanyVal
omega
have hadjust := NumberHelperLeadingOneAdjustment s manyCount hs
have hmanyPos : 0 < manyCount.val := by
rw [hmanyVal']
omega
have hmanyFail := NumberHelperMaximalManyDigits s intEnd hs hintEnd
have h101Target : (101#u8 : Std.U8) = 101#uscalar := by
apply UScalar.eq_of_val_eq
rfl
have hpartial : num.imp.dec2flt.parse.parse_partial_number s =
fail integerOverflow := by
unfold num.imp.dec2flt.parse.parse_partial_number
simp [hnonempty, hscan, hoffDigits, hsplit, hscientific,
core.option.Option.Insts.CoreOpsTry_traitTry.branch,
dec2flt_model.ModelOptionBranch, haddExp, hoffFull, hfullCast,
haddZero, hnNonzero, hnLarge, hsub, hadjust, hmanyPos, hmanyFail,
h101Target]
unfold num.imp.dec2flt.parse.parse_number
simp [hpartial]
end dec2flt_model
Download Lean source · Download TeX source
Complete Lean module
import Tablet.Assumptions
import Tablet.NumberHelperLeadingOneAdjustment
import Tablet.NumberHelperMaximalDigitScan
import Tablet.NumberHelperMaximalManyDigits
import Tablet.NumberHelperMaximalRetryOffset
import Tablet.NumberHelperScientificExponentBounds
import Tablet.NumberHelperSignedMaxOffset
import Tablet.SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_offset_from
import Tablet.SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_read_u64
import Tablet.num_imp_dec2flt_common_is_8digits
import Tablet.num_imp_dec2flt_parse_MIN_19DIGIT_INT
import Tablet.num_imp_dec2flt_parse_adjust_many_digit_count
import Tablet.num_imp_dec2flt_parse_parse_8digits
import Tablet.num_imp_dec2flt_parse_parse_many_digits
import Tablet.num_imp_dec2flt_parse_parse_number
import Tablet.num_imp_dec2flt_parse_parse_partial_number
import Tablet.num_imp_dec2flt_parse_try_parse_19digits
import Tablet.num_imp_dec2flt_parse_try_parse_digits
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: NumberHelperMaximalExecution]
theorem NumberHelperMaximalExecution :
forall s : Slice Std.U8,
s.val = List.replicate 9223372036854775800 49#u8 ++
[101#u8, 54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8] ->
num.imp.dec2flt.parse.parse_number s = fail integerOverflow := by
-- BODY
intro s hs
have hslen : s.val.length = 9223372036854775807 := by
rw [hs, List.length_append, List.length_replicate]
norm_num
have hnonempty : ¬ s.val = [] := by
intro h
have := congrArg List.length h
rw [hslen] at this
simp at this
obtain ⟨intEnd, mantissa, hscan, hintEnd⟩ :=
NumberHelperMaximalDigitScan s hs
have hintEndLen : intEnd.val.length = 7 := by
rw [hintEnd]
norm_num
obtain ⟨nDigits, hoffDigits, hnDigitsVal⟩ :=
NumberHelperSignedMaxOffset s intEnd (by omega) (by omega)
have hnDigits : nDigits.val = 9223372036854775800 := by
rw [hnDigitsVal, hslen, hintEndLen]
norm_num
let sci : Slice Std.U8 :=
⟨[54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8], by
have h : 6 <= intEnd.val.length := by rw [hintEnd]; norm_num
have := Nat.le_trans h intEnd.property
simpa using this⟩
have hsci : sci.val =
[54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8] := rfl
have hsplit : core.slice.Slice.split_first intEnd =
ok (some (101#u8, sci)) := by
have hbound : ([101#u8, 54#u8, 53#u8, 53#u8,
51#u8, 54#u8, 48#u8] : List Std.U8).length <= Usize.max := by
rw [← hintEnd]
exact intEnd.property
let t : Slice Std.U8 :=
⟨[101#u8, 54#u8, 53#u8, 53#u8, 51#u8, 54#u8, 48#u8], hbound⟩
have hEq : intEnd = t := (Slice.eq_iff _ _).2 hintEnd
rw [hEq]
simp [core.slice.Slice.split_first, dec2flt_model.ModelSliceSplitFirst,
t, sci]
obtain ⟨empty, hscientific, hempty⟩ :=
NumberHelperScientificExponentBounds.2.1 sci hsci
have hemptyLen : empty.val.length = 0 := by simp [hempty]
have haddExp : (0#i64 + 65536#i64) = ok 65536#i64 := by rfl
obtain ⟨fullOffset, hoffFull, hfullOffsetVal⟩ :=
NumberHelperSignedMaxOffset s empty (by omega) (by omega)
have hfullVal : fullOffset.val = 9223372036854775807 := by
rw [hfullOffsetVal, hslen, hemptyLen]
norm_num
have hfullCast : lift (IScalar.hcast .Usize fullOffset) =
ok (Slice.len s) := by
have hbound : 0 <= fullOffset.val /\
fullOffset.val <= UScalar.max .Usize := by
rw [hfullVal]
simp [UScalar.max, Dec2Flt.configured_x86_64_numBits]
obtain ⟨z, hz, hzval⟩ := Aeneas.Std.WP.spec_imp_exists
(IScalar.hcast_inBounds_spec .Usize fullOffset hbound)
rw [hz]
congr 2
apply UScalar.eq_of_val_eq
rw [hfullOffsetVal, hempty] at hzval
simpa [Slice.len_val] using hzval
have haddZero : (nDigits + 0#isize) = ok nDigits := by
have hn := IScalar.hBounds nDigits
have hbits := Dec2Flt.configured_x86_64_numBits
have hlo : IScalar.min .Isize <= nDigits.val + (0#isize).val := by
simp [IScalar.min, IScalarTy.numBits, hbits] at hn ⊢
omega
have hhi : nDigits.val + (0#isize).val <= IScalar.max .Isize := by
simp [IScalar.max, IScalarTy.numBits, hbits] at hn ⊢
omega
obtain ⟨z, hz, hzval⟩ := Aeneas.Std.WP.spec_imp_exists
(IScalar.add_spec hlo hhi)
rw [hz]
congr 2
apply IScalar.eq_of_val_eq
simpa using hzval
have hnLarge : ¬ nDigits.val <= 19 := by
rw [hnDigits]
omega
have hnNonzero : ¬ nDigits.val = 0 := by
rw [hnDigits]
omega
obtain ⟨manyCount, hsub, hmanyVal⟩ := by
have hbits := Dec2Flt.configured_x86_64_numBits
have hlo : IScalar.min .Isize <= nDigits.val - (19#isize).val := by
simp [IScalar.min, IScalarTy.numBits, hbits, hnDigits]
have hhi : nDigits.val - (19#isize).val <= IScalar.max .Isize := by
simp [IScalar.max, IScalarTy.numBits, hbits, hnDigits]
exact Aeneas.Std.WP.spec_imp_exists (IScalar.sub_spec hlo hhi)
have hmanyVal' : manyCount.val = 9223372036854775781 := by
norm_num at hmanyVal
omega
have hadjust := NumberHelperLeadingOneAdjustment s manyCount hs
have hmanyPos : 0 < manyCount.val := by
rw [hmanyVal']
omega
have hmanyFail := NumberHelperMaximalManyDigits s intEnd hs hintEnd
have h101Target : (101#u8 : Std.U8) = 101#uscalar := by
apply UScalar.eq_of_val_eq
rfl
have hpartial : num.imp.dec2flt.parse.parse_partial_number s =
fail integerOverflow := by
unfold num.imp.dec2flt.parse.parse_partial_number
simp [hnonempty, hscan, hoffDigits, hsplit, hscientific,
core.option.Option.Insts.CoreOpsTry_traitTry.branch,
dec2flt_model.ModelOptionBranch, haddExp, hoffFull, hfullCast,
haddZero, hnNonzero, hnLarge, hsub, hadjust, hmanyPos, hmanyFail,
h101Target]
unfold num.imp.dec2flt.parse.parse_number
simp [hpartial]
end dec2flt_model
Proof structure
Follow the declared dependencies to read the supporting statements and proofs.
Uses
- Assumptions
- NumberHelperLeadingOneAdjustment
- NumberHelperMaximalDigitScan
- NumberHelperMaximalManyDigits
- NumberHelperMaximalRetryOffset
- NumberHelperScientificExponentBounds
All 18 entries
- Assumptions
- NumberHelperLeadingOneAdjustment
- NumberHelperMaximalDigitScan
- NumberHelperMaximalManyDigits
- NumberHelperMaximalRetryOffset
- NumberHelperScientificExponentBounds
- NumberHelperSignedMaxOffset
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice offset from
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice read u64
- num imp dec2flt common is 8digits
- 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 many digits
- num imp dec2flt parse parse number
- num imp dec2flt parse parse partial number
- num imp dec2flt parse try parse 19digits
- num imp dec2flt parse try parse digits
Inspect related source (69)
- offset_from · dec2flt/common.rs:30 Program Rust
- read_u64 · dec2flt/common.rs:18 Program Rust
- is_8digits · dec2flt/common.rs:40 Program Rust
More program dependencies (36)
- MIN_19DIGIT_INT · dec2flt/parse.rs:8 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_8digits · dec2flt/parse.rs:18 Program Rust
- parse_many_digits · dec2flt/parse.rs:104 Program Rust
- parse_number · dec2flt/parse.rs:231 Program Rust
- parse_partial_number · dec2flt/parse.rs:161 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
- 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
- Decimal · dec2flt/decimal.rs:32 Program Rust
- MASK · dec2flt/parse.rs:19 Program Rust
- MUL1 · dec2flt/parse.rs:20 Program Rust
- MUL2 · dec2flt/parse.rs:21 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
- from_u64 · dec2flt/mod.rs:263 Program Rust
- FloatErrorKind · num/mod.rs:18 Program Rust
- ParseFloatError · num/mod.rs:13 Program Rust
- Dec2FltAssemblyTrace · dec2flt/mod.rs:329 Program Rust
- Dec2FltTrace · dec2flt/mod.rs:295 Program Rust
- Lemire · dec2flt/mod.rs:115 Program Rust
- BiasedFp · dec2flt/common.rs:52 Program Rust
- ByteSlice · dec2flt/common.rs:4 Program Rust
- DecimalSeq · dec2flt/decimal_seq.rs:21 Program Rust
- CastInto · traits.rs:18 Program Rust
- Float · traits.rs:74 Program Rust
- FloatExt · traits.rs:170 Program Rust
- Int · traits.rs:27 Program Rust
Standard-library dependencies (30)
- clone · core/src/clone.rs:698 Rust library
- div · core/src/ops/arith.rs:515 Rust library
- mul · core/src/ops/arith.rs:350 Rust library
- neg · core/src/ops/arith.rs:719 Rust library
- bitand · core/src/ops/bit.rs:178 Rust library
- bitor · core/src/ops/bit.rs:282 Rust library
- shl · core/src/ops/bit.rs:489 Rust library
- shr · core/src/ops/bit.rs:612 Rust library
- EXPONENT_MASK · core/src/num/f64.rs:615 Rust library
- INFINITY · core/src/num/f64.rs:512 Rust library
- MANTISSA_DIGITS · core/src/num/f64.rs:412 Rust library
- MANTISSA_MASK · core/src/num/f64.rs:637 Rust library
- NAN · core/src/num/f64.rs:509 Rust library
- NEG_INFINITY · core/src/num/f64.rs:515 Rust library
- classify · core/src/num/f64.rs:782 Rust library
- from_bits · core/src/num/f64.rs:1269 Rust library
- to_bits · core/src/num/f64.rs:1223 Rust library
- is_ascii_digit · core/src/num/mod.rs:958 Rust library
- from_residual · core/src/option.rs:2793 Rust library
- branch · core/src/option.rs:2779 Rust library
- first · core/src/slice/mod.rs:155 Rust library
- split_first · core/src/slice/mod.rs:198 Rust library
- as_bytes · core/src/str/mod.rs:498 Rust library
- FpCategory · core/src/num/mod.rs:1522 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
- Dec2Flt.configured_x86_64_numBits
- Quot.sound
- 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
All 58 entries
- Binary64Model
- Binary64ModelDefault
- F64
- ModelF64Classify
- ModelF64Clone
- ModelF64Div
- ModelF64ExponentMask
- ModelF64FromBits
- ModelF64FromU64
- ModelF64Infinity
- ModelF64MantissaDigits
- ModelF64MantissaMask
- ModelF64Mul
- ModelF64Nan
- ModelF64Neg
- ModelF64NegInfinity
- ModelF64ToBits
- ModelOptionBranch
- ModelOptionFromResidual
- ModelSliceFirst
- ModelSliceSplitFirst
- ModelStrAsBytes
- ModelU64BitAnd
- ModelU64BitOr
- ModelU64Shl
- ModelU64Shr
- ModelU8IsAsciiDigit
- NumberHelperEightDigitWord
- NumberHelperEightDigitWordAccepted
- NumberHelperLeadingOneAdjustment
- NumberHelperMaximalDigitScan
- NumberHelperMaximalExecution
- NumberHelperMaximalManyDigits
- NumberHelperMaximalRetryOffset
- NumberHelperMaximalRetryScan
- NumberHelperParseEightDigitsSafe
- NumberHelperReadEightBytes
- NumberHelperScientificExponentBounds
- NumberHelperSignedMaxOffset
- NumberHelperTryParse19SafeLength
- Preamble
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice offset from
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice read u64
- core num FpCategory
- 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": "NumberHelperMaximalExecution",
"closure_version": "patch_c_v1",
"active_decl_hash": "c708911b463f781951ca883d00ac77aa5657fcc90c48ac9f2935d714aa043b46",
"active_statement_hash": "165ca8d79087920e8b10dc99bc5088b9200afd1f3a9d986c1988f8f4a69d0af9",
"kernel_axioms": [
"Classical.choice",
"Dec2Flt.configured_x86_64_numBits",
"Quot.sound",
"propext"
],
"toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
"lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
"checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
"approved_axioms_hash": "ab64d13f256386ee0e494a5abcc6a5db49512cf3d90bbdfcabd6327793a31f95",
"axcheck_status": "Agreed",
"accepted_at_snapshot_id": "worker-result-local-closure-issuance-cycle-115",
"boundary_theorems": {},
"strict_theorem_deps": {
"ModelSliceSplitFirst": "f617ee05dd2925a9",
"NumberHelperLeadingOneAdjustment": "cda14a8ff2f878ea",
"NumberHelperMaximalDigitScan": "7f0ae3b1355e4ba2",
"NumberHelperMaximalManyDigits": "cb32b2db1611e38e",
"NumberHelperScientificExponentBounds": "cbc7ad7b44bfaee9",
"NumberHelperSignedMaxOffset": "de0168dfeba3b802",
"num_imp_dec2flt_parse_parse_partial_number": "0f3e5cc6a65d812e"
},
"strict_definition_deps": {
"ModelOptionBranch": "2b227898dbe15e59",
"Preamble": "4adf4172ae751d7d",
"SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_offset_from": "7e7284dc9bc88830",
"num_imp_dec2flt_decimal_Decimal": "4da4ccbe640ef8e6",
"num_imp_dec2flt_parse_adjust_many_digit_count": "4e59e3776b6cfdaa",
"num_imp_dec2flt_parse_parse_many_digits": "50c9ef13b3ed7fe8",
"num_imp_dec2flt_parse_parse_number": "f73f8bc11faa6db3",
"num_imp_dec2flt_parse_parse_partial_number": "359d30eefc709c2a",
"num_imp_dec2flt_parse_parse_scientific": "447f722d5841d2c5",
"num_imp_dec2flt_parse_try_parse_digits": "238b4a73cd46fc56"
}
}Prose assessment
{
"label": "Recorded Sound: VerifierPass",
"assessment_status": "VerifierPass",
"fingerprint_relation": "matches current fingerprint",
"assessment_fingerprint": "sound-v2:72c1b242176965a96d0990eac0e20f10af98254d6bea5bbbd8950f7b1bbcaf8c",
"current_fingerprint": "sound-v2:72c1b242176965a96d0990eac0e20f10af98254d6bea5bbbd8950f7b1bbcaf8c",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Pass",
"sound_status": "Pass",
"substantiveness_status": "Pass"
}