Source-valid byte-slice and string domain evidence ================================================== Scope and pinned identities --------------------------- All commands below were run from the repository root. The configured compiler is: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc Its SHA-256 is: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b The exact identity commands were: R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc sha256sum "$R" "$R" --version --verbose "$R" --target x86_64-unknown-linux-gnu --print cfg | LC_ALL=C sort | \ rg 'target_(arch|pointer_width)' Their relevant raw output was: rustc 1.98.0-nightly (14210df0e 2026-05-31) binary: rustc commit-hash: 14210df0e27ccd7d9e6a05b8085cbd438e4bbc65 commit-date: 2026-05-31 host: x86_64-unknown-linux-gnu release: 1.98.0-nightly LLVM version: 22.1.6 target_arch="x86_64" target_pointer_width="64" Retained configured-target probe -------------------------------- The retained probe source is reference/model-evidence/source-valid-byte-slice-probe.rs. It was compiled for the configured target and executed with this exact command, which depends only on the retained source and the pinned compiler: R=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc P=reference/model-evidence/source-valid-byte-slice-probe.rs B=/tmp/dec2flt-source-valid-byte-slice-probe O=reference/model-evidence/source-valid-byte-slice-probe.out "$R" --edition 2024 --target x86_64-unknown-linux-gnu -C opt-level=0 \ -C debuginfo=0 -C overflow-checks=on -C debug-assertions=on \ --crate-name source_valid_byte_slice_probe "$P" -o "$B" sha256sum "$R" "$P" "$B" "$B" > "$O" sha256sum "$O" cat "$O" The actual hashes were: 162c2a2d2d89b94e5bc2ec6b179a49d12a7ea1527db9ff1df20b5d09c432924b /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/bin/rustc b75928df9e68445ef508e70db9b4d11ec4411a2210cd057e1ef0f2ebe06f8bcd reference/model-evidence/source-valid-byte-slice-probe.rs 87dc3b9b7a46506d2205503d8aa007b451c452968af48d1ba5961a821934ee55 /tmp/dec2flt-source-valid-byte-slice-probe 01a71f1529010d8652ee73ee42a63dfcd93a4019d9739732d33f69d14ab588b4 reference/model-evidence/source-valid-byte-slice-probe.out The retained raw output file contains exactly: arch=x86_64 usize_bits=64 isize_max=9223372036854775807 u8_size=1 Pinned core-library source -------------------------- Let: S=/home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src The exact commands used to identify and inspect the relevant core sources were: sha256sum "$S/slice/mod.rs" "$S/num/int_macros.rs" "$S/str/mod.rs" sed -n '798,808p' "$S/slice/mod.rs" sed -n '43,51p' "$S/num/int_macros.rs" sed -n '495,510p' "$S/str/mod.rs" The file identities are: 354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840 core/src/slice/mod.rs 3896304e7cb14628e293134ac41fd18be2b5369bedc02d1c6a7408bd8c755a31 core/src/num/int_macros.rs 284b4c147b5d0497ce9146f6b96e564f196aed10411a62cdccf5fc5243d40f78 core/src/str/mod.rs The relevant exact excerpt of slice/mod.rs, line 801, is: // - The size of the slice is never larger than `isize::MAX` bytes, as The relevant exact declaration in num/int_macros.rs, line 47, is: pub const MAX: Self = (<$UnsignedT>::MAX >> 1) as Self; The relevant exact excerpts of str/mod.rs are its same-layout byte-slice conversion at lines 498-500: pub const fn as_bytes(&self) -> &[u8] { // SAFETY: const sound because we transmute two types with the same layout unsafe { mem::transmute(self) } } and its UTF-8 invariant at lines 507-510: /// The caller must ensure that the content of the slice is valid UTF-8 /// before the borrow ends and the underlying `str` is used. /// /// Use of a `str` whose contents are not valid UTF-8 is undefined behavior. Conclusion ---------- The configured target has 64-bit usize/isize and one-byte u8 elements. The pinned signed-MAX definition therefore gives isize::MAX = 2^63 - 1 = 9223372036854775807, and the pinned slice rule bounds a slice by that many bytes. For &[u8], this is exactly an element-count bound; the rule adds no UTF-8 condition or other restriction on the byte contents. The pinned str source exposes the identical-layout &[u8] bytes and separately requires them to be valid UTF-8. Consequently the exact configured domains are arbitrary &[u8] bytes of length at most isize::MAX, and Rust str bytes of length at most isize::MAX that are valid UTF-8. No smaller convenience bound is introduced.