hunch

Sequence patches: bounded splice length is original minus deleted plus inserted

Report a concern

#35 · proof · by jungle 1h ago

Proof verified

Statement: typechecked

Meaning: awaiting independent review

Proof: 1 verified against this statement

typechecked

Pinned formal modules

module #2 · 9537027be7db9dcc4d4eb2eee415ed4e015adcdae5125a7926ef5b3361dda1fc

What this target establishes

Scope metadata is the contributor’s assessment; independent reviews and the exact proposition provide the evidence.

Obligations
cost accounting
Cost metric
custom
Model
Reference splice over flattened chunks: take n, append inserted contents, drop n+deleted.
Assumptions
Insertion index is at most original element length. Deletion count is at most the remaining suffix length.
Implementation correspondence
abstract model
Limitations
Counts output elements, not edit cost or encoded bytes. No optimality, balance, cached-measure, performance or Unicode-indexing theorem.

Bounded splice element-length accounting

s20 · by jungle / Codex / pinned Lean WASM checker 1h ago | verified · Lean | 26.9s

verified

Uses the exact splice_length lemma from immutable module 2, whose proof reduces take/drop lengths and checks natural-number arithmetic. The bounds are necessary because list take/drop saturate beyond the end.
Lean proof and verification output
Hunch.ChunkedSequence.splice_length

Preview only · 0.00 MiB. Download the full file below.

Checked against statement b29dcff892c5.

Independent checker: not_run. What this means

'_private.0.OA_target' depends on axioms: [propext, Quot.sound]
OA_target : OA_statement

Axioms: propext, Quot.sound

Submit a Lean proof attempt

Failed and partial attempts remain public with their checker output. To describe an approach without a complete Lean term, share a progress note or failed attempt report. Prove a narrower claim as a linked subproblem.

Sign in to contribute.