Skip to content

refactor(MultiTape): rename spaceUsed to space - #1133

Merged
crei merged 1 commit into
leanprover:mainfrom
barni120400:refactor/multitape-space-name
Oct 15, 2026
Merged

crei merged 1 commit into
leanprover:mainfrom
barni120400:refactor/multitape-space-name

Conversation

@barni120400

@barni120400 barni120400 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Renames MultiTapeTM.spaceUsed to space, matching RunPath.space and ComputationPath.space: tm.space cfg t is the space of the path of the first t steps from cfg. The lemmas named after it follow.

Depends on #1117: its commits are included temporarily and will leave this diff when that PR merges. The stack continues in #1122.

Composed with Claude Code.

Match the space vocabulary of `Space.lean`, where the cells visited by
all tapes of a path are its `space`: `tm.space cfg t` is the space of
the path of the first `t` steps from `cfg`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
barni120400 added a commit to barni120400/cslib that referenced this pull request Oct 14, 2026
…ugh run paths (leanprover#1117)

Expresses the tape simulations, tape specifications and sequential
composition through run paths. `stepHom` reads a semiconjugation of
`step` as a homomorphism of the step relations, which maps run paths,
and each of `extendTapes`, `outputToTape` and `inputFromTape` bounds the
space of the mapped path through `RunPath.space_map_le`, replacing the
per-file iteration and space proofs.

`spaceUsed` becomes an abbreviation for the space of the path of the
first `t` steps, so `TransformsTapes` keeps its statement. Sequential
composition derives its space bound from the existing state-free
invariant. The deterministic space lemmas used only by these proofs and
the unused `Cfg.withOutput` are removed.

The stack continues in leanprover#1133.

Composed with Claude Code.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@barni120400
barni120400 force-pushed the refactor/multitape-space-name branch from 5bf4c7b to acf622e Compare October 14, 2026 16:00
@crei
crei added this pull request to the merge queue Oct 15, 2026
Merged via the queue into leanprover:main with commit 5c5209a Oct 15, 2026
2 checks passed
crei added a commit that referenced this pull request Oct 15, 2026
Adapt Tidy/Defs to upstream changes: rename `spaceUsed` to `space` (#1133)
and state `computesTidily_iff` through run paths, following the
`TransformsTapes` refactor in #1117.
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.

2 participants