Aeneas slice-observation evidence

Historical predecessor record
-----------------------------
The original record below belongs to predecessor extraction
45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9,
not the current extraction. Its commands, tools, settings, hashes, excerpts and
raw results are retained under their original identities. References to
"frozen" below describe that predecessor, not the current source/extraction.
Checked CURRENT applicability, exact declarations/signatures/Rust symbols,
binding digests and complete current call inventories are recorded separately
in reference/model-evidence/P89_T1_PrimitiveApplicability.txt.


Commands were run from the repository root unless an explicit -C directory is
shown.  The Aeneas checkout and executable used for the frozen extraction are:

  git -C /home/leanagent/pv_spike/tools/aeneas rev-parse HEAD
  fa699427cdfa8f604b891fb0223ef42883dd7dc4

  sha256sum /home/leanagent/pv_spike/tools/aeneas/bin/aeneas
  9f446d2aaf59e8e705e36d05cb993f1c6ab0e97f8dc6fd2f19907a86ede30922

  sha256sum /home/leanagent/pv_spike/tools/aeneas/backends/lean/Aeneas/Std/Slice.lean
  c941826e8da78e1c517cae719b9f58e64671331957cce0b3c22c321a6c62c328

At that commit, Aeneas/Std/Slice.lean:22 defines:

  def Slice (α : Type u) := { l : List α // l.length ≤ Usize.max }

Thus an Aeneas Slice is an ordered List subtype.  Its val field is the complete
ordered element list; the subtype property is the Usize.max length bound.

  sha256sum /home/leanagent/pv_spike/tools/aeneas/documentation/aeneas-overview.md
  8ba474e55ec3375f6eaccc7532715e29dc1d0d6473423a02100bb805a446c3a7

At that commit, aeneas-overview.md:240 states the translation convention that
shared borrows (&T) become plain T parameters and that the value may be copied.
The summary table at line 432 additionally describes the resulting value as
immutable.  Returned shared byte references therefore have no mutable backward
continuation or separately observable identity in the generated model.

The Rust source is the configured nightly-2026-06-01 core library:

  sha256sum /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs
  354992a6a3d69a0185eef9044a07ea5180e767bdb467aef55e69ee3d44317840

Its exact observation bodies at core/src/slice/mod.rs:155-156 and 198-199 are:

  pub const fn first(&self) -> Option<&T> {
      if let [first, ..] = self { Some(first) } else { None }
  }

  pub const fn split_first(&self) -> Option<(&T, &[T])> {
      if let [first, tail @ ..] = self { Some((first, tail)) } else { None }
  }

These bodies and the same core source hash are also pinned in
reference/model-evidence/binary64-boundary.txt.  The complete configured Rust
&[u8] domain, including the isize::MAX byte-length condition, is independently
pinned in reference/model-evidence/source-valid-byte-slice.txt.

The frozen generated module has this identity:

  sha256sum generated.lean
  45b5027c42f9bb25bf22d3573fdb0f93784cf93d2a7b92ef1a7687c8f66c25a9

Its external signatures at generated.lean:316 and 323-324 are:

  axiom core.slice.Slice.first {T : Type} :
    Slice T → Result (Option T)

  axiom core.slice.Slice.split_first {T : Type} :
    Slice T → Result (Option (T × Slice T))

The following command enumerates every declaration or call occurrence:

  rg -n 'core\.slice\.Slice\.(first|split_first)' generated.lean

Raw result:

  316:axiom core.slice.Slice.first {T : Type} : Slice T → Result (Option T)
  323:axiom core.slice.Slice.split_first
  4290:  let o ← core.slice.Slice.split_first s_ref
  4338:    let o ← core.slice.Slice.split_first s
  4591:  let o ← core.slice.Slice.split_first s1
  4613:    let o1 ← core.slice.Slice.split_first s2
  4812:  let o ← core.slice.Slice.first body

All five calls infer T = Std.U8:

* generated.lean:4288-4290 declares parse_scientific with
  s_ref : Slice Std.U8 and calls split_first on s_ref.
* generated.lean:4332-4338 declares try_parse_19digits_loop.body with
  s : Slice Std.U8 and calls split_first on s.
* generated.lean:4582-4591 declares parse_partial_number with
  s : Slice Std.U8; try_parse_digits returns s1 : Slice Std.U8, which is the
  first split_first argument.
* In the same parse_partial_number definition, every branch defining s2 returns
  either s1 or the Std.U8 tail s_next.  Hence the call on s2 at line 4613 also
  has T = Std.U8.
* generated.lean:4803-4812 declares dec2flt_with_trace; body is returned by
  core.str.Str.as_bytes, whose signature at line 330 is
  Str → Result (Slice Std.U8), and first is called on body.

The adapted sources containing the corresponding calls are pinned by:

  sha256sum crate/dec2flt/parse.rs crate/dec2flt/mod.rs
  50d95265e5b1af43ee4f0033c9ff8d1b8dfd62d766ab14668ceec19955adba1f  crate/dec2flt/parse.rs
  ecadc1d7df05dfda85fcf99fc45da7e40cb36aa9736d12d1b3a75f60f532907d  crate/dec2flt/mod.rs

The five exact Rust call sites are:

  crate/dec2flt/parse.rs:65
      if let Some((c, s_next)) = s.split_first() {
          let digit = c.wrapping_sub(b'0');
          ...
          s = s_next;

  crate/dec2flt/parse.rs:127
      if let Some((&c, s_next)) = s.split_first() {
          negative = c == b'-';
          if c == b'-' || c == b'+' { s = s_next; }

  crate/dec2flt/parse.rs:177
      if let Some((&b'.', s_next)) = s.split_first() {
          s = s_next;

  crate/dec2flt/parse.rs:194
      if let Some((&c, s_next)) = s.split_first() {
          if c == b'e' || c == b'E' { s = s_next; ... }

  crate/dec2flt/mod.rs:365
      let Some(&c) = body.first() else { ... };

Thus every call is on &[u8].  The call sites either destructure the shared byte
reference into a copied byte or invoke an immutable u8 method through it, and
they use the shared tail only as the next immutable slice.  There is no mutation
through a returned reference and no pointer or lifetime identity observation.
Consequently, at every frozen GOAL-facing call site, erasing the
shared-reference lifetime/aliasing data retains the observed U8 value and, for
split_first, the same ordered suffix.
