Definition and explanation
This explanation was written alongside the formalization to describe the statement and its reasoning.
Preservation argument
Claim
x86_64-unknown-linux-gnu, the library's empty default feature set
(so optimize_for_size is disabled), the unoptimized development
profile, enabled debug assertions and integer overflow checks, and the target's
SSE2 precision-setting branch. Interpret each of the frozen extraction's 24
external operations by the separately justified model-support definition that
owns that operation. Under those interpretations, the composed Aeneas model
represents the supplied source's f64 specialization on all of these
domains, without a correctness premise: every Rust str whose bytes
are valid UTF-8 and whose 64-bit slice length is at most
\mathtt{isize::MAX}=2^{63}-1; every Rust &[u8] whose length is at
most that bound, with arbitrary byte contents; every Decimal; every
i64/u64 pair; and every BiasedFp.dec2flt::<f64> the relation preserves panic versus normal return,
the outer returned Result's Ok/Err discriminant,
and, on success, the exact binary64 word and its NaN classification. For
parse_number it preserves panic versus normal return, the
Option discriminant, and all four returned Decimal fields.
For parse_inf_nan::<f64> and
Decimal::try_fast_path::<f64> it preserves panic versus normal
return, None versus Some, and every returned word and NaN
classification. For compute_float::<f64> and
parse_long_mantissa::<f64> it preserves panic versus normal return
and both fields of every returned BiasedFp. For
biased_fp_to_float::<f64> it preserves panic versus normal return
and the exact returned word, with no restriction on the pair fields.dec2flt_with_trace::<f64> it additionally preserves the public
result and the complete trace: its control-flow variant; sign-stripped body and
lexical sign; numeric and special helper results; signed native input and
native result; first integer operands and result; second-call guard, optional
operands and result, comparison and forced-deferral fact; post-comparison pair;
slow-path guard and optional result; selected pair; assembled unsigned word;
pre-sign assembly result; sign-application fact; and final word. Public
dec2flt::<f64> is exactly the first projection of that interface, and
direct special and native returns select no raw pair.Proof
generated.lean, with SHA-256
45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9.
The raw source has no placeholder. The compatibility check reports no
unapproved axiom and isolates exactly 24 external declarations; the complete
inventory equals the 24 entries of Tablet/model-support.json.
compose-native --check reports an unchanged composition and equal
expected and actual Preamble hashes. Thus all transparent extracted
declarations come from this one pinned source and every nontransparent
operation is explicit. The premise assigning each external its owning
definition deliberately leaves that definition's primitive-semantics proof to
its own preservation record; no primitive binding is re-proved here.fpu.rs, lemire.rs, and table.rs are
byte-identical. The standalone namespace and local error shell introduce no
call. The GOALs observe only panic versus normal return and the outer
Ok/Err discriminant, so the shell's private kind and
formatting are unobserved; no identity with an unpinned core error payload is
asserted. Visibility and removed Debug derives do not affect values.
The retained generic bodies use none of the removed trait operations;
the direct Mul, Div, and Neg clauses and calls are
the operations already implied by Lemire. Only the u64
integer instance and f64 Float, FloatExt, and
Lemire instances can participate in an f64 execution, so
disabling the u16/u32 and f16/f32
instances changes no such call.f64/u64 field widths and
masks; the fast-path bounds are the source formula results; and the match over
power-of-ten words has the same masked index and exact words as the source
array. The toolchain-specific words, masks, classifications, casts, and
rounding behavior are independently pinned in
reference/model-evidence/binary64-boundary.txt. The frozen
from_u64 Rust body is the enabled assertion followed by the
u64 as f64 conversion. Because #[charon::opaque] applies to
the whole function, neither operation inside that body is transparent in the
extraction: the whole method is the single inventoried external. Its callers,
their guards, and the surrounding native computation remain transparent.
ModelF64FromU64 supplies exactly successful integer conversion for
v\leq2^{53} and assertion failure otherwise.split_first loops. Extracted helpers receive the same
slices and mutable values, visit bytes in the same forward or reverse order,
and retain every saturating, wrapping, and checked operation. Delayed returns
set a result flag, execute no intervening state update, leave the loop through
that flag, and immediately return the source value. In particular, casts and
length-derived additions on very large inputs keep their original panic or
normal behavior rather than acquiring a convenience size bound.None, overwrite only the parsed sign, try the enabled native
path, make the first integer call, and evaluate the checked
mantissa+1 and second call under exactly the source short-circuit
guard. Both force the same deferral on unequal pairs, call the slow helper on
the unchanged body exactly for a negative post-comparison exponent, assemble
the same selected pair, and apply the sign last. Every trace field is either
one of those already computed values or the same nonmutating cast/shift/OR word
used by assembly. Hence recording the trace and discarding it in the public
projection changes neither call order, guards, state, panic points, nor any
returned observation.isize::MAX, while a Rust string adds UTF-8 validity. Sub-slicing
preserves the length bound and need not preserve an independent string type.
These facts establish all domains and observations in the claim independently
of the truth or falsity of any GOAL.Requirement: parser totality
dec2flt::<f64> on every source-valid Rust
string, including the full UTF-8 and 2^{63}-1 length domain. The relation
preserves exactly its panic-versus-normal outcome and outer Result; it
does not assume that the outcome is normal.Requirement: parser numeric acceptance
dec2flt::<f64> on every source-valid string whose
complete bytes form a numeric literal. The preserved public Result
discriminant and exact success word are precisely its source observations; no
smaller input bound or acceptance conclusion is built into the relation.Requirement: parser invalid rejection
None,
special-None, and returned Err branches remain distinct in
the preserved public result and trace.Requirement: parser nan acceptance
Ok discriminant, exact returned word, and the separate NaN
classification, including the final sign operation for negative nan.Requirement: parser infinity
Requirement: parser non nan results
Result success.Requirement: parser numeric sign
Requirement: parser signed zero
Requirement: parser exact rounding
dec2flt::<f64> for
every accepted source-valid numeric string. The relation preserves that word
and the entire computation producing it, but makes no claim that it equals the
mathematical exact-value rounding target.Requirement: parser selected exponent
Requirement: parser selected magnitude sign
Requirement: dispatch abstract composition
Requirement: dispatch component compliance
Requirement: parser accumulated rounding
Requirement: parser equal target rounding
Requirement: number helper acceptance
parse_number on every source-valid nonempty
byte slice forming an unsigned numeric literal, with no UTF-8 premise. The
relation preserves panic versus normal return, Some/None, and
all returned record fields over that complete domain without assuming
acceptance.Requirement: number helper rejection
Option and panic/normal preservation
retains the source rejection observation without restricting arbitrary bytes.Requirement: number helper record bounds
Decimal fields are preserved individually. In particular the
negative and mantissa fields used by the stated bounds are not reconstructed
from a weaker numeric value.Requirement: number helper accumulated value
Requirement: special helper infinity
parse_inf_nan::<f64> on every source-valid
byte slice spelling an unsigned infinity keyword and either separate sign.
The relation preserves panic/normal, the exact Option, and the exact
returned infinity word throughout that domain.Requirement: special helper nan
Option, exact word, and NaN classification; it
does not identify all NaN bit patterns.Requirement: special helper rejection
None/Some without an
added UTF-8 condition or an assumed rejection conclusion.Requirement: native correct or defer
Decimal, not only
parser-produced records. The relation preserves its four input fields,
ordinary and disguised native branches, enabled assertion failures, and every
normal None or exact Some word and classification.Requirement: integer correct or defer
i64 exponents and u64
mantissas. The relation preserves panic versus normal return and both fields
of every returned pair, including negative biased exponents, without a hidden
range precondition.Requirement: slow accumulated rounding
parse_long_mantissa::<f64> on every
source-valid unsigned-numeric byte slice. The indexed scans, length casts,
checked state updates, delayed returns, and both result fields are preserved
even for very large inputs; no accumulated-rounding conclusion is assumed.Requirement: assembly correspondence
biased_fp_to_float::<f64> on every
unrestricted BiasedFp. The relation preserves both arbitrary input
fields, Rust's cast/shift/OR computation, panic versus normal return, and the
exact returned word with no well-formedness condition.Requirement: classification totality
Requirement: classification determinism
Requirement: classification significand digit
Requirement: rounding totality
Requirement: rounding determinism
Requirement: exponent value agreement
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.ModelF64Classify
import Tablet.ModelF64Clone
import Tablet.ModelF64Div
import Tablet.ModelF64ExponentMask
import Tablet.ModelF64FromBits
import Tablet.ModelF64FromU64
import Tablet.ModelF64Infinity
import Tablet.ModelF64MantissaDigits
import Tablet.ModelF64MantissaMask
import Tablet.ModelF64Mul
import Tablet.ModelF64Nan
import Tablet.ModelF64Neg
import Tablet.ModelF64NegInfinity
import Tablet.ModelF64ToBits
import Tablet.ModelOptionBranch
import Tablet.ModelOptionFromResidual
import Tablet.ModelSliceFirst
import Tablet.ModelSliceSplitFirst
import Tablet.ModelStrAsBytes
import Tablet.ModelU64BitAnd
import Tablet.ModelU64BitOr
import Tablet.ModelU64Shl
import Tablet.ModelU64Shr
import Tablet.ModelU8IsAsciiDigit
import Tablet.core_num_FpCategory
import Tablet.core_ops_arith_Mul
import Tablet.core_ops_arith_Div
import Tablet.core_ops_arith_Neg
import Tablet.core_ops_bit_BitOr
import Tablet.core_ops_bit_Shl
import Tablet.core_ops_bit_Shr
import Tablet.num_imp_dec2flt_common_ByteSlice
import Tablet.num_imp_dec2flt_common_BiasedFp
import Tablet.num_imp_dec2flt_decimal_Decimal
import Tablet.num_imp_traits_CastInto
import Tablet.num_imp_traits_Int
import Tablet.num_imp_traits_Float
import Tablet.num_imp_traits_FloatExt
import Tablet.num_imp_dec2flt_Lemire
import Tablet.num_imp_dec2flt_decimal_seq_DecimalSeq
import Tablet.num_float_parse_FloatErrorKind
import Tablet.num_float_parse_ParseFloatError
import Tablet.num_imp_dec2flt_Dec2FltAssemblyTrace
import Tablet.num_imp_dec2flt_Dec2FltTrace
-- THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS
-- [dec2flt_model]
import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option linter.dupNamespace false
set_option linter.hashCommand false
set_option linter.unusedVariables false
/- You can set the `maxHeartbeats` value with the `-max-heartbeats` CLI option -/
set_option maxHeartbeats 1000000
/- You can set the `maxRecDepth` value with the `-max-recdepth` CLI option -/
set_option maxRecDepth 2048
/- You can remove the following line by using the CLI option `-all-computable`: -/
noncomputable section
set_option autoImplicit false
namespace dec2flt_model
/-- [core::clone::impls::{impl core::clone::Clone for f64}::clone]:
Source: '/rustc/library/core/src/clone.rs', lines 698:20-698:43
Name pattern: [core::clone::impls::{core::clone::Clone<f64>}::clone]
Visibility: public -/
@[rust_fun "core::clone::impls::{core::clone::Clone<f64>}::clone"]
def F64.Insts.CoreCloneClone.clone : F64 → Result F64 := _root_.dec2flt_model.ModelF64Clone
/-- [core::f64::{f64}::MANTISSA_DIGITS]
Source: '/rustc/library/core/src/num/f64.rs', lines 412:4-412:34
Name pattern: [core::f64::{f64}::MANTISSA_DIGITS]
Visibility: public -/
@[rust_const "core::f64::{f64}::MANTISSA_DIGITS"]
def core.f64.F64.MANTISSA_DIGITS : Result Std.U32 := _root_.dec2flt_model.ModelF64MantissaDigits
/-- [core::f64::{f64}::NAN]
Source: '/rustc/library/core/src/num/f64.rs', lines 509:4-509:22
Name pattern: [core::f64::{f64}::NAN]
Visibility: public -/
def core.f64.F64.NAN : Result F64 := _root_.dec2flt_model.ModelF64Nan
/-- [core::f64::{f64}::INFINITY]
Source: '/rustc/library/core/src/num/f64.rs', lines 512:4-512:27
Name pattern: [core::f64::{f64}::INFINITY]
Visibility: public -/
@[rust_const "core::f64::{f64}::INFINITY"]
def core.f64.F64.INFINITY : Result F64 := _root_.dec2flt_model.ModelF64Infinity
/-- [core::f64::{f64}::NEG_INFINITY]
Source: '/rustc/library/core/src/num/f64.rs', lines 515:4-515:31
Name pattern: [core::f64::{f64}::NEG_INFINITY]
Visibility: public -/
@[rust_const "core::f64::{f64}::NEG_INFINITY"]
def core.f64.F64.NEG_INFINITY : Result F64 := _root_.dec2flt_model.ModelF64NegInfinity
/-- [core::f64::{f64}::EXPONENT_MASK]
Source: '/rustc/library/core/src/num/f64.rs', lines 615:4-615:32
Name pattern: [core::f64::{f64}::EXPONENT_MASK]
Visibility: public -/
@[rust_const "core::f64::{f64}::EXPONENT_MASK"]
def core.f64.F64.EXPONENT_MASK : Result Std.U64 := _root_.dec2flt_model.ModelF64ExponentMask
/-- [core::f64::{f64}::MANTISSA_MASK]
Source: '/rustc/library/core/src/num/f64.rs', lines 637:4-637:32
Name pattern: [core::f64::{f64}::MANTISSA_MASK]
Visibility: public -/
@[rust_const "core::f64::{f64}::MANTISSA_MASK"]
def core.f64.F64.MANTISSA_MASK : Result Std.U64 := _root_.dec2flt_model.ModelF64MantissaMask
/-- [core::f64::{f64}::classify]:
Source: '/rustc/library/core/src/num/f64.rs', lines 782:4-782:45
Name pattern: [core::f64::{f64}::classify]
Visibility: public -/
@[rust_fun "core::f64::{f64}::classify"]
def core.f64.F64.classify : F64 → Result core.num.FpCategory := _root_.dec2flt_model.ModelF64Classify
/-- [core::f64::{f64}::to_bits]:
Source: '/rustc/library/core/src/num/f64.rs', lines 1223:4-1223:37
Name pattern: [core::f64::{f64}::to_bits]
Visibility: public -/
@[rust_fun "core::f64::{f64}::to_bits"]
def core.f64.F64.to_bits : F64 → Result Std.U64 := _root_.dec2flt_model.ModelF64ToBits
/-- [core::f64::{f64}::from_bits]:
Source: '/rustc/library/core/src/num/f64.rs', lines 1269:4-1269:42
Name pattern: [core::f64::{f64}::from_bits]
Visibility: public -/
@[rust_fun "core::f64::{f64}::from_bits"]
def core.f64.F64.from_bits : Std.U64 → Result F64 := _root_.dec2flt_model.ModelF64FromBits
/-- [core::num::{u8}::is_ascii_digit]:
Source: '/rustc/library/core/src/num/mod.rs', lines 958:4-958:46
Name pattern: [core::num::{u8}::is_ascii_digit]
Visibility: public -/
@[rust_fun "core::num::{u8}::is_ascii_digit"]
def core.num.U8.is_ascii_digit : Std.U8 → Result Bool := _root_.dec2flt_model.ModelU8IsAsciiDigit
/-- [core::ops::arith::{impl core::ops::arith::Mul<f64, f64> for f64}::mul]:
Source: '/rustc/library/core/src/ops/arith.rs', lines 350:12-350:41
Name pattern: [core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul]
Visibility: public -/
@[rust_fun "core::ops::arith::{core::ops::arith::Mul<f64, f64, f64>}::mul"]
def F64.Insts.CoreOpsArithMulF64F64.mul : F64 → F64 → Result F64 := _root_.dec2flt_model.ModelF64Mul
/-- [core::ops::arith::{impl core::ops::arith::Div<f64, f64> for f64}::div]:
Source: '/rustc/library/core/src/ops/arith.rs', lines 515:12-515:41
Name pattern: [core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div]
Visibility: public -/
@[rust_fun "core::ops::arith::{core::ops::arith::Div<f64, f64, f64>}::div"]
def F64.Insts.CoreOpsArithDivF64F64.div : F64 → F64 → Result F64 := _root_.dec2flt_model.ModelF64Div
/-- [core::ops::arith::{impl core::ops::arith::Neg<f64> for f64}::neg]:
Source: '/rustc/library/core/src/ops/arith.rs', lines 719:12-719:30
Name pattern: [core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg]
Visibility: public -/
@[rust_fun "core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg"]
def F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64 := _root_.dec2flt_model.ModelF64Neg
/-- [core::ops::bit::{impl core::ops::bit::BitAnd<u64, u64> for u64}::bitand]:
Source: '/rustc/library/core/src/ops/bit.rs', lines 178:12-178:42
Name pattern: [core::ops::bit::{core::ops::bit::BitAnd<u64, u64, u64>}::bitand]
Visibility: public -/
@[rust_fun "core::ops::bit::{core::ops::bit::BitAnd<u64, u64, u64>}::bitand"]
def U64.Insts.CoreOpsBitBitAndU64U64.bitand : Std.U64 → Std.U64 → Result Std.U64 := _root_.dec2flt_model.ModelU64BitAnd
/-- [core::ops::bit::{impl core::ops::bit::BitOr<u64, u64> for u64}::bitor]:
Source: '/rustc/library/core/src/ops/bit.rs', lines 282:12-282:41
Name pattern: [core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor]
Visibility: public -/
@[rust_fun "core::ops::bit::{core::ops::bit::BitOr<u64, u64, u64>}::bitor"]
def U64.Insts.CoreOpsBitBitOrU64U64.bitor : Std.U64 → Std.U64 → Result Std.U64 := _root_.dec2flt_model.ModelU64BitOr
/-- [core::ops::bit::{impl core::ops::bit::Shl<u32, u64> for u64}::shl]:
Source: '/rustc/library/core/src/ops/bit.rs', lines 489:12-489:41
Name pattern: [core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl]
Visibility: public -/
@[rust_fun "core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl"]
def U64.Insts.CoreOpsBitShlU32U64.shl : Std.U64 → Std.U32 → Result Std.U64 := _root_.dec2flt_model.ModelU64Shl
/-- [core::ops::bit::{impl core::ops::bit::Shr<u32, u64> for u64}::shr]:
Source: '/rustc/library/core/src/ops/bit.rs', lines 612:12-612:41
Name pattern: [core::ops::bit::{core::ops::bit::Shr<u64, u32, u64>}::shr]
Visibility: public -/
@[rust_fun "core::ops::bit::{core::ops::bit::Shr<u64, u32, u64>}::shr"]
def U64.Insts.CoreOpsBitShrU32U64.shr : Std.U64 → Std.U32 → Result Std.U64 := _root_.dec2flt_model.ModelU64Shr
/-- [core::option::{impl core::ops::try_trait::Try for core::option::Option<T>}::branch]:
Source: '/rustc/library/core/src/option.rs', lines 2779:4-2779:64
Name pattern: [core::option::{core::ops::try_trait::Try<core::option::Option<@T>>}::branch]
Visibility: public -/
@[rust_fun
"core::option::{core::ops::try_trait::Try<core::option::Option<@T>>}::branch"]
def core.option.Option.Insts.CoreOpsTry_traitTry.branch : ∀ {T : Type}, Option T → Result (core.ops.control_flow.ControlFlow (Option core.convert.Infallible) T) := _root_.dec2flt_model.ModelOptionBranch
/-- [core::option::{impl core::ops::try_trait::FromResidual<core::option::Option<core::convert::Infallible>> for core::option::Option<T>}::from_residual]:
Source: '/rustc/library/core/src/option.rs', lines 2793:4-2793:67
Name pattern: [core::option::{core::ops::try_trait::FromResidual<core::option::Option<@T>, core::option::Option<core::convert::Infallible>>}::from_residual]
Visibility: public -/
@[rust_fun
"core::option::{core::ops::try_trait::FromResidual<core::option::Option<@T>, core::option::Option<core::convert::Infallible>>}::from_residual"]
def core.option.Option.Insts.CoreOpsTry_traitFromResidualOptionInfallible.from_residual : ∀ (T : Type), Option core.convert.Infallible → Result (Option T) := _root_.dec2flt_model.ModelOptionFromResidual
/-- [core::slice::{[T]}::first]:
Source: '/rustc/library/core/src/slice/mod.rs', lines 155:4-155:43
Name pattern: [core::slice::{[@T]}::first]
Visibility: public -/
@[rust_fun "core::slice::{[@T]}::first"]
def core.slice.Slice.first : ∀ {T : Type}, Slice T → Result (Option T) := _root_.dec2flt_model.ModelSliceFirst
/-- [core::slice::{[T]}::split_first]:
Source: '/rustc/library/core/src/slice/mod.rs', lines 198:4-198:57
Name pattern: [core::slice::{[@T]}::split_first]
Visibility: public -/
@[rust_fun "core::slice::{[@T]}::split_first"]
def core.slice.Slice.split_first : ∀ {T : Type}, Slice T → Result (Option (T × (Slice T))) := _root_.dec2flt_model.ModelSliceSplitFirst
/-- [core::str::{str}::as_bytes]:
Source: '/rustc/library/core/src/str/mod.rs', lines 498:4-498:41
Name pattern: [core::str::{str}::as_bytes]
Visibility: public -/
@[rust_fun "core::str::{str}::as_bytes"]
def core.str.Str.as_bytes : Str → Result (Slice Std.U8) := _root_.dec2flt_model.ModelStrAsBytes
/-- [dec2flt_model::num::imp::dec2flt::{impl dec2flt_model::num::imp::dec2flt::Lemire<u64> for f64}::from_u64]:
Source: 'num/imp/../../dec2flt/mod.rs', lines 263:4-266:5
Visibility: public -/
def F64.Insts.Dec2flt_modelNumImpDec2fltLemireU64.from_u64 : Std.U64 → Result F64 := _root_.dec2flt_model.ModelF64FromU64
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.
The authored explanation is included with the statement above.
Proof structure
Follow the declared dependencies to read the supporting statements and proofs.
Uses
All 45 entries
- 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
- core num FpCategory
- core ops arith Div
- core ops arith Mul
- core ops arith Neg
- core ops bit BitOr
- core ops bit Shl
- core ops bit Shr
- num float parse FloatErrorKind
- num float parse ParseFloatError
- num imp dec2flt Dec2FltAssemblyTrace
- num imp dec2flt Dec2FltTrace
- num imp dec2flt Lemire
- num imp dec2flt common BiasedFp
- num imp dec2flt common ByteSlice
- num imp dec2flt decimal Decimal
- num imp dec2flt decimal seq DecimalSeq
- num imp traits CastInto
- num imp traits Float
- num imp traits FloatExt
- num imp traits Int
Used by
- Assumptions
- Binary64FastPathIndexCasts
- DecimalDigitLexScale
- DecimalDigitTrimDecomposition
- DecimalLexeme
- DecimalSeqBulkLaneSubtraction
All 165 entries
- Assumptions
- Binary64FastPathIndexCasts
- DecimalDigitLexScale
- DecimalDigitTrimDecomposition
- DecimalLexeme
- DecimalSeqBulkLaneSubtraction
- DecimalSeqI32HCastCongruence
- DecimalSeqLittleEndianLane
- DecimalSeqRenderedSplit
- F64 Insts CoreCloneClone
- F64 Insts CoreMarkerCopy
- F64 Insts CoreOpsArithDivF64F64
- F64 Insts CoreOpsArithMulF64F64
- F64 Insts CoreOpsArithNegF64
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64 MAX EXPONENT DISGUISED FAST PATH
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64 MAX EXPONENT FAST PATH
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64 pow10 fast path
- F64 Insts Dec2flt modelNumImpTraitsFloatExtU64
- F64 Insts Dec2flt modelNumImpTraitsFloatExtU64 from u64 bits
- F64 Insts Dec2flt modelNumImpTraitsFloatExtU64 integer decode
- F64 Insts Dec2flt modelNumImpTraitsFloatU64
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 BITS
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 EXP MASK
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 INFINITY
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 LARGEST POWER OF TEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 MAX EXPONENT ROUND TO EVEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 MIN EXPONENT ROUND TO EVEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 NAN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 NEG INFINITY
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 NEG NAN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 SIG MASK
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 SIG TOTAL BITS
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 SMALLEST POWER OF TEN
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 classify
- F64 Insts Dec2flt modelNumImpTraitsFloatU64 to bits
- NumberHelperLeadingPointSplit
- NumberHelperSharpFractionBytes
- DecimalFoldBounds
- DecimalBinaryExponentBound
- PositiveScaleErrorTransport
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice offset from
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice read u64
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice write u64
- SourceValidByteSlice
- U64 Insts CoreOpsBitBitAndU64U64
- U64 Insts CoreOpsBitBitOrU64U64
- U64 Insts CoreOpsBitShlU32U64
- U64 Insts CoreOpsBitShrU32U64
- U64 Insts Dec2flt modelNumImpTraitsCastIntoI16
- U64 Insts Dec2flt modelNumImpTraitsCastIntoI16 cast
- U64 Insts Dec2flt modelNumImpTraitsInt
- U64 Insts Dec2flt modelNumImpTraitsInt ONE
- U64 Insts Dec2flt modelNumImpTraitsInt ZERO
- num float parse FloatErrorKind Insts CoreCloneClone
- num float parse FloatErrorKind Insts CoreCloneClone clone
- num float parse FloatErrorKind Insts CoreCmpEq
- num float parse FloatErrorKind Insts CoreCmpEq assert fields are eq
- num float parse FloatErrorKind Insts CoreCmpPartialEqFloatErrorKind
- num float parse FloatErrorKind Insts CoreCmpPartialEqFloatErrorKind eq
- num float parse FloatErrorKind Insts CoreMarkerStructuralPartialEq
- num float parse ParseFloatError Insts CoreCloneClone
- num float parse ParseFloatError Insts CoreCloneClone clone
- num float parse ParseFloatError Insts CoreCmpEq
- num float parse ParseFloatError Insts CoreCmpEq assert fields are eq
- num float parse ParseFloatError Insts CoreCmpPartialEqParseFloatError
- num float parse ParseFloatError Insts CoreCmpPartialEqParseFloatError eq
- num float parse ParseFloatError Insts CoreMarkerStructuralPartialEq
- num imp dec2flt Lemire MAX MANTISSA FAST PATH default
- num imp dec2flt Lemire MIN EXPONENT FAST PATH default
- num imp dec2flt biased fp to float
- num imp dec2flt common BiasedFp Insts CoreCloneClone
- num imp dec2flt common BiasedFp Insts CoreCloneClone clone
- num imp dec2flt common BiasedFp Insts CoreCmpEq
- num imp dec2flt common BiasedFp Insts CoreCmpEq assert fields are eq
- num imp dec2flt common BiasedFp Insts CoreCmpPartialEqBiasedFp
- num imp dec2flt common BiasedFp Insts CoreCmpPartialEqBiasedFp eq
- num imp dec2flt common BiasedFp Insts CoreDefaultDefault
- num imp dec2flt common BiasedFp Insts CoreDefaultDefault default
- num imp dec2flt common BiasedFp Insts CoreMarkerCopy
- num imp dec2flt common BiasedFp Insts CoreMarkerStructuralPartialEq
- num imp dec2flt common BiasedFp zero pow2
- num imp dec2flt common is 8digits
- num imp dec2flt dec2flt
- num imp dec2flt dec2flt with trace
- num imp dec2flt decimal Decimal Insts CoreCloneClone
- num imp dec2flt decimal Decimal Insts CoreCloneClone clone
- num imp dec2flt decimal Decimal Insts CoreCmpEq
- num imp dec2flt decimal Decimal Insts CoreCmpEq assert fields are eq
- num imp dec2flt decimal Decimal Insts CoreCmpPartialEqDecimal
- num imp dec2flt decimal Decimal Insts CoreCmpPartialEqDecimal eq
- num imp dec2flt decimal Decimal Insts CoreDefaultDefault
- num imp dec2flt decimal Decimal Insts CoreDefaultDefault default
- num imp dec2flt decimal Decimal Insts CoreMarkerCopy
- num imp dec2flt decimal Decimal Insts CoreMarkerStructuralPartialEq
- num imp dec2flt decimal Decimal can use fast path
- num imp dec2flt decimal Decimal try fast path
- num imp dec2flt decimal INT POW10
- num imp dec2flt decimal seq DecimalSeq DECIMAL POINT RANGE
- num imp dec2flt decimal seq DecimalSeq Insts CoreCloneClone
- num imp dec2flt decimal seq DecimalSeq Insts CoreCloneClone clone
- num imp dec2flt decimal seq DecimalSeq Insts CoreCmpPartialEqDecimalSeq
- num imp dec2flt decimal seq DecimalSeq Insts CoreCmpPartialEqDecimalSeq eq
- num imp dec2flt decimal seq DecimalSeq Insts CoreDefaultDefault
- num imp dec2flt decimal seq DecimalSeq Insts CoreDefaultDefault default
- num imp dec2flt decimal seq DecimalSeq Insts CoreMarkerStructuralPartialEq
- num imp dec2flt decimal seq DecimalSeq MAX DIGITS
- num imp dec2flt decimal seq DecimalSeq MAX DIGITS WITHOUT OVERFLOW
- num imp dec2flt decimal seq DecimalSeq left shift
- num imp dec2flt decimal seq DecimalSeq right shift
- num imp dec2flt decimal seq DecimalSeq round
- num imp dec2flt decimal seq DecimalSeq trim
- num imp dec2flt decimal seq DecimalSeq try add digit
- num imp dec2flt decimal seq count trailing zeros
- num imp dec2flt decimal seq number of digits decimal left shift
- num imp dec2flt decimal seq number of digits decimal left shift TABLE
- num imp dec2flt decimal seq number of digits decimal left shift TABLE POW5
- num imp dec2flt decimal seq parse decimal exponent
- num imp dec2flt decimal seq parse decimal seq
- num imp dec2flt decimal seq parse digits into seq
- num imp dec2flt fpu fpu precision set precision
- num imp dec2flt lemire compute float
- num imp dec2flt lemire compute product approx
- num imp dec2flt lemire full multiplication
- num imp dec2flt lemire power
- 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 inf nan
- num imp dec2flt parse parse inf nan INF 3
- num imp dec2flt parse parse inf nan INF 8
- num imp dec2flt parse parse inf nan NAN
- 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
- num imp dec2flt pfe empty
- num imp dec2flt pfe invalid
- num imp dec2flt slow parse long mantissa
- num imp dec2flt slow parse long mantissa MAX SHIFT
- num imp dec2flt slow parse long mantissa NUM POWERS
- num imp dec2flt slow parse long mantissa POWERS
- num imp dec2flt slow parse long mantissa closure
- num imp dec2flt slow parse long mantissa closure Insts CoreOpsFunctionFnMutTupleUsizeUsize
- num imp dec2flt slow parse long mantissa closure Insts CoreOpsFunctionFnMutTupleUsizeUsize call mut
- num imp dec2flt slow parse long mantissa closure Insts CoreOpsFunctionFnOnceTupleUsizeUsize
- num imp dec2flt slow parse long mantissa closure Insts CoreOpsFunctionFnOnceTupleUsizeUsize call once
- num imp dec2flt slow parse long mantissa closure Insts CoreOpsFunctionFnTupleUsizeUsize
- num imp dec2flt slow parse long mantissa closure Insts CoreOpsFunctionFnTupleUsizeUsize call
- num imp dec2flt table LARGEST POWER OF FIVE
- num imp dec2flt table N POWERS OF FIVE
- num imp dec2flt table POWER OF FIVE 128
- num imp dec2flt table SMALLEST POWER OF FIVE
- num imp traits Float EXP BIAS default
- num imp traits Float EXP BITS default
- num imp traits Float EXP MIN default
- num imp traits Float EXP SAT default
- num imp traits Float INFINITE POWER default
- num imp traits Float SIG BITS default
Inspect related source (44)
- from_u64 · dec2flt/mod.rs:263 Program Rust
- FloatErrorKind · num/mod.rs:18 Program Rust
- ParseFloatError · num/mod.rs:13 Program Rust
More program dependencies (11)
- 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
- Decimal · dec2flt/decimal.rs:32 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
- 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 29 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
- Preamble
- core num FpCategory
Technical checking records
Local closure summary
{
"node": "Preamble",
"closure_version": "patch_c_v1",
"active_decl_hash": "2bf9c25b895e20dd9efe782ae173e2b07b55020eed41a7d9b63b2ae9e1db007c",
"active_statement_hash": "",
"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-15",
"boundary_theorems": {},
"strict_theorem_deps": {},
"strict_definition_deps": {
"F64": "ec4e25fbaf4e11d4",
"ModelF64Classify": "9c9ddb3b4cf86599",
"ModelF64Clone": "c92d957a2ba84f8f",
"ModelF64Div": "f8da2e585a4f4183",
"ModelF64ExponentMask": "dd78d96c85772fab",
"ModelF64FromBits": "ff88211b2f4e3b25",
"ModelF64FromU64": "97a26f5bc593ff7a",
"ModelF64Infinity": "172db09b8469299c",
"ModelF64MantissaDigits": "9ceb415358831f73",
"ModelF64MantissaMask": "f032e37b6075f6ae",
"ModelF64Mul": "ba97971db93c2ae2",
"ModelF64Nan": "a89b59f88db8f8ee",
"ModelF64Neg": "78a021de99eb373b",
"ModelF64NegInfinity": "b864f7e29d56aacc",
"ModelF64ToBits": "c343cb036bddb817",
"ModelOptionBranch": "c55e273482c8c0a1",
"ModelOptionFromResidual": "b18dfd5fb697360c",
"ModelSliceFirst": "a31394b3c1080f71",
"ModelSliceSplitFirst": "e0444ce8d3dc9bf8",
"ModelStrAsBytes": "024fe35b4dbfa9a3",
"ModelU64BitAnd": "eb74a8c9ac4951e2",
"ModelU64BitOr": "9fa839002e65deb5",
"ModelU64Shl": "f8169f3bd8c380fc",
"ModelU64Shr": "5a1f6ef5eee20143",
"ModelU8IsAsciiDigit": "67d39fc6c37cfc41",
"core_num_FpCategory": "c43614ff2149ecf2"
}
}Prose assessment
{
"label": "Recorded Sound: VerifierPass",
"assessment_status": "VerifierPass",
"fingerprint_relation": "matches current fingerprint",
"assessment_fingerprint": "preservation-v1:c7d8babbca391eca7cbf24098197274d206088d995fbd18069793300b655d02e",
"current_fingerprint": "preservation-v1:c7d8babbca391eca7cbf24098197274d206088d995fbd18069793300b655d02e",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Pass",
"sound_status": "Pass"
}