Preamble

Lean checked

Definition and explanation

This explanation was written alongside the formalization to describe the statement and its reasoning.

Preservation argument

Claim

Fix Rust nightly-2026-06-01 and target 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.
For 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.
For 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

The fresh extraction record reference/model-evidence/setup-reproduction.txt pins all six tool executables by SHA-256, gives the empty Cargo/Charon/Aeneas argument configuration, and records the effective development cfg. Its Cargo, Charon, and Aeneas executions all exit successfully. Fresh Aeneas output is byte-for-byte the frozen 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.
The paired meanings of all 24 owners make that composition premise concrete. The binary64 carrier is the complete raw-word representation of F64. Its clone, precision constant, NaN and infinity constants, field masks, classification, bit conversions, arithmetic, negation, and asserted integer conversion have respectively the meanings in ModelF64Clone, ModelF64MantissaDigits, ModelF64Nan, ModelF64Infinity, ModelF64NegInfinity, ModelF64ExponentMask, ModelF64MantissaMask, ModelF64Classify, ModelF64ToBits, ModelF64FromBits, ModelF64Mul, ModelF64Div, ModelF64Neg, and ModelF64FromU64. The four bounded word operations have the Rust meanings in ModelU64BitAnd, ModelU64BitOr, ModelU64Shl, and ModelU64Shr; the digit test has the meaning in ModelU8IsAsciiDigit. Option branching and residual return have the meanings in ModelOptionBranch and ModelOptionFromResidual; first-element and split-first observation have the meanings in ModelSliceFirst and ModelSliceSplitFirst; and string-to-byte observation has the meaning in ModelStrAsBytes. These are exactly the semantic operations substituted for the inventoried externals.
The source carrier used below is the arbitrary-byte, length-at-most 2^{63}-1 slice of SourceValidByteSlice. The abstract domains and observations used in the GOAL applications are those of DecimalGoalVocabulary; their concrete UTF-8 string predicate, lexical grammar, decimal values, binary64 rounding and classification, sign, and unrestricted raw-pair assembly are those of DecimalGoalVocabularyDefault. Thus the composition cites the paired meanings that connect its source domains and observations to the GOAL vocabulary, rather than inferring those meanings from boundary inventory alone.
The complete upstream-to-crate inventory and its source hashes are recorded in reference/model-evidence/source-adaptation-delta.txt; its exact aggregate byte diff is retained in reference/model-evidence/source-adaptation-delta.diff. The supplied 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.
The same delta record compares each constant, table entry, and specialized decoder with its source expression. The retained decoder is the source default after substituting the 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.
All other changed bodies are syntax-directed rewrites. Indexed digit scans test the same byte, use the same wrapping subtraction and accumulator update, advance by the same amount, and stop at the same first nondigit as the source closures and 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.
Finally, direct comparison of the supplied dispatcher with the instrumented body shows identical sequencing. Both strip at most one sign, reject empty or sign-only input, call the numeric helper first and the special helper only after its 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.
The exact source carrier condition is separately evidenced by reference/model-evidence/source-valid-byte-slice.txt: on this 64-bit target a byte slice has arbitrary bytes and length at most 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

This obligation observes 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

This obligation uses 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

This obligation uses the same full string domain outside the complete numeric and special grammar. Empty, sign-only, numeric-None, special-None, and returned Err branches remain distinct in the preserved public result and trace.

Requirement: parser nan acceptance

For every source-valid signed or unsigned NaN spelling, the relation preserves the public Ok discriminant, exact returned word, and the separate NaN classification, including the final sign operation for negative nan.

Requirement: parser infinity

For every source-valid infinity spelling, the relation preserves the lexical sign, direct special return, and exact positive or negative infinity word.

Requirement: parser non nan results

For every source-valid non-NaN input, the relation preserves both the success word and its NaN classification on every public branch; it therefore does not replace this observation by mere Result success.

Requirement: parser numeric sign

For numeric strings on the full source-valid domain, the public word, lexical sign, pre-sign magnitude word, sign-application fact, and final word are all preserved, including zero and infinity words.

Requirement: parser signed zero

This obligation observes the exact returned word for accepted exact-zero numeric literals. Exact word preservation retains the distinction between positive and negative zero and the trace retains the lexical sign application.

Requirement: parser exact rounding

This obligation concerns the exact word returned by 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

This obligation uses only normally successful numeric traces that select a pair. The relation preserves whether a pair is selected, both of its fields, the selected-pair handoff to assembly, and excludes direct special/native returns from that observation.

Requirement: parser selected magnitude sign

On the same traced source executions, the selected fields and the exact pre-sign assembled word are preserved separately from later lexical sign application, so the sign bit is an unchanged source observation.

Requirement: dispatch abstract composition

The abstract dispatcher ranges over bytes of every source-valid Rust string and names the lexical, native, first/second integer, comparison, fallback, assembly, and sign stages. The complete preserved trace has exactly those stages, guards, operands, results, and direct-return distinctions. This preservation supplies the source interface only; it does not assume that any component contract is inhabited or that the composed conclusion holds.

Requirement: dispatch component compliance

The concrete compliance obligation compares actual components and trace calls with the abstract interface. Numeric/special/slow calls preserve the full source-valid slice domain without UTF-8, while whole dispatch preserves the full UTF-8 string domain; every recorded call operand, guard, Option, pair, assembly word, and sign result is retained without assuming compliance.

Requirement: parser accumulated rounding

For every accepted source-valid numeric string, the exact public word and lexical sign are preserved. The source's bounded exponent updates and all full-significand fallback state are unchanged, while equality with the accumulated-value target remains the obligation rather than a preservation premise.

Requirement: parser equal target rounding

This obligation has the same public parser domain and word/sign observations, plus a mathematical equality-of-targets premise. Source preservation leaves that premise and both target notions untouched and preserves only the actual parser computation to which the bridge is applied.

Requirement: number helper acceptance

This obligation calls 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

This obligation uses the same full nonempty byte-slice domain outside the unsigned numeric grammar. Exact Option and panic/normal preservation retains the source rejection observation without restricting arbitrary bytes.

Requirement: number helper record bounds

For every source-valid nonempty byte slice and every returned record, all four 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

For every source-valid unsigned numeric byte slice, the returned exponent, mantissa, sign, and many-digits flag and the source's bounded exponent accumulation are preserved. The claimed equality or interval is not assumed by this model relation.

Requirement: special helper infinity

This obligation calls 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

On every source-valid unsigned NaN keyword slice and either sign, the relation preserves the helper's Option, exact word, and NaN classification; it does not identify all NaN bit patterns.

Requirement: special helper rejection

For either sign and every source-valid byte slice outside all three keywords, the relation preserves panic/normal and None/Some without an added UTF-8 condition or an assumed rejection conclusion.

Requirement: native correct or defer

This obligation ranges over every unrestricted 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

This obligation ranges over all 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

This obligation uses 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

This obligation calls 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

This is a mathematical statement about every finite byte string, including strings outside the Rust slice-length bound. The package and extraction relation changes no classification definition and imposes no source-validity condition on that separate finite-list quantifier; hence it is genuinely noninterfering rather than a parser-surface preservation claim.

Requirement: classification determinism

The unique-classification and unique-parsed-content relations are authored mathematical vocabulary over unrestricted finite byte strings. No source adaptation, Rust carrier restriction, trace field, or primitive binding alters either relation or its quantifier.

Requirement: classification significand digit

The significand-digit conclusion depends only on the mathematical numeric grammar over finite byte strings. The extraction relation neither defines that grammar from parser success nor restricts it to source-representable strings, so this GOAL is unaffected.

Requirement: rounding totality

This is a mathematical statement over every nonnegative real and the binary64 magnitude-target relation. The fixed Rust toolchain and exact-word carrier identify binary64 words but add no premise to the real domain and do not assume existence of a target; source adaptation is noninterfering.

Requirement: rounding determinism

The statement quantifies over all nonnegative reals and any two targets in the same authored rounding relation. Extraction and trace instrumentation neither choose a target nor modify that relation, so uniqueness remains an independent mathematical obligation.

Requirement: exponent value agreement

This is a mathematical implication comparing the exact and source-accumulated values of every numeric lexeme when its two explicit exponents agree. The adaptation preserves the source's bounded accumulation where executed, but it does not identify the two authored exponent functions, restrict the lexeme quantifier, or assume their rounding 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.

Download Lean source · Download TeX source

Proof structure

Follow the declared dependencies to read the supporting statements and proofs.

Used by

All 165 entries

Explore this dependency tree

Inspect related source (44)
More program dependencies (11)
Standard-library dependencies (30)

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

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
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"
}