Assumptions

Lean checked

Definition and explanation

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

Definition

For the already-selected nightly-2026-06-01 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

This equation binds Aeneas's pointer-sized scalar parameter to the source environment already selected for this extraction. Its 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

The current manifest's 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.
Rust's pointer-sized integer documentation says that both 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.
The installed Aeneas 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.
Substituting 64 in the installed scalar definitions gives unsigned range 0\leq n\leq 2^{64}-1 and signed range -2^{63}\leq z\leq 2^{63}-1, with the same bitvector interpretations as Rust's selected 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.
The existing definition SourceValidByteSlice states exactly the length condition \ell\leq 9223372036854775807, with no byte-value or UTF-8 restriction. The pinned Rust slice and string evidence in reference/model-evidence/source-valid-byte-slice.txt gives that byte-size limit and the separate string UTF-8 invariant. Aeneas's installed 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.
The binding therefore preserves the selected source observations while retaining the exact configured domain. In particular it does not add a grammar condition to full-domain helper goals, change A=3458764513820540928 or B=576460752303421440, identify complete strings with their unsigned bodies, or assume normal return, rounding, record bounds, component inhabitability, or dispatcher compliance. The equation describes the same environment for both polarities. It is staged for correspondence, environment-preservation soundness, assumptions eligibility, and human ratification; no dependent GOAL proof is claimed here.

Requirement: assembly correspondence

The input pair and cast/shift/OR assembly use fixed-width fields and binary64 words. Their widths and unrestricted domain are unchanged by the shared environment argument above.

Requirement: classification determinism

The mathematical classification and numeric content range over every finite byte list, independently of Rust pointer width; this domain remains unbounded.

Requirement: classification significand digit

The grammar and its digit positions are unchanged for every finite byte list; no source-representability condition is introduced into this mathematical goal.

Requirement: classification totality

Every finite byte list remains in the mathematical classification domain, including lists beyond the Rust slice bound. The binding is noninterfering.

Requirement: dispatch abstract composition

The shared argument preserves complete-string A/B bounds and unsigned-body helper domains. Special, native, integer, assembly, and unrestricted slow contracts retain their original domains; contract inhabitability and abstract normal-output existence remain conclusions to prove, not supplied premises.

Requirement: dispatch component compliance

Concrete string bytes and sign-stripped helper bodies retain the selected 64-bit length/offset interpretation. The A/B preconditions, actual call agreement, full-domain slow obligation, and inhabited compatible package requirements are unchanged and are not asserted by the width equation.

Requirement: exponent value agreement

Exact and accumulated exponents and their rounding targets are mathematical observations of the same finite byte lists. Neither the pre-update 2^{59} fold nor ordinary mathematical exponent meaning is changed.

Requirement: integer correct or defer

All i64 exponents, u64 mantissas, raw pairs, and the on-normal-return conclusion remain fixed-width and unrestricted. The environment binding assumes no normal return or rounding fact.

Requirement: native correct or defer

Every Decimal record and its fixed-width binary64 operations remain in scope. The ordinary/disguised paths and their on-normal correctness-or-defer requirements, including the many-digits conclusion, are unchanged.

Requirement: number helper acceptance

Every nonempty source-valid unsigned numeric body of length at most A remains representable with identical bytes and 64-bit lengths. No exponent-digit limit or normal-Some premise is added.

Requirement: number helper accumulated value

The unsigned numeric slice A-domain, full-significand accumulated value, returned fields, and exact/half-open representation conclusions are unchanged. The shared width argument fixes only lengths and indices, not representation.

Requirement: number helper record bounds

Every nonempty source-valid slice remains in the full domain, without an A/B or grammar restriction. The on-return negative/mantissa conclusion is unchanged and is not a consequence assumed in this binding.

Requirement: number helper rejection

All nonempty source-valid nonnumeric bodies of length at most A retain their bytes, including malformed tails after exponent updates stop. The binding adds neither a grammar restriction nor a normal-None premise.

Requirement: parser accumulated rounding

The complete numeric-string A-domain and actual full-significand accumulated value retain their meanings. Acceptance, rounding, and lexical signed zero/infinity observations are not supplied by the environment premise.

Requirement: parser equal target rounding

The complete-string A-bound and equality of ordinary/accumulated rounding targets are unchanged. Both targets and the lexical sign use the same bytes.

Requirement: parser exact rounding

The complete numeric-string B-bound is preserved, not replaced by a body bound. The ordinary unbounded explicit-exponent meaning and binary64 rounding observation are unchanged, including signed zero and infinity.

Requirement: parser infinity

Every source-valid infinity literal and optional sign retains the same bytes and full source domain. Fixed-width infinity words and lexical sign are unaffected; acceptance is not assumed.

Requirement: parser invalid rejection

Every invalid complete Rust string of length at most A remains representable. Whole-string grammar, UTF-8, normal Err, and checked-panic distinctions are unchanged, including tails after exponent accumulation stops.

Requirement: parser nan acceptance

All source-valid NaN spellings and signs retain their bytes and full domain; the fixed-width NaN classification observation is unchanged.

Requirement: parser non nan results

Every successful non-NaN-literal source string remains in the unrestricted source domain. The binding changes neither its classification nor the fixed-width returned-word observation.

Requirement: parser numeric acceptance

Every numeric complete Rust string within A retains its original optional sign and arbitrary exponent suffix. Its body remains no longer than that complete string; no extra length or exponent restriction is introduced.

Requirement: parser numeric sign

The full on-success numeric-string domain, lexical sign, and returned binary64 sign observation are unchanged, including zero and infinity.

Requirement: parser selected exponent

The full on-success numeric-string domain and actual selected final raw-pair observations are unchanged. The binding asserts no biased-exponent bound and invents no pair for a direct-return path.

Requirement: parser selected magnitude sign

Actual selected pairs and pre-sign assembly words are the same fixed-width observations. The unrestricted on-success domain and clear-sign-bit requirement are unchanged, not asserted by the width premise.

Requirement: parser signed zero

Every accepted exact-zero source-valid numeric string remains in the full domain, without A/B. Exact zero, lexical sign, and the two binary64 zero words retain their meanings.

Requirement: parser totality

Every complete Rust string within A, including empty, sign-only, and invalid strings, retains its bytes and UTF-8 condition. The binding asserts neither termination nor absence of checked panic nor normal float/error output.

Requirement: rounding determinism

The domain remains every nonnegative real, with the same binary64 magnitude rounding relation; no pointer-sized carrier is involved.

Requirement: rounding totality

Every nonnegative real and the finite/infinite rounding targets remain in the unchanged mathematical domain, independently of platform width.

Requirement: slow accumulated rounding

Every source-valid unsigned numeric slice remains in the full unrestricted source domain, without A/B. Saved counts, cancellation-aware i64 subtraction, saturating addition, and final point clamp retain their source operations; the binding assumes no normal return or diagnostic rounding result.

Requirement: special helper infinity

Every source-valid byte slice and either separate sign retain their full domain; identical keyword bytes and signed infinity observations are used.

Requirement: special helper nan

Every source-valid byte slice and either separate sign retain their full domain; unsigned NaN keyword recognition and NaN classification are unchanged.

Requirement: special helper rejection

All source-valid non-special byte slices and either sign remain in scope, without UTF-8 or A/B conditions. Rejection and normal-return behavior remain requirements to establish, not assumptions.

Download Lean source · Download TeX source

Proof structure

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

Used by

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