HoldFastPlayground

Bounded language core and qualification contract

Design for the first-release synchronous core. Delivery plan

Decision and boundary

The synchronous core uses stable dependent values, sequenced computations, resource-indexed exits, fixed representations and modes, erased proofs and a finite loan tree. It covers fallthrough, return, Result propagation, branch-sensitive shared returns, bounded loops with break/continue, disjoint fields and nested reborrowing. Extensions preserve these contracts. Extension designs

Core judgments require checked elaboration. In particular, returned views need split, suspension and restoration laws in the selected resource interpretation. Elaboration boundary

Runtime types are machine integers, bytes, fixed records, finite sums and statically sized buffers. Calls resolve statically and parameters are explicit. Specialization fixes capacities and layouts, retaining runtime lengths and discriminants. A known total shared-call callback may specialize with its immutable environment and proved representation. General runtime higher-order functions, recursive heap data and dynamic dispatch are excluded.

Specifications and proofs use Rocq-admitted dependent families and total pure functions. Reuse a single total pure definition in contracts and implementation where the same computation is intended, rather than maintaining equivalent formulas by hand. Its represented implementation still requires range, representation and lowering laws. Proof evaluation grants no runtime authority, and clients of an opaque definition use its public laws, not its private body.

The bounded sequential fixture uses fixed storage, terminating loops and loans scoped to one activation. Revocation, DMA, publication ordering and adversarial contexts need separate platform theorems.

Fixture dependencies

Find the fixture's concrete laws in the CHERI foundation map.

Input Inspected subject Design use and limit
DescriptorCheck.v Descriptor.descriptor_check, spec_of_descriptor_check, descriptor_check_br2fn_ok The header check reads bytes within declared length, returns a status word and preserves its byte-array footprint and frame. Its relation uses BasicC64Semantics; it neither copies bytes nor proves a CHERI memory rule. Request identifiers, offsets, lengths and session permissions remain validated at use.
RingContract.v Generated layouts, operation declarations and status/lifecycle definitions An extension evaluates layout constants from this owner. The core creates no competing wire enumeration or ring lifecycle.
CopyRingService.v svc_op_record, service_conjuncts, the_staging_buffer_holds_the_declared_payload, every_held_reference_is_released_at_cleanup These constrain declared capacity and released-reference accounting. The file supplies no byte copying, memory implementation or Ztso refinement. Private staging is a reserved independent consumer, not an implementation baseline.

The parser-derived extension initializes its entire fixed private destination, copies each admitted byte once and validates the copy. The existing header check covers only the header, and a concurrently mutable source needs an atomic snapshot mechanism beyond copying. Initialization obligation

Reusable techniques

See the elaboration research comparison.

Mechanism considered Selected bounded use Missing evidence
Dependent value/computation separation and bidirectional elaboration Stable pure indices; state change in computations; declared public signatures; 2LTT closure-free staging (Kovács, ICFP 2024) and AdapTT/Observational CIC functorial transport insights Substitution, coherent elaboration, and interpretation in intensional CIC with checked transports
Aeneas/Creusot-style borrow-end reasoning and flow-sensitive analysis Finite parent/child loan tree with restoration predicates; infer ends from uses within a control-flow region; ghost-safe prophecy encoding (Creusot HAL hal-04816198), local commutation diagrams (JFLA 2026), and OxCaml mode crossing (POPL 2025 / ICFP 2026) for deeply immutable values Parent suspension, returned branches and loop joins over the actual logic; no inherited Rust/OCaml soundness claim
DeepSEA/Sepref representation and scoped refinement One explicit entry/exit representation shared by implementation and functional contract Rocq/CHERI interpretation and representation transport
Equations, Rocq-Elpi and binding generators Generate and check dependent definitions and binding operations Computation, equations and exact assumptions for the selected tuple; generated laws do not extend conversion
Modal effects and affine handlers Closed synchronous summaries only, with one effect presentation Polymorphism, scoped discharge and handlers remain later extensions
RefinedC/Flux-style refinements and Rocq arithmetic automation Declared arithmetic fragment, checked reconstruction, Versioned/Slotted E-Graphs, Verified E-Graphs (Pyrosome), SMTCoq/Trakt/Sniper reflective/certificate reconstruction, Mizar/mizar-rs-inspired Equalizer (NatPolyEqualizer + saturate_equalizer) and PropositionalPrechecker, and visible residuals Correct translation between words, logical integers and target representation

Judgments and interpretations

Prove substitution, phase separation, loan and exit preservation and erasure for the elaborated computation in the selected anchor, with source correspondence.

Plain text
Sigma ; Gamma |- A : Type(u)
Sigma ; Gamma ; Delta |- v : A [phase p, usage q, captures C, representation rho]
Sigma ; Gamma ; Delta |- c : Exit(A, Q) ! E

Sigma fixes resolution, primitive contracts, logic and representation. Gamma holds stable duplicable values, region identities and pure facts. Delta holds represented owners, permissions, suspended parents and restoration duties. A shared descriptor in Gamma names a loan. Its live permission stays in Delta, regardless of descriptor copies.

Exit(A,Q) maps reachable exits to results and resource predicates, possibly indexed by represented tags or scalars. The predicates relate the same entry, execution, exit and representation. E bounds footprints and named external events. The image evaluates by value from left to right, with explicit short-circuiting. Its interpretation includes getters, conversions and callbacks.

Split resources using the logic's frame rule, separating conjunction and checked entailments. Interpretation, context analysis and derivations enforce linearity because Rocq token propositions are duplicable. Memory ownership Own(region,contents) requires concrete operation laws.

Dimension Interpretation Refused implicit conversion
Phase Runtime, specification and proof; compile-time generators emit checked terms Specification data cannot supply an unspecialized runtime operand; proof scripts cannot execute target operations.
Usage Unrestricted stable values, affine resources with proved discard, linear restoration/protocol obligations Affine weakening cannot abandon a required restoration or terminal operation.
Capture Kinded transitive identities; authorities used while evaluating are distinct from those retained by the result Removing a direct free variable does not remove authority retained through another closure.
Representation Explicit runtime layout or erased checked evidence, fixed at specialization Erasure cannot remove a runtime length, result tag or represented handle needed by execution.
Dependence Stable values and justified entry/exit snapshots Mutable cell contents do not become stable type indices; mutation updates a resource predicate.

Closures expose call mode (shared, exclusive or consuming), environment representation, transitive captures, effects and per-call contract. The fixture admits total immutable shared-call callbacks. Mutable or escaping callbacks need transition and representation rules. Environment duplication and optimized machine-call bounds need evidence beyond a source invocation count.

Kinded authority

Authority Required interpretation Consequence
Memory loan Spatial access, exclusivity/sharing, lifetime and restoration under frame laws A pointer alone does not permit access.
Hardware capability Tag, bounds, permissions, provenance and applicable temporal state in the selected CHERI interpretation A logical identity or flat integer cannot discharge the premise.
Effect permission Permission to request a named operation under its actual contract A write footprint does not create writable storage.
Security permission Separately proved release/declassification or observation policy Hardware permissions and effect allowances grant no declassification.
Resource budget Named trace/cost interpretation and composition theorem A loop count grants neither ownership nor target WCET.

The fixture requests memory access, closed effects and observations under public inputs. A declassifying variant needs a separate security-policy premise. Each requested guarantee needs its own theorem.

Dependency and joins

A pure dependent function has type Pi x:A. B(x) with Rocq-checked universes. Sigma n:RuntimeLength. Payload(n) pairs a runtime scalar with erased evidence. A dependent match keeps its discriminant and refines branch facts and resources. Executable control flow requires a represented witness.

Prefer stable indices for immutable shape and bounds and contracts for facts about mutable contents. A runtime-discovered bound stays represented even when its proof is erased. Establish the correspondence between a checked pattern or guard and its evaluated value without requiring a second authored witness when the elaborator can reconstruct it. Preserve only facts justified on every path where they are used, under the pattern scope rules. Writes and calls invalidate affected current-value facts unless preservation is proved; immutable values and historical snapshots remain distinct from rereads.

A write maps Own(r,xs) to Own(r,update(xs,i,b)) at fixed capacity. Shape changes consume the owner and return a newly indexed one by a proved transition. Immutable entry snapshots reflect the entry representation and grant no access while ownership is lent. Initialization and relocation

Join branches under a common resource predicate or preserve alternatives in an indexed sum. Ready(view of dst) suspends the parent footprint, while Rejected(owner restored) restores it. Equality beyond conversion needs checked transport. Runtime equality needs a proved decision procedure. Erased witnesses need minimal CIC terms and an erasure theorem. Kernel profile and staging

Loans and control flow

A loan records parent, footprint, mode, captures and restoration predicate. Exclusive loans suspend overlapping parent access; reborrows suspend overlapping ancestors until descendants end, while proved-disjoint fields stay accessible. All shared descendants end before exclusive access resumes. Ending a loan consumes its restoration duty once and restores the parent's final-content predicate.

Analysis infers last use within finite control-flow regions and explicit call contracts. Unknown overlap yields a disjointness goal or unsupported pattern. Each iteration closes loans created within it before the back edge. Borrowed parameters and stable enclosing permissions may persist under the loop invariant. Inference of loans created in one iteration and carried into the next belongs to the loop-borrowing trial.

Exit Required result
Fallthrough or return End nonescaping loans; return declared owners and linear tokens.
Result propagation Elaborate to a match with the error exit's restoration/cleanup proof; no hidden escape rule.
Returned shared loan Transfer the loan and restoration obligation to the caller and suspend overlapping owner access. The backing supplied by the caller must outlive the view.
Error beside returned-loan success Return no loan and restore the owner on that branch. A runtime tag identifies its resource predicate.
continue or back edge Close local loans, restore the invariant and decrease the termination measure.
break Close local loans and establish the exit predicate and represented reason.
Cleanup A cleanup step that guarantees restoration uses a total, non-failing operation that consumes the exact token and preserves the frame. Fallible cleanup requires an explicit result carrying the residual resources and error.
Abort, panic or target fault No source abort/unwind primitive. Operations owe absence of unexpected traps under entry premises; environmental faults retain the target contract's classification.

A builder can share checked bounded rollback across error arms. It consumes the live initialized prefix and each owned cleanup token once in the specified order, restoring storage and preserving the frame. Use ? after establishing the promised error state. Fallible cleanup needs explicit control flow and a distinct error case with the residual builder.

In this fixture, the only escaping local loan is a shared view into one statically named borrowed parameter or field. Local-stack loans, dynamically untracked owners, self-referential owners and cyclic captures are outside the fragment. The caller ends the view before resuming exclusive access; inference may insert that proof step at last use without source-level manual restoration.

The ownership library contract specifies bounded iteration, out initialization, selective invariant lifting, bulk relocation and fallible builders. Lifting an invariant introduces a linear CloseDebt in Delta for the lifted clauses.

Two-phase receiver borrows

An implicit initialized ref receiver acquires its exclusive loan in two phases.

  1. Evaluate the receiver place once. Reserve the resolved owner, parent grant, and whole-object or named-view footprint. Reservation requires an eligible exclusive parent and permits overlapping shared reads and loans during argument evaluation. It blocks overlapping writes, moves, exclusive grants, and other reservations. Unresolved overlap blocks checking.
  2. Evaluate explicit arguments left to right. Before call entry, check that no competing loans remain, including in argument values and captures. Activate the exclusive loan, suspend the parent, and record the restoration duty. Check entry preconditions and invariants against the resulting state.

Disjoint permissions stay live in both phases. An exit before activation cancels the reservation and cleans up any evaluated or transferred argument resources. Shared and out receivers, explicit ref arguments, and type-qualified calls with an explicit receiver use ordinary grant timing. Receiver qualification · Borrow-analysis promotion

Borrow-analysis promotion

The loan diagnostic proposes ends over finite CFGs (including reducible loops); source checking additionally requires checked correspondence and resource derivations:

Join Evidence for the selected source fragment
Source facts Relate resolved places, field partitions, control edges, call effects, and transitive captures to the elaborated computation (unknown overlap remains a goal; names, pointer inequality, and library spelling prove no separation).
Loan ends and exits Discharge split, parent suspension, and restoration at every reachable exit across returned-view success vs restored-owner error, nested reborrows, moved captures, disjoint fields, and premature parent reuse; invalid neighbors parse with inhabited entry states and fail at the resource rule.
Receiver calls Interpret and lower reservation, activation, and cancellation over one resolved footprint, preserving evaluation order and argument/entry/exit resource predicates.
Mutation and dependent facts Writes/transitive effects update current predicates; reusing current-content facts needs preservation/re-establishment (historical snapshots stay stable; rereads observe writes, stale equalities fail, disjoint fields survive, and shortening length 3 -> 1 invalidates index 2). Snapshots/invalidation extends this to cells and Ante aliases.
Control and demand Bounded loops prove invariants at entry and back edges and close local descendants; transitive captures respect usage modes (default graded checker covers natural domains; suspension, cyclic captures, broader loan escape, and general domains need own rules).

In first-release qualification, report unsupported patterns, open goals, and exhausted budgets separately from semantic rejection and checked acceptance.

Refinement, effects and staging

Automatic refinement covers quantifier-free linear arithmetic over bounded integers, equality and disequality, finite discriminants and congruence to positive static alignment constants. Nonlinear facts, including variable products, and open quantifiers need explicit proof. Machine arithmetic checks representability. Resource rules govern initialization and typestate. Primitive semantics

Library lemmas cover finite .Model predicates over supported element expressions, subranges, updates, content equality and live/vacant splits. Compare capacities 4 and 1,000,000,000 to check that sparse ranges stay symbolic. Capacity-invariance gate

The checker tries conversion, resource and capture rules, reconstructed arithmetic, domain lemmas, then explicit proof. A timeout, unsupported formula, or failed reconstruction leaves an open goal. Certificate-producing SMT · R-05-017

Effects bound reads, writes and calls and exclude allocation. Sequencing unions footprints and composes event counts by addition, proved bounds or indexed counts. Stack slots and specialized environments need size and layout laws. Effect polymorphism and handlers need separate rules. Extension designs

Generators record inputs, environments and outputs for checking and source correspondence. Conversion runs only total pure definitions. Required-static values specialize layouts and keep runtime lengths represented. Erasure preserves results, effects, control flow and observations. Removing unused context or capability parameters and returning stack tuples require checked lowering, source correspondence and CHERI frame and tag preservation. Staging rules

Inline proofs and runtime state

Inline proofs establish facts about values, observations and snapshots. Erased snapshots add no load. A memory snapshot needs read authority and a footprint at its observation point. An established entry snapshot can be used in proofs while an exclusive element loan suspends the owner, but it does not authorize a fresh read of the owner or establish its current contents. Initialization, moves, loan closure, verdict consumption and cleanup require executable transitions. A transition theorem needs evidence of execution on that path.

Qualify an out store followed by proof of initialization. Reject moving the only store into the proof even if it establishes the postcondition. Also test ownership transfer, loan closure, verdicts, receivers and nested helpers.

With representation, specialization, operations and optimization fixed, equivalent proofs preserve all results, exits and traces. Change a represented branch condition as a control and compare executable sections, ABI and identities. Artifact cost protocol

Composed qualification fixture

PrepareAndInspect needs a concrete format and valid header witness. Workspace has statically disjoint bytes : Buffer(N) and audit : Cell(word), with representable capacity N fixed at specialization. The caller supplies represented request length n and initialized immutable source of extent s. Check n <= s and n <= N before source access or n-based pointer arithmetic. Permissions are sequential.

Compare copying, inspection, cleanup and returned views with an independent baseline. Total finish consumes PreparationOpen once and returns PreparationClosed. Qualify its concrete interpretation and implementation. Rocq proves modeled results, trace properties and token closure. holdfast-parser run-repair-trial checks the oracle, negatives and repairs. Concrete CHERI qualification remains open. Repair trial evidence

Plain text
PrepareAndInspect(ref workspace, in input[s], runtime n, in controls[N],
                  runtime keep_view,
                  in total_shared_callback, tracked PreparationOpen)
  -> Ready(Sigma length. View(workspace.bytes, length), PreparationClosed)
   | Rejected(reason, PreparationClosed)

check n <= s and n <= N, retaining the represented validity result
initialize the entire fixed destination to zero in a bounded loop
  use the total repeatable zero-byte callback with its scoped destination loan
set the disjoint audit field to zero
if n > s: finish; return Rejected(source_too_short)
if n > N: finish; return Rejected(too_large)
copy input[0..n) once into destination[0..n)
  invoke the total shared callback once per copied byte
  callback captures disjoint immutable values; its result does not alter copying
check Descriptor.descriptor_check on the private prefix and represented n
if invalid: finish; return Rejected(invalid_header)

inspect the initialized private prefix in a bounded loop
  create an exclusive bytes-field loan, then a read reborrow
  let reader be a shared-call closure transitively retaining the read reborrow
  call reader; end its last use and the read reborrow
  update only the disjoint audit field under its own loan
  close local loans before continue, break or the next iteration
  loop choices use declared public inspection input

finish
if keep_view: return Ready(n, a shared prefix loan into the caller's workspace)
else: return Rejected(view_not_requested)

Both callbacks are total and effect-free with disjoint captures. Inspection follows filling and copying and reads public immutable controls[0..n) independently of the header verdict. It increments audit per visited index, including break and continue. n <= N makes the count representable.

The trace records ReadInput(i,b), WriteDestination(i,b), FillCallback(i) and CopyCallback(i). For admitted n, read each byte below n once in order and finish fill writes before copying. Validate and inspect only the private copy. A checked projection relates these events to the machine trace when optimization removes helper calls.

A length refusal leaves the destination zeroed without reading input bytes. If both bounds fail, return source_too_short. When both bounds pass, the destination holds the copied prefix followed by zeros. invalid_header follows descriptor_check. Both Ready and view_not_requested require a valid header. The audit field is zero before inspection and reflects the number of visited indices afterward. Ready returns the request length n and the prefix view. All exits preserve the input and frame, return PreparationClosed, and restore workspace access outside any returned view.

Prefix loans have logical footprints and represented bases and lengths. Exact CHERI narrowing needs its representation theorem. Splitting restores disjoint tail and audit access without creating authority when an empty loan ends.

Point Required resource predicate
Entry Exclusive workspace, initialized immutable source of represented extent s, independent represented request n, disjoint repeatable callbacks, PreparationOpen, effect permissions and satisfiable representation
Fill loop Prefix below cursor initialized to zero; remainder retains initial initialization state; audit/input frame preserved
Copy loop Whole destination initialized; copied prefix equals input; remainder and tail zero; iteration-local loans closed at back edges
Inspection loop Destination unchanged, initialized and header-valid; audit equals pure visited-index summary; no iteration-local loan at back edges
Rejected return Restored workspace with branch-specific contents, no returned loan, preserved frame and PreparationClosed
Ready return Shared prefix view, real length and valid-header evidence; parent prefix suspended, disjoint audit restored, frame preserved and PreparationClosed
Caller match Use/end the view before prefix mutation on Ready; mutate immediately on Rejected. Retain branch distinction until checked restoration permits a common join.

To exercise propagation, give header-result conversion the same two exit predicates and run an equivalent fixture with Result propagation at that site. Functional, resource and observation statements stay unchanged. A frontend supporting only explicit return reports propagation unavailable.

The independent behavior review freezes inhabited cases before proof or baseline adaptation: each length refusal (including both invalid bounds), empty and full spans, every declared valid/invalid header family, both final result alternatives, ordinary loop completion, break, continue, and explicit versus propagated errors. A valid Ready witness needs a capacity/source and declared encoding for which the header check succeeds; n <= N alone does not establish one. Include distinguishable source bytes, nonzero destination residue, adjacent disjoint fields and an unrelated initialized frame. Expected destination/audit bytes and status are computed from the declared format and specified control vector independently of the candidate. Unexecutable symbolic overflow cases retain proof obligations and no target-measurement claim.

Intended negative neighbors

Keep syntax, resolution and unrelated premises valid in each negative graph. Count refusals at the stated obligation. Repeat applicable modeled repair cases through the represented implementation for release qualification.

Fixture change First refusing obligation
Make the copy guard inclusive with the same invariant Read/write bounds at index n; choose admitted n = s = N so both extents expose the offending index
Drop the source-extent guard but retain the capacity check Source read at a request satisfying s < n <= N; the original source_too_short refusal remains required
Store into a neighboring location or omit tail initialization Functional byte relation or initialized-whole exit predicate
Read external input again during validation Copy-once trace contract and private-source refinement
Use overlapping parent while reborrow/reader remains live Parent suspension and transitive capture liveness
Return a local-buffer view or mutate parent with returned view live Capture lifetime or exclusive-access premise
Restore owner on Ready while retaining its view Branch exit resource predicate
Retain an iteration-created shared view in an enclosing represented option at continue, or propagate error with PreparationOpen The no-local-loan back-edge rule or error cleanup predicate; an automatically ended unused loan is not a failing case
Call finish twice or omit it on too_large Linear consumption or required exit token
Repeatedly invoke a consuming callback or capture a mutable-output alias Calling mode, disjointness or effects
Treat an entry content snapshot as current after a write Updated spatial predicate and snapshot relation
Erase n or a result tag used by execution Phase/representation and erasure preservation
Present hardware authority at an explicit security-policy premise Kinded authority with its distinct interpretation
Remove an observation guarantee while retaining operation laws Requested guarantee instantiation
Substitute an unchecked solver answer or global UIP axiom Reconstruction or exact assumption audit
Alter desugaring/resolution while replaying the old core proof Source correspondence and dependency identity

The observation relation treats input bytes, lengths, inspection controls, keep_view, capture values used by the admitted callbacks, and status as public. Equal public inputs and related frames require equal specified branch/address/termination and external-event observations, including the callback's contract. Its concrete representation and observation projection state whether addresses are compared literally or through related region placements. This modest relation still needs proof; it supplies neither adversarial-context isolation nor target timing. The secret-dependence probe starts with an otherwise accepted, unused secret scalar parameter and equal public inputs, then uses that scalar to select an observable branch. It must fail the unchanged relation on two represented secret values producing different observations. Reclassifying it public changes the independently reviewed contract and invalidates the comparison.

Source and compiler boundary

The retained route and any direct-lowering comparison share the interpreted graph and contract for branches, bounded loops, entry and exit predicates, calls, captures, effects, layouts, traces and guarantees. The contract classifies refusals and faults and rules out unexpected traps under entry conditions. Common source boundary · Measurement contract

SourcePackage binds source/generated-input contents, independent contract, parsed or validated syntax, resolved names/instances, implicits/transports, desugaring, core graph, derivations and locations. Interpretation and representation name that same graph/contract. Locations and a proof about another graph cannot establish current-source correspondence.

Lowering, capability-correct selection, optimization, stack/ABI relations, typed linkage and final-byte judgments over pinned Sail remain route obligations. Pointer-to-integer substitution needs its own correct relation; a flat array proof supplies no tag/provenance preservation. Erasing loan bookkeeping cannot erase machine authority. A route may abstract source helper-call events only under an explicit proved projection that preserves every requested externally visible observation and exact input-read/write relation. Functional simulation alone cannot transport relational observations or arbitrary-context guarantees. Existing compiler duties remain binding.

Use the compiler route contract for artifact identity, lowering and admission evidence.

Typed holes and invalidation

A hole records source expression, semantic environment, expected type/proposition, stable locals, snapshots, branch facts, active/suspended loan tree, kinded captures, call mode, representation, effects, reachable exit predicates and the first missing operation/guarantee premise. Show the source operation and failed rule before raw prover state; retain the full state for inspection.

At the inclusive copy guard, show 0 <= i <= n <= N and n <= s, required i < n, i < s and i < N, destination loan and copy-prefix invariant. At failed error propagation, show outstanding PreparationOpen and expected PreparationClosed. At a post-match mutation, show retained Ready view and suspended parent. These are different diagnostics even if downstream search fails at one final theorem.

Statuses distinguish unresolved, checked refutation where available, unsupported, timeout, stale and fresh-batch acceptance. R-05-018a admits no interactive/rendered acceptance. Stable goal IDs aid navigation without preserving acceptance after semantic edits.

Every result carries its source/dependency generation and judgment scope. Open required goals block component acceptance. Semantic edits withdraw old acceptance before asynchronous replay; late old-generation successes stay stale. The diagnostic trial sends such a response after a bound change. Failed search is unresolved/timeout unless checked evidence refutes the claim. Report the first missing premise in the deterministic checking order; it may change after repair, and unrelated downstream failure does not count as the intended negative.

Edit Invalidated evidence
Rename/formatting Rebuild source identity, correspondence and maps; reuse terms only after validating unchanged semantic dependencies
Bound, failure behavior or operation Affected typing, termination, functional/resource/effect/observation derivations, then artifact evidence
Contract weakening or public/secret classification Contract review, independent behavior check and dependent guarantees; replay alone cannot approve intent
Imported lemma, instance, hints or tool flags Qualified environment, selected definitions/proofs and assumptions; withdraw stale feedback
Representation, layout, ABI or erasure Instance/representation/erasure proofs and affected resource interpretation, linkage and bytes
Parsing, insertion or desugaring Source correspondence even if the old core proof remains valid
Target, compiler flag, relocation or bytes Affected transport/admission/measurements; host proof timing supplies no replacement

Record semantic inputs, not filenames alone; conservatively invalidate the component closure until precise dependency analysis is qualified. Repair tools propose/replay; independent review approves contract changes. Measure semantic edits, preserving refactors and representation changes separately. Cache hits and generated proofs do not demonstrate review savings.

The generation-tracked diagnostic session (qualify_diagnostic_session) qualifies this contract across the checked release fixture baseline and its mutated copy-guard/live-slice, early-exit PreparationOpen/out-parameter cleanup, and post-match Ready view parent-mutation refusals, typed holes (unresolved to discharged), budget-exhausted residuals (pending-budget-exhausted, never cached, repaired by budget or explicit lemma), immediate stale-withdrawn invalidation with dropped late worker replies, search-off Rocq 9.3.0 + rocqchk certificate replay, and opaque-provider witness reuse and invalidation (diagnostic session controls). The playground worker and playground server expose bounded loanConflict spans and exit obligations alongside strict sourceHash and compiler-generation checks on compile refusals.

Run holdfast-parser diagnose-session --qualify-extensions to replay the selected grade, cell and effect diagnostics. The source checks identify the unsatisfied obligation and its authored location. A cell conflict shows the shared grant and remaining use, and a forbidden effect reports its call path. A concrete refutation, a symbolic obligation and an exhausted search each carry their own result. Use --synchronous-controls with a source path to apply the first-release control restrictions. Extension diagnostic evidence

Proof obligations

Obligation Required evidence
Core soundness Checked substitution, universes, phase separation, resource preservation and all-exit interpretation.
Checked frontend Exact SourcePackage correspondence for resolution, dependent insertion, specialization and erasure.
Concrete resources Inhabited CHERI representation and laws for initialization, read/write/frame, borrowing and restoration.
Diagnostics Locate the first missing premise and invalidate dependent judgments on edit.
Fixture An inhabited PreparationOpen token with a checked total finish transition, independent expected behavior and a repair check.
Machine artifacts Checked lowering, optimization, linkage, final-byte admission and any claimed observation, cost and contextual guarantees.

See the delivery plan for owners and gates and the packet validator qualification for the narrower model and execution controls.

Fixture prerequisites

Prove the exit predicates above over the concrete CHERI representation, including reader closure, single token consumption, frame preservation, prefix suspension and disjoint audit and tail access on Ready, and full restoration on rejection. Supply inhabited entries and negatives that reach their obligations.