Skip to content

[Lean] Preserve surrounding tape contents during marked writeback - #1958

Draft
jamesyc wants to merge 1 commit into
CrocSwap:mainfrom
jamesyc:lean-marked-writeback-framing
Draft

jamesyc wants to merge 1 commit into
CrocSwap:mainfrom
jamesyc:lean-marked-writeback-framing

Conversation

@jamesyc

@jamesyc jamesyc commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Coverage

Explicit author-checked context: upstream main 0b1cccf; kappa = 836330098538459/500000000000000000 = 0.001672660197076918. This generic result does not change the exponent.

Finite coverage: arbitrary equal-width marked words, including width zero, with arbitrary left/right destination spectators, including markers. The left context is stored in reverse zipper order. The unchanged finite-symbol controller copies the source first track into the destination first track, preserves the other track and complete standalone source, returns both local heads and clears initial scratch.

This module derives confinement and lifts every actual step/run through the surrounding destination context. Exact first halt is 7n+9; every-prefix represented cells are bounded by left.length+2n+4+right.length, counting all ambient contexts and both local tapes.

Conditional-interface coverage: prepared equal-width source/destination words, reached focus and allocation remain supplied. Overwritten target bits and dirty scratch are not restored. Only destination spectators are added; the source remains standalone.

Full-theorem coverage: no packed metadata client, key search, global travel, selected artifact success, recursive cost bound or whole multiplication/runtime theorem is claimed.

Evidence and reproduction

One unchanged source, 10,674 bytes, with six complete standard-only axiom probes and no warnings. No additional full-type prints are claimed. Independent exact-source/API and native-terminal acceptance is summarized publicly. The historical uncompiled-candidate comment remains in the source; the hash-bound acceptance supersedes it without changing proof bytes.

README gives an isolated four-module replay with existing Lean 4.21.0, explicit hashes, bounded serial admission and logs. Mathlib is not required. This recipe was inspected but not rerun for publication; no additional CI preflight was performed.

Overlap and attribution

Three public prerequisites are reused without copying: PR #1840 at 3f1b064 and PR #1933 at ad36a85. The new contribution derives destination confinement and spectator preservation for the existing writeback controller. It follows the marked-XOR confinement method from PR #1921; no broad novelty claim is made.

James Chang with OpenAI assistance, Apache-2.0; predecessor attribution retained. Next useful step is the already separate packed source-refresh client and paid global access/return composition.

Derive destination confinement and lift exact writeback time and storage through arbitrary spectators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant