0.6 proof status and deferred soundness goals
0.6 is now scoped as a feature, library and stabilization release; see the release notes and revised roadmap. The broad original proof goal is deferred to future research, not discharged. This page retains the gap assessment against that original goal. References to its gates or blockers describe unfinished soundness work, not prerequisites for the smaller release. In particular, proving the production checker implementation correct is not added as a gate. The implementation may remain trusted and be tested against the specified rules. Counts of theorems, passing tests or PRs are not a percentage of the required soundness result.
Principal blocker to the original soundness goal
Section titled “Principal blocker to the original soundness goal”There is not yet one specified-Core typing judgment whose derivations establish runtime ownership and borrow safety across the required language. Pure typing, quantity control traces and guarded heap operations are useful existing parts, but proving them separately does not establish their composition for arbitrary Core programs accepted under the specified rules.
The native Loan64 mixed checker now shares source typing and recursive resource projection in one actual history. Its binding-retaining machine derives an exact reader-frame/lease inventory at every prefix and derives explicit Lend callback origin typing from the input judgment. Literal-Decide named Index also has a constructed read execution under explicit local allocation/slot alignment. These narrow the composition gap: general runtime value/control-stack interpretation, dynamic bounds, owner accounting and the original consistency obligations remain unfinished. See the current work record.
Recursive runtime capture/erasure alignment is now preserved at every machine prefix. A dynamic IfLt/Index bridge derives its read guard from actual compared slots, and a checked Buffer/Lend function has source typing and exact safe execution/accounting for every bounded count/index with representable allocation size. These are components and a parameterized function result, not the missing whole-language fundamental theorem.
All-prefix numeric value/capture/heap bounds now construct I64 typing of actual Index integers at the original closed Loan64 source type. Scalar Lend readers also admit an actual-value closing of the continuation body. Literal and dynamic Index execution obtain heap validity, reader inventory and numeric bounds from actual reachability; source/control typing and allocation/slot/loan association remain input invariants of the local statements. The common source/resource/value/heap fundamental theorem is still unfinished.
Dependent Lend resource projections now agree with both retained continuation owner aliases and actual close/activation transitions. Free through either alias reaches the same heap object; its guard is characterized by the remaining reader frames, including nested readers. The source judgment preserves the remaining code’s original ghost result type and its projection has zero further owner demand. General admission must still supply the local code/slot/frame associations, exclude consuming an owner with an outer reader, and connect all actual tail executions to those abstract resource traces. These local results do not establish whole-kernel ownership soundness or native refinement.
Actual nested-reader return now resumes a source-authorized outer Borrow using the token that survives the inner close. Source permission comes from the specialized dependent continuation check; original captured slots identify its concrete owner, and reachability supplies token distinction and liveness. Both retained bindings and Borrow execute before the original-type tail entry. Checking rejects reborrow through either restored-owner alias if no outer source permission remains. The general closed-admission/control/slot/resource fundamental theorem and the original whole-kernel obligations remain open.
Fresh allocating readers now reconstruct their scalar widths, declared Buffer type conversion and separate first-result linear obligation from the actual Loan64/resource checks. Actual allocation supplies a live owner of the right length, distinct from the leased original owner, and a derived Free guard. Byte-size overflow remains explicit. This is a local value/heap interpretation, not exclusive ownership or the missing whole-language fundamental theorem.
That fresh result now flows through a constructed sixteen-step reader and continuation execution that separately frees it and the original owner. The source projection then has zero demand for both resources and the remaining code keeps its original ghost type. Byte overflow and an outstanding outer reader of the old owner remain explicit outcomes; this is not the general admission-to-runtime ownership or arbitrary-tail resource theorem.
An all-prefix owner-provenance invariant now includes every saved frame and recursive closure capture. No old captured owner can alias the next allocation, including released owners. Actual allocation events reconstruct current owner length/payload without a supplied allocation snapshot. This read-only heap provenance does not grant liveness/exclusive authority to retained aliases or interpret all dependent source lengths; the common source/resource/value/heap fundamental theorem and whole-kernel obligations remain unfinished.
A fresh owned reader result now flows into a second actual Lend and named Borrow/Index. Source typing supplies the strict bound and exact reader type; twenty constructed transitions supply the result slot, concrete allocation length and both lease lifetimes. No read-success/output-typing or allocation- association oracle is supplied. Byte overflow remains explicit and the current input code/control/frame association still needs the general fundamental theorem. This does not complete arbitrary dependent computation/ownership or native implementation refinement.
For this returned-Buffer path, inner close, both owner releases and scalar return now have a constructed thirty-two-step execution at the original outer result type. Owner provenance and concrete reader inventory derive the fresh Free guard. Old-owner reader conflicts and byte overflow remain explicit outcomes; general admitted-program exclusion/interpretation and the whole- kernel fundamental theorem remain unfinished.
Actual natural arguments now close dependent function-body types at their observed numerals while the machine retains original source provenance. The mixed checker supplies the initial empty value closing; reachability supplies numeric bounds and actual entry preserves direct scalar slots and old loans. Effectful argument origins are not assumed convertible to the returned numeral. General closure/control/capture/heap interpretation remains unfinished.
A computed U64 argument can now drive a retained-variable allocation body. Six real transitions construct a Buffer whose length matches the dependent signature at the observed argument, with source-derived fill width and runtime- derived freshness. Original argument provenance is retained and byte overflow remains explicit. General source-result interpretation and closure/control/ resource preservation are still required for the whole-kernel theorem.
The value closing also handles I64 arguments and a computed second closure that captures its earlier U64 size. A closed resource-admitted curried program computes size and fill with separate Free/arithmetic effects, then uses the generic retained-slot allocation proof. Its actual Buffer length/payload are derived after thirty-seven steps. This does not assume raw conversion of the original effectful source result annotation to its actual-value instance. General source-result/control/resource interpretation remains unfinished.
Evidence in the current code and statements:
CoreBridgeBetaTyping.HasTypehandles the existing pure scalar/array/evidence and function grammar. It does not haveBuffer,Ref,Alloc,LendorFreerules and its variable lookup is unrestricted ghost-mode lookup.HeapLeases.Steprequires liveness, lease authority and no active borrow at deallocation. Its invariant theorem cannot by itself establish that typing supplies those preconditions.Quantity.Controland its erasure theorem concern projected resource traces. They are not the full Core runtime interpretation of those traces.- The earlier
ScopedLendresult is scalar by syntax. ButCore.infer’sLendrule callsoutlived, which permitsBuffer,Backand dataIndresults as well as scalars.core_lowerpasses both the reader result and the original owner to the continuation. An owned reader result must therefore be a second independently accounted-for resource, not a scalar or an alias of the owner. MirCallerValidation.Acceptedchecks agreement of independently supplied source and target graphs. Its conditional theorem is not a proof that the general lowering function produces such a target for every typed source.
The existing direct contribution is a declarative mixed-result Lend rule on the
existing Core constructor graph, reusing the heap/lease semantics. Its
continuation typing consumes resources by their identity, clears every lexical
alias on consumption, and permits arbitrary finite allocation/free sequencing.
This same judgment now includes Lend recursively in continuations and handles
any selected capability among multiple live owners; alias/borrow authority is
proved from the lexical context. Readers can return a scalar or allocate a fresh one-cell buffer
while the original owner’s lease is active. The same judgment now distinguishes
owner identities, scalar value slots and consumed names, carries the actual
scalar result through subsequent Lends, and proves bounded scalar results
together with ownership safety under explicit initial value bounds. Closing an owned-result lease transfers the new buffer and the original
owner as two distinct capabilities; a scalar result retains only the original
capability and adds its actual scalar value. Primitive step guards and safe transfer
must follow from the typing and environment invariants, not be supplied as an
assumed safe event trace or an Accepted certificate.
This is a direct extension for an omitted specified rule, not the full solution.
It still restricts buffer shape and reader expressions. Continuation nesting
creates sequential lease regions, not nested active-reader Lends. The remaining common
judgment must account for recursive data/field ownership, Back, more general
reader results and contexts, recursion, and their substitutions and runtime
interpretations. Extending syntax without those connections would not close
the principal blocker.
Structural connection still required
Section titled “Structural connection still required”The largest remaining difference is not another missing scalar test. Actual
Core.infer shifts dependent variable types, distinguishes runtime/erased
lookup, and dependent_lend substitutes the borrowed original and returned
owner into the reader/continuation before inference. Pure Raw.Beta.HasType
already has dependent typed substitution, while the graph ownership judgment
uses owner/scalar slots. A common proof must relate those interpretations; merely
renaming the ownership judgment HasType would not do so.
The open scalar computation bridge now interprets mixed lexical scalar entries as the existing pure typing context and provides its closing substitution. Owners and consumed names are unavailable in that context. Its generic substitution result applies to existing open Raw terms and dependent result types. A finite executable graph grammar retains actual scalar let binders and realizes their computation in the existing pure reduction relation, feeding the value into the same ownership continuation rule.
This is the first direct reuse of that pure substitution/evaluation proof at this ownership execution boundary. Immediate owned-argument binding additionally transfers the selected capability to a formal parameter while invalidating its earlier lexical aliases. This is not general substitution of owned functions, Buffer/Ref dependent types or Borrow values in the full Raw typing language. The executable grammar is structurally terminating first-order I64 lets; there is no assumed successful evaluation in typing. General higher-order termination, arithmetic traps and U64/I64 distinctions cannot be inferred from this fragment.
The next runtime rule is ordinary owned application, which differs materially
from Lend. Actual Core.infer requires a linear lambda parameter to be used
exactly once; uses counts the runtime argument and any captured use of the
original owner separately. Therefore an immediate Buffer1 application cannot
simply add another usable alias as Lend does. The common judgment transfers
lexical authority to the new formal parameter, tombstoning every old alias of
that capability while preserving the concrete owner list and unrelated captures.
This supplies a resource-sensitive binding rule for actual App/Lam/Var nodes,
not a separate evaluator or an assumption that an arbitrary substitution is safe.
The runtime fragment still requires a direct lambda, an owned variable argument, a closed one-cell Buffer annotation. The common judgment now has scalar and owned result modes: returning the last capability preserves its live identity, while releasing all other tracked resources. A fresh consuming continuation can then receive that returned capability without reviving old lexical aliases. This does not cover higher-order/partial application, general owned-producing App arguments, or dependent Buffer lengths and result-type substitution. The producer/consumer theorem composes their execution relations at a fresh capability boundary. A recursive syntactic application extension now connects that boundary to actual direct Buffer1 App/Lam nodes with an App-shaped owned argument. The producer accounts for the entire current resource inventory, returning one capability; the body receives only its parameter; existing Types/Exec derivations supply the leaves. This does not justify dropping captures or interpreting arbitrary open/dependent applications. The next framed extension supports retained owner and scalar captures using an explicit static prefix partition: the producer cannot access the reserved frame, and the body cannot access consumed aliases. Frame preservation is derived from execution and conservation, not a supplied untouched-trace premise. This closes the singleton-body restriction for that checked partition, not arbitrary partition inference/coherence, general closures or dependent substitution. The framed judgment is now closed under the existing Free, allocation, scalar/owned Lend, scalar-let and owner-binding continuations. Calls beneath those constructors participate in the same totality, heap safety and accounting statements rather than stopping at an opaque old derivation. Structural expansion preserves the previous typing and execution on exact graphs; it does not add new dependent types or eliminate the explicit partition plan. A plan-free lexical execution bridge now separates that static proof plan from the runtime meaning of the supported graph. Concrete captured owner/scalar bindings remain in their lexical positions, including consumed aliases; the static context revokes access instead of pretending the runtime deleted them. Simulation into an independently deterministic lexical evaluator gives the same value, exact events and final heap for any supported typed plan with the same initial interpretation. Existing totality supplies execution, and safety transfers to every plan-free execution of the fragment. This closes the fixed-plan operational ambiguity, not partition inference or the remaining dependent-language coverage gaps. The first runtime-length extension now refines the existing uniform read-only heap with exact object lengths and read indices. Open U64 index expressions have lexical substitution laws; source Buffer/Ref annotations and Lt evidence are interpreted against the same closing values. A sized source subset derives allocation/read/free safety and dependent owner-result lengths. Its closing-instance judgment is separate from the previous full Buffer1 fragment: it supports prefix-partitioned direct framed calls and fresh-result owned Lend, but does not generalize arbitrary nonuniform buffers, Store, or full dependent Pi/result substitution. The checked example uses one graph across arbitrary runtime n/i inputs rather than replacing n with constants in the graph. The sized judgment now also supports direct owned transfer, framed owned application and a restricted owned-result Lend whose fresh result length is independent of the original buffer length. These rules participate recursively in the same safe-execution and accounting theorem. Static prefix partitions revoke producer/body authority without changing runtime lexical positions; the plan-free evaluator remains deterministic. Retained captures preserve their lengths and payloads. The reader is still specifically a fresh allocation initialized by an in-bounds read, not an arbitrary effectful reader, and the judgment remains semantic closing-instance typing rather than full dependent Pi preservation. Those remaining omissions remain part of the common-typing gap rather than optional checker implementation refinement.
The common binary Data judgment now supports computed direct-lambda application with independent static prefix partitions of Data and sized Buffer capabilities. Argument typing consumes only its selected slots; the continuation receives the actual returned tree plus retained captures, while every consumed alias loses authority. General execution lemmas preserve the retained trees’ stored field interpretations and the Buffers’ exact lengths, so body safety is derived rather than assumed. The same totality/every-run theorem includes this rule, including applications under Case’s pending parent shell. This closes a resource-binding composition gap in the fixed binary fragment, not general dependent Pi substitution, partition inference, recursive functions, native refinement or whole-language exact accounting. See the rule and proof boundary.
That same common judgment now has an allocation-ID conservation theorem over all its rules: releases plus the whole returned tree footprint equal tracked inputs plus fresh allocations, per identity. The returned footprint uses the same final stored-tree witness as ownership. Every nonreturned tracked identity is freed exactly once; final live-domain equality additionally requires initial coverage by input resources and frame. This is allocation accounting for the restricted binary Data/sized Buffer fragment, not logical exactly-once use of empty capabilities, lease-token accounting or full-language quantity soundness. The accounting proof boundary records the remaining general typing, representation and lowering gaps.
Constant-result binary Case now also has a recursive source-view typing judgment. It checks the scalar/Data motive against both arbitrary derivable branch bodies, then elaborates every source rule into that same common ownership judgment. The old empty-constructor-only nil restriction is no longer required by this new certified path. Whole-source/family validity and direct export annotations are separately required by its checked-entry certificate. This typing result connects to the adapted abstract evaluator; by itself it does not establish production-checker refinement, independent source operational preservation or dependent-motive support. The original strict adapter and checked production snapshot remain intact. See the source rule boundary.
An independent inductive source constructor-view execution relation now covers this fixed binary fragment. Forward correspondence preserves values, traces and final abstract states; reflection requires source typing. Typed totality and accounting transfer from the common Data runtime, and determinism extends those guarantees to every observed source run. The model shares abstract heap/store operations and scalar execution with the common runtime. This is not parser or export fidelity, production-checker soundness, concrete layout/allocator safety, or full compiler refinement. See the source execution boundary.
The symbolic Buffer judgment is now connected to fixed binary Tree source rules through value-independent mixed contexts. Arbitrary suitable closings derive the existing concrete source typing, actual source execution totality, and safe steps, final heap validity and resource accounting for every run. Case field binding and split application preserve lexical index shifts and retire consumed aliases. Direct uniform Buffer allocation and release now recurse through the common judgment, preserving Data and pending frames and revoking every selected Buffer alias. One symbolic Alloc → Case → Free → Data derivation has all-length totality and every-run accounting; split application also retains the Buffer across Case/Drop and releases it later. This remains the binary Tree, constant-motive fragment; Store, general dependent Pi, recursive functions, arbitrary readers and full native soundness remain open. See mixed source typing.
The common compact Data target now integrates the existing compact Core runtime for general Buffer producers and effectful scalar arguments. Symbolic typing derives structural lowering witnesses for all supported common constructors, including dynamic lengths, branch, application and owned-lend combined with Data Case/Free. Separate common/Core masks and the proved environment compaction square retain Data in the common runtime while removing it from Core inputs. Typed execution preserves exact values, traces, heap, lengths and Data cells; only returned Core values enter new common binders. The earlier Data-only and atom/direct-allocation targets remain unchanged. This is not native common-target lowering or general dependent-context compaction. See the compact Core integration boundary.
The sized composed fragment now also has a compact target syntax and runtime whose values have no ghost constructor. A source-slot mask computes retained indices; true comparison branches remove their proof binder rather than push a placeholder. A fuel-bounded structural compiler checks both branches and produces an erasure derivation on success. Constructive execution correspondence in both directions preserves values, events and heaps, transferring the existing typing-derived ownership guarantees. This is physical ghost-slot compaction for this fragment, not erasure adequacy for every specified Core rule or a proof that the production compiler emits this target. Whole-syntax coverage is an explicit extra premise: closing-instance typing alone can constrain only the branch taken by that instance.
The retained dynamic-buffer fixture now has a parametric theorem over its
actual 19-local, 11-block MIR snapshot. A checked U64/U64/I64 entry frame and
an initialized-prefix loop invariant establish termination, the exact conditional
result, one allocation and one release, and an empty live heap for every
n ≤ 4095, i < 2^64, and nonnegative value < 2^63. Source, compact runtime
and MIR results agree, with an explicit allocation/free observation connecting
their different event vocabularies. This is one fixed source/MIR pair quantified
over inputs, not only a collection of closed execution checks. The exporter
association is still tested rather than proved, allocation is abstract and
successful, and this is not a theorem for the general lowering algorithm.
A structural Lean lowering first handled allocation constructors from the compact runtime, including dynamic variables and lexical natural lets. It generates fresh local declarations and CFG blocks, validates the completed MIR, and constructs a forward execution with a related owner, heap and retained environment. Composition with the proved graph compactor covers source roots that erase to this constructor. This supplies the allocation-fragment translation used by the composition below. It does not establish arbitrary continuation safety, correspondence to the native compiler’s implementation, backward equivalence or full 0.6 lowering coverage.
The constructed translation now composes scalar/natural values, lexical aliases, application, allocation and release into complete scalar-returning MIR programs. Its structural compiler generates the declarations, control-flow blocks and return code; the complete MIR validator checks the result. Source typing supplies the safe release trace in the typed bridge. A totality theorem constructs both the Core execution and terminating generated MIR execution under successful compaction/lowering, related initial values/heaps, input representation-kind agreement and source resource adequacy. Representation-kind agreement connects the source environment to the initial MIR local declarations; whole-code validation alone does not establish the kinds of their runtime contents. The resource premise bounds final allocated identities, cumulative cells and stored payloads, including released objects. Dynamic input/result width bounds are separate, explicit hypotheses when the machine-width corollary is used. The same construction now also covers the compact scalar and owned-result lend forms. Their source live/index/lease evidence justifies generated pointer-offset and load instructions; an owned-result read initializes a fresh buffer before its continuation.
Conditional lowering
now constructs comparison/switch control flow and shared scalar, natural or
owner result slots. Both arms are constructed and checked; only the selected arm
executes. The unchanged sized-composition Core graph retains both comparisons
in its generated MIR execution and totality theorem. The constructor covers the
current compact SizedErasure.Term vocabulary under the stated premises, not
all specified Core rules. This is the translation implemented in Lean, not a
correspondence theorem for compiler/core_lower.jh or compiler/body.jh.
More general lender forms, the broader source grammar, native implementation
correspondence and backward equivalence remain open.
Deferred original requirements versus existing evidence
Section titled “Deferred original requirements versus existing evidence”| Original requirement | Existing result | Still needed for the original gate |
|---|---|---|
| Dependent-rule stabilization | Preservation fixtures, rejection suites and targeted fixes | Continue source/Core audits; do not equate passing fixtures with a metatheorem |
| Consistency and pure preservation | Restricted pure dependent calculus; conversion, substitution, progress with explicit overflow | Cover the rest of the specified pure reductions and typing rules |
| Exactly-once ownership and borrow non-escape | Abstract quantity traces; guarded heap/lease invariants; restricted scalar and owned-result rules | The common specified typing-to-runtime ownership theorem described above |
| Erased values agree with pure values | Pure payload erasure, restricted lease-free heap correspondence, and physical ghost-slot compaction for the sized composed fragment | Coverage of the broader specified runtime grammar and its erasure association |
| Core lowering against Lean MIR semantics | Actual bounded MIR instructions/CFG semantics, conditional closed-pair validation, parametric execution correspondence for one dynamic-buffer snapshot, and constructed forward lowering of typed allocation/release/lend programs with conditional result joins in the restricted compact grammar | Lowering correspondence covering the required runtime fragment beyond the current compact grammar; native implementation association remains an explicit boundary |
| Published accepted-program guarantee | Individual scoped statements with trust boundaries | One release statement whose premises and covered rules actually satisfy the original gates |
Native checker, exporter association where used, MIR-to-LLVM, LLVM and runtime assumptions must be stated. Native regression successes remain implementation evidence, not replacements for missing proofs. The existing scoped results do not yet justify describing the whole 0.6 Core or its executables as verified.
Symbolic checked MIR lowering totality
Section titled “Symbolic checked MIR lowering totality”SymbolicMirLoweringTotality.typed_source_total now derives computed compaction,
checked MIR lowering, validator acceptance, actual scalar ABI argument admission,
and total abstract target execution from the existing symbolic typing judgment.
The compact structural proof covers every constructor and both branch arms,
including owned lends. The symbolic judgment now includes prefix-partitioned
direct framed calls and the existing fresh-allocation owned-lend reader. Both
close to sized typing and preserve the full structural erasure and source
totality statements. Common Data source examples compose these rules with Case;
general higher-order application, nested active borrowing and dependent Pi
preservation remain outside this result.
The theorem retains closing/inventory agreement, empty initial heap ownership and layout, input type/width/slot conditions, numerical local/block storage limits, and abstract runtime resource bounds. It does not establish arbitrary full-Core, CommonData, external pointer ABI, native compiler/exporter, LLVM, or physical allocator correctness. See the precise theorem boundaries.
Type-directed captured value contexts now distinguish U64/I64 runtime representations, construct numeric lookup typing and preserve that information through actual scalar entry. Source-typed allocation reads arbitrary size/fill slots and constructs a Buffer at the same value-closed allocation result type, or explicit byte overflow. The input context still needs general admission/ control-stack preservation; representation-head agreement alone supplies no heap liveness, exclusive resource authority or lease interpretation.
Actual captured comparisons now construct canonical erased Lt evidence and preserve arbitrary original branch-body types and value contexts. Erased entry also preserves named-reader loan slots; a true branch executes source-authorized Borrow using the live lease derived from the actual nested reader inventory. General admission-to-control/loan interpretation and Index heap-size authority remain open.
A captured allocation now constructs its actual owner argument’s value context and dependent function-body typing. Six transitions allocate/bind; nine reach a named Lend with a derived live Buffer, new lease and exact reader inventory including outer readers. Byte overflow stays explicit. Runtime argument/output typing and successful allocation/Lend are not caller certificates. The common all-control/resource invariant and reference/Index heap interpretation remain unfinished; specialized readers must retain their authentic checked read, without assuming typing at arbitrary callback arguments.
Actual reader activation now constructs its reference value context and closed body typing from the authentic specialized checked read. Generic and specialized full Loan64 cases retain their own source premises. No arbitrary-argument callback typing is added; source loan slots and the actual nested reader inventory supply reference lease liveness. The all-control fundamental theorem and captured dependent heap-size/resource interpretation remain unfinished.
Captured source Buffer types now describe immutable actual allocation lengths, including released aliases without live/exclusive authority. Allocation argument entry constructs that size context; actual heap execution preserves its old identities. Full comparison-bound evidence and named Borrow permissions then construct dynamic Index’s physical length, live lease, ten-step execution and same closed result type without allocation snapshots or selected slot values. Borrow also constructs a live reference at the exact source dependent Buffer type. These local context theorems still need the common mixed-admission/ control/resource fundamental theorem and general evidence/result semantics.
An explicit reader now reads through its actual retained reference argument with source-derived physical length and literal strict bound. Six constructed transitions return an integer at the authentic checked-read result type while preserving nested reader inventory and value/owner-size contexts. Allocation snapshots, arbitrary callback typing and read-success/output-typing certificates are not inputs. General source/control/owner-slot association and arbitrary evidence/result semantics remain unfinished.
An eleven-step composition now reads the actual reference, closes its reader and binds the observed integer and owner into the original continuation. The same full Lend/resource input constructs canonical value/size contexts, exact closed original result typing, restored loan slots and owner-alias/resource agreement. Outer readers remain in the exact inventory. Generic callbacks use real inversion and specialized cases retain checked reads/restores; no output typing or intermediate-success oracle is supplied. Later arbitrary-body execution and the common all-control/resource authority invariant remain open.
The actual full resource projection now reconstructs a dynamic reference reader’s original source judgment, specialized CODE read and zero/one owner contract. Captured numeric values and actual Buffer length are derived, then the real reference argument reads in eleven transitions or enters the original else body in six. Nested reader inventory and canonical contexts remain intact. No generic callback, numeric/bound/allocation snapshot or output/success certificate is supplied. General control/resource authority is still open.
The checked dynamic reference reader now composes sixteen actual transitions through read, close and canonical scalar/owner continuation binding. Its exact closed inferred result type, value/size contexts, source loans, owner aliases and resource correspondence are reconstructed; outer readers remain in the inventory. False comparisons preserve original-type six-step else entry. No callback/output or intermediate-success oracle is supplied. The complete source judgment/grammar is unchanged; all-control authority and general Free conflict exclusion remain open.
For actual fresh-argument histories, earlier caller-frame provenance now excludes remaining readers of the new owner and constructs Free’s guard. Twenty transitions read, close, bind, release through either owner alias and return the actual I64 at the original inferred source type. Heap validity, outer reader inventory, captured size information and zero residual owner demand are preserved. No no-reader/Free-success oracle is supplied. Birth/ frame association and general all-control resource authority remain unfinished; the fresh case does not exclude every arbitrary old-owner reader conflict.
Original function resource checking now exposes its exact internal body receipt, including Lend’s checker-derived judgments and zero/one owner contract. Reader/handoff/release proofs consume this receipt while retaining their full- query APIs. This is internal proof reuse, with mixed admission, guards and the full grammar unchanged; allocation-to-reader and all-control associations remain unfinished.
The pending-call source judgments and original function resource query now construct allocation, owner binding, named Lend and reader closure entry, including previously assumed birth/frame and owner-slot associations. Thirty transitions read, close, bind, release and return the actual fill at the source signature’s canonical argument instance. False comparisons retain typed else entry; byte overflow remains explicit. A closed full Loan64/resource admission uses the theorem for a forty-eight-step release/return. Pending-call context construction from arbitrary admission, arbitrary else/tail execution, all- control authority and native refinement remain unfinished.
The original full call judgment and its own resource query now recover the function/argument typing and exact internal body receipt. Three actual call transitions construct the pending frame; the composed thirty-three-step path allocates, reads, closes, frees and returns the actual fill at the EXACT original closed call type, preserving enclosing reader inventory and the heap trace. False comparisons retain typed nineteen-step else entry; byte overflow faults after eight steps. The closed dependent example uses this theorem after scalar entry, removing its separate allocation/function checks and computed pending frame. Call-boundary value/size/loan contexts and general mixed-admission/control authority remain open, together with arbitrary else/tail execution, old-owner conflicts, universe consistency, full preservation and native refinement.
One original mixed declaration check in its authentic earlier history now constructs three-scalar entry typing, value/size/loan contexts and the original call’s internal resource receipt. The composed forty-eight-step execution returns the actual fill at I64, closes its lease, frees the fresh owner and preserves heap validity, reader inventory and heap events. False comparison reaches typed else code with its lease alive after thirty-four steps; byte overflow faults after twenty-three steps without heap changes. The closed example uses this mixed admission rather than independent component checks. This local scalar/call case leaves arbitrary control authority, old-owner conflicts, else/tail execution, general consistency/preservation and native refinement unfinished; the full grammar and completion obligations remain.
At the actual fresh reader boundary, an original integer else body now has a sixteen-step typed literal/close/Free/return proof alongside the twenty-step payload-read path. Literal range and Free’s guard are derived from source judgments, exact reader inventory and earlier frame provenance. Outer readers are retained. This suffix still needs composition through allocation and mixed entry; arbitrary else bodies and the general whole-kernel obligations remain unfinished.
Literal-fallback completion now composes through allocation, the original full call and authentic mixed admission. The theorem includes original runtime Loan64 typing of the closed caller and runtime I64 typing of either return: forty-eight steps for the fill/read branch or forty-four for the original else literal. Both close the lease, free the fresh owner, preserve valid heap and reader inventory, and give exact heap events. Literal fallback range is derived; byte overflow remains an explicit twenty-three-step fault. No local context, branch/output/success or fallback-bound oracle is supplied. General saved-frame resource authority, old-owner conflicts, arbitrary else/tails, consistency, full preservation and native implementation refinement remain unfinished.
Enclosing-reader zero budgets and a converse physical/source loan association now derive old-owner Free guards from the original Lend query and reachable reader inventory. The nine-step scalar suffix and twenty/sixteen-step guarded reader outcomes preserve original result typing, outer inventory and all old source tail budgets, without fresh-birth or no-reader/success premises. Mixed declaration admission initializes this authority for the full syntax; sequences, branches, scopes and literal-call budget opening have proved transport rules. These remain conditional local operation results: arbitrary control/closure preservation and canonical resource-index handling of unused aliases are still open, together with general ownership/borrow soundness and the other whole- kernel consistency/preservation/native-refinement obligations.
Canonical source-index views now preserve actual aliases’ exact stored values and provenance. The authentic original Lend query derives canonical continuation CODE typing and budget at the original result type; five actual close/binding steps construct its association with the two retained runtime slots. The same quantity check derives the Free alias and the nine-step release retains runtime return typing and canonical source tail authority. No separate source loan for every duplicated slot, alias choice, output typing or successful suffix is an input. This resolves the continuation-boundary alias issue, while arbitrary control/closure/call preservation and the whole-kernel obligations remain open.
Canonical variable CODE typing now selects actual aliased runtime values and
derives scalar widths/typing. The binding-retaining Lean runtime now handles
returned-owner alias reborrowing: exact lexical readers keep priority, and an
alias can select an enclosing named reader of the same concrete object.
General lookup proofs retain actual reader scope, owner identity and reachable
lease liveness; no enclosing named reader still produces inactiveBorrow.
NativeBindingMachineAliasReborrowBoundary preserves full mixed admission and
now proves return of 7 with both reads/closes, final Free and no outstanding
leases. This repairs the concrete model blocker. General source/control/loan
preservation and whole-kernel consistency/preservation/native refinement remain
unfinished.
Canonical Borrow now uses OwnerLoanSlots: source permissions retain the
physical owner and an enclosing named reader without equating source and
runtime lexical keys. This association is constructed initially and transported
through noninjective alias rebasing, ordinary bindings, reader entry and reader
body activation. Full source Borrow typing constructs the actual next step and,
with the canonical owner-size context, its reference at the exact original
closed requested type. General preservation across arbitrary closures, control
frames and reader returns remains open.
Canonical literal-Decide Index now derives its five-transition read through either retained owner alias from the full source judgment, canonical owner sizes and scoped owner authority. Source evidence supplies bounds and the actual allocation length; reachable numeric/reader invariants supply live leases and runtime-mode integer typing at the original requested result type. No alias-key equality, selected owner/lease, allocation snapshot, numerical guard, successful read or output-typing certificate is assumed. Computed indices/general evidence and all-control context preservation remain open.
Captured IfLt comparisons now support the same noninjective canonical aliases. Source CODE typing, slot alignment and value meanings derive actual index and length values; true comparisons construct erased evidence, exact owner length, a live lease and the ten-transition read with runtime-mode original-type integer typing. False comparisons enter the actual else body in five transitions, retaining its original canonical type, value/size/loan contexts, alignment and alias view. Entry associations remain explicit; arbitrary computed terms, general evidence and full control-stack preservation remain open.
Ordered LoanScope now preserves each source-loan occurrence’s concrete reader
identity through alias rebasing, binders and reader close. Duplicate source
frames remain positional; closing derives outer authority and surviving leases
without a post-close permission certificate. Independently, reference-token
provenance and reader-entry capture snapshots hold for every actual prefix,
including faults: a reader’s saved continuation and complete outer stack carry
only older tokens. The original Lend judgment supplies Outlived for its reader
result annotation. Canonical source-variable execution then constructs a real
result and two-step close with no occurrence of the closing token anywhere in
the resulting control or stack. This covers a source-derived variable return;
arbitrary reader computations, returned-value interpretation preservation and
the full admission/control-stack fundamental theorem remain open.
Variable reader results now enter the actual continuation in six transitions, including close and both retained bindings. The original full Lend/resource query constructs canonical CODE at the original requested result type, actual value/size contexts, ordered outer loan scope and absence of the closed token. Scalars retain their observed numeral; owned results retain their checked ghost source expression and physical size without inventing an owner literal. Owned-result converse LoanCoverage and exclusive resource accounting remain open. The current head-only ValueKind also needs a richer interpretation for accepted Refine, Back, Array and family values before a full fundamental theorem.
Saved Lend snapshots now retain a distinct canonical source view through later variable handoff. Actual raw annotations/bodies execute unchanged while two real bindings compose the old alias map with the new owner restoration. Original-type canonical CODE, value/size contexts, ordered loan scope and closed-token exclusion are constructed without typing the raw aliased snapshot or equating runtime and source reader keys. General reader-entry specialization, arbitrary control preservation and owned-result exclusive accounting remain open.
The existing higher-kind source grammar now reconstructs its intrinsic type expression and concrete finite denotation directly from complete Loan64 typing and genuine raw Lend conversion. Authentic mixed-history/declaration admission corollaries supply the actual source derivation. No earlier typing judgment, old-conversion certificate, semantic candidate or output realization is an input. The preexisting Recognized coverage premise remains explicit; this is a Loan64 bridge for that grammar, not general logical consistency.
Canonical reader entry now derives the reference-binder ghost view and the specialized original-context CODE read from original Lend typing. A strengthened captured alias view retains every source capture in the actual saved snapshot; recursive reference bounds then transport through composed owner restoration. Plain alias views alone cannot justify that transport, as a formal unused-source- reference counterexample demonstrates.
Stored Buffer references now carry original closed source types, physical lengths and actual live leases. Reader entry constructs this relation; saved-snapshot close transports it. An enclosing reader protects older lease entries through arbitrary nested execution intervals, including partial/fault prefixes. Entry reference contexts and actual saved-frame shapes derive endpoint reference liveness without an endpoint liveness certificate. Full source/control preservation, owned-result coverage and exclusive resource accounting remain open.
Actual Loan64 ghost substitutions over the existing higher-kind Recognized grammar now reconstruct intrinsic replacements and their semantic valuation map. The source theorem derives exact substituted syntax, denotation coherence, substituted HasType and original-kind conversion. This retains explicit source coverage and does not prove general dependent consistency. The combined checkpoint passes 949 Lake jobs, 9,156 distinct declaration audits and generated fixtures.
Restricted common Case composition
Section titled “Restricted common Case composition”The integrated Case work connects relocated entry to common resource contexts, proves conditional branch finish and restricted register safety, and supplies literal bodies and installed finish execution for restricted fixtures. The child-consumption integration constructs a BodyResult at a valid Node-body boundary with two child images, no buffers/sizes, installed drop/call/literal sites, fresh destinations and sufficient stack budgets. Its separate enclosing source theorem supports finite recursive trees under explicit lexical, heap and ownership premises.
The closed source/target connection includes source typing and evaluation, a 24-tick target run and scalar result 7. Source and target free different identities and represent Nil differently; trace equality is not claimed. This handwritten restricted graph is not a general lowering theorem, parametric simulation, production export, return ABI or general recursive Case linker. These results narrow the research gaps without completing the original goal.