Definition and explanation
This explanation was written alongside the formalization to describe the statement and its reasoning.
Definition
x86_64-unknown-linux-gnu extraction environment, the platform
parameter used by the installed Aeneas model satisfies
\mathtt{System.Platform.numBits}=64.Lean definition
Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.
import Tablet.Preamble
open Aeneas Aeneas.Std Result ControlFlow Error
-- [PV UNDER-MODEL ASSUMPTIONS]
-- Worker-authored staged assumptions live between markers:
-- -- BEGIN UNDERMODEL ASSUMPTION <id>
-- axiom <name> : <type>
-- -- END UNDERMODEL ASSUMPTION <id>
-- BEGIN UNDERMODEL ASSUMPTION dec2flt-r0003-selected-x86_64-width-64
axiom Dec2Flt.P340_T1_selected_target_numBits : System.Platform.numBits = 64
-- END UNDERMODEL ASSUMPTION dec2flt-r0003-selected-x86_64-width-64
Preservation and explanation
Natural-language argument
The status above describes the Lean proof. Its explanatory prose may remain a sketch after that proof closes.
Explanatory prose status
Prose retained as authored. The explanatory prose is preserved as it stood when captured.
Preservation argument
Claim
Usize and
Isize therefore represent, respectively, the unsigned and signed
64-bit Rust pointer-sized integers. Every configured source-valid byte
slice's contents and length remain representable, and Rust strings retain
their separate UTF-8 requirement. No source domain, A/B bound, source
operation, extracted declaration, or GOAL proposition is changed. The
binding is independent of whether a GOAL is proved or disproved.Proof
effective_tools,
resource_environment, and accepted setup audit select the pinned
nightly-2026-06-01 compiler and the x86_64 environment. The current
SETUP.md, under ``Package and extraction,'' explains that the
compiler host is the extraction target: extraction.json has empty
Cargo, Charon, and Aeneas argument lists, with no target override.
crate/rust-toolchain.toml records that channel and
x86_64-unknown-linux-gnu. The manifest also identifies the
installed Lean executable and the Aeneas library path. The current file
identities, exact record locators, and relevant excerpts are retained in the
``CURRENT selected-target width binding'' appendix of
reference/model-evidence/source-valid-byte-slice.txt.
This argument uses the current accepted environment, not a predecessor's
assumption or approval.usize
and isize have the platform pointer width; isize has signed
two's-complement interpretation. The pinned core documentation and Rust
Reference locators are in
reference/model-evidence/source-valid-byte-slice.txt.
Fresh managed invocations of the pinned compiler report host
x86_64-unknown-linux-gnu; both its default --print cfg
and explicit-target invocation report target_pointer_width="64".
Their complete raw outputs agree. The unchanged retained probe, freshly
compiled for that target with overflow checks and debug assertions enabled,
reports usize_bits=64,
isize_max=9223372036854775807, and u8_size=1; its raw
output agrees byte-for-byte with the retained output. These probes
corroborate the selected compiler environment; they neither sample parser
correctness nor establish a universal claim by testing.Scalar/Core.lean defines
UScalarTy.numBits .Usize and
IScalarTy.numBits .Isize to be exactly
System.Platform.numBits. It defines the carriers as bitvectors of
these widths, their observations as toNat and toInt, and
Usize and Isize as the corresponding scalar kinds. Thus
this primitive, rather than an independently authored parser predicate, is
the missing width parameter. Lean's installed Init/Prelude.lean
describes getNumBits as the current platform's word size, deliberately
opaque to kernel reduction, and defines numBits as its value.
Its type guarantees only the disjunction 32 or 64; the displayed default
inhabitant is not a proof of the selected equality. The manifest-selected
Lean executable is independently identified as ELF64 x86-64, consistent with
the selected Rust target. The exact installed sources, hashes, and executable
identity are in
reference/model-evidence/source-valid-byte-slice.txt.
Consequently binding this platform parameter to the already-selected
pointer width 64 is a source-environment correspondence premise, not a new
Rust language claim that every target has width 64 and not a kernel proof
obtained by native evaluation.usize/isize. Fixed-width scalar kinds have
literal widths in the same definitions, so none is changed by this binding.
The installed casts continue to truncate or extend bitvectors, and the
installed checked constructors continue to return integer-overflow failure
outside their scalar bounds. No cast is replaced by a rejecting operation
and no failure branch is removed. The appendix in
reference/model-evidence/source-valid-byte-slice.txt retains
these definitions as well as the source and pinned extraction of
ByteSlice.offset_from. For example, two source-valid byte-slice
lengths are in [0,2^{63}-1]; their unsigned-to-signed 64-bit casts preserve
the lengths, and their difference lies in
[-(2^{63}-1),2^{63}-1], within the signed range. This explains the
relevant source/model width agreement; it assumes no scan invariant or
parser return property.Slice is a list with length at most Usize.max, now
2^{64}-1. For any represented source-valid contents, the same list of
bytes supplies a model slice because
2^{63}-1\leq 2^{64}-1; its length and every element are unchanged.
Conversely the source-validity predicate still excludes lengths above
2^{63}-1 even though the model carrier permits them. This is coverage of
the abstract contents of valid references, not an assertion that every
such size can be physically allocated. Substrings and sign-stripped bodies
retain the same length bound; UTF-8 is neither added to arbitrary helper
byte slices nor removed from strings.Requirement: assembly correspondence
Requirement: classification determinism
Requirement: classification significand digit
Requirement: classification totality
Requirement: dispatch abstract composition
Requirement: dispatch component compliance
Requirement: exponent value agreement
Requirement: integer correct or defer
Requirement: native correct or defer
Requirement: number helper acceptance
Requirement: number helper accumulated value
Requirement: number helper record bounds
Requirement: number helper rejection
Requirement: parser accumulated rounding
Requirement: parser equal target rounding
Requirement: parser exact rounding
Requirement: parser infinity
Requirement: parser invalid rejection
Requirement: parser nan acceptance
Requirement: parser non nan results
Requirement: parser numeric acceptance
Requirement: parser numeric sign
Requirement: parser selected exponent
Requirement: parser selected magnitude sign
Requirement: parser signed zero
Requirement: parser totality
Requirement: rounding determinism
Requirement: rounding totality
Requirement: slow accumulated rounding
Requirement: special helper infinity
Requirement: special helper nan
Requirement: special helper rejection
Proof structure
Follow the declared dependencies to read the supporting statements and proofs.
Uses
Used by
- F64 Insts CoreCloneClone
- F64 Insts CoreMarkerCopy
- F64 Insts CoreOpsArithDivF64F64
- F64 Insts CoreOpsArithMulF64F64
- F64 Insts CoreOpsArithNegF64
- F64 Insts Dec2flt modelNumImpDec2fltLemireU64
All 170 entries
- 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
- IntegerCorrectOrDefer
- NumberHelperDigitScanSourceLength
- NumberHelperScientificPrefixSafeLength
- NumberHelperRecordBounds
- NumberHelperAdjustCountExact
- NumberHelperOffsetSourceLength
- NumberHelperExponentAddA
- UnsignedZeroRecord
- PartialLexicalCertificateA
- SignificandScanA
- DecimalRightShiftFinalLoopSemantics
- DecimalRightShiftLoop0Execution
- DecimalRightShiftMainLoopSemantics
- DecimalRightShiftPrefixLoopSemantics
- DecimalSeqDyadicShiftSemantics
- DecimalSeqRightShiftRecordSemantics
- SignificandScan
- FinishOnNormalA
- ParserSelectedExponent
- ParserSelectedMantissaBound
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice offset from
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice read u64
- SliceU8 Insts Dec2flt modelNumImpDec2fltCommonByteSlice write u64
- 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 final decimal point
- 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 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:56 Program Rust
- ByteSlice · dec2flt/common.rs:4 Program Rust
- Decimal · dec2flt/decimal.rs:32 Program Rust
- DecimalSeq · dec2flt/decimal_seq.rs:22 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
- Dec2Flt.P340_T1_selected_target_numBits
This list combines the assumptions recorded for this declaration and its dependencies. It may include assumptions used by auxiliary declarations in those modules.
Helper theorems included
Technical checking records
Local closure summary
{
"node": "Assumptions",
"closure_version": "patch_c_v1",
"active_decl_hash": "a3572769dcde737b3a270a374fc4956c83b05bc09fa47935f18065d1e6c86197",
"active_statement_hash": "",
"kernel_axioms": [
"Dec2Flt.P340_T1_selected_target_numBits"
],
"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-68",
"boundary_theorems": {},
"strict_theorem_deps": {},
"strict_definition_deps": {}
}Prose assessment
{
"label": "Recorded Sound: VerifierPass",
"assessment_status": "VerifierPass",
"fingerprint_relation": "matches current fingerprint",
"assessment_fingerprint": "preservation-v1:d1865645ac1dcc7b90db7bef9faa271d843f88af4c6383f8cb1eebd06618f0fa",
"current_fingerprint": "preservation-v1:d1865645ac1dcc7b90db7bef9faa271d843f88af4c6383f8cb1eebd06618f0fa",
"superseded_for_theorem_closure": false
}Review verdicts
{
"corr_status": "Pass",
"sound_status": "Pass"
}