Skip to content

refactor(MultiTape): remove the deterministic space measures - #31

Merged
barni120400 merged 2 commits into
mainfrom
refactor/multitape-single-space-api
Oct 27, 2026
Merged

barni120400 merged 2 commits into
mainfrom
refactor/multitape-single-space-api

Conversation

@barni120400

@barni120400 barni120400 commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Removes MultiTapeTM.visitedByTapeHead, spaceUsedByTape and space, so space is counted only on run and computation paths. The visitation and displacement lemmas move to run paths and hold for nondeterministic machines.

Counts the storages and cores in ConfigBound at the ends of computation paths, bounded by RunsInSpace, with unchanged numerical bounds. The computation paths of a deterministic machine are prefixes of one another (RunPath.eq_take), so the one visiting the most cells contains the windows of every other.

Depends on #37 (upstream leanprover#1145): its commit is included temporarily and will leave this diff when it merges.

Composed with Claude Code.

@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch 2 times, most recently from e66f0e7 to 6bfb712 Compare October 10, 2026 22:38
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 6aa5add to c9382aa Compare October 11, 2026 13:56
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch 2 times, most recently from 18fe0f6 to 875ec7a Compare October 13, 2026 20:29
@barni120400
barni120400 changed the base branch from refactor/multitape-path-simulations to refactor/multitape-space-name October 13, 2026 20:30
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 875ec7a to 66ff34a Compare October 13, 2026 22:10
@barni120400
barni120400 added this pull request to stack #34 October 13, 2026 22:10
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 66ff34a to 4c3900a Compare October 13, 2026 22:23
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 4c3900a to 6ff0a24 Compare October 13, 2026 22:31
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 6ff0a24 to 75ff684 Compare October 14, 2026 13:28
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 75ff684 to 7c96b26 Compare October 14, 2026 16:00
@barni120400
barni120400 removed this pull request from stack #34 October 14, 2026 16:00
@barni120400
barni120400 added this pull request to stack #35 October 14, 2026 16:01
@barni120400
barni120400 removed this pull request from stack #35 October 14, 2026 16:09
@barni120400
barni120400 changed the base branch from refactor/multitape-space-name to main October 14, 2026 16:09
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 7c96b26 to e129036 Compare October 14, 2026 16:09
@barni120400
barni120400 added this pull request to stack #36 October 14, 2026 16:09
ext z
simp [RelSeries.mem_snoc, or_and_right, exists_or, eq_comm, or_comm]

/-! ### Windows -/

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a cslib convension? If not, don't use it

@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch 2 times, most recently from c07d358 to a73142b Compare October 18, 2026 14:48
@barni120400
barni120400 removed this pull request from stack #36 October 18, 2026 14:49
@barni120400
barni120400 changed the base branch from main to refactor/multitape-space-api-home October 18, 2026 14:49
@barni120400
barni120400 added this pull request to stack #38 October 18, 2026 14:49
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from a73142b to 09736d7 Compare October 18, 2026 15:05
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 09736d7 to 516b637 Compare October 19, 2026 21:40
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 516b637 to 43fdfd4 Compare October 21, 2026 08:09
@barni120400
barni120400 removed this pull request from stack #38 October 21, 2026 08:09
@barni120400
barni120400 changed the base branch from refactor/multitape-space-api-home to main October 21, 2026 08:09
@barni120400
barni120400 added this pull request to stack #40 October 21, 2026 08:09
fmontesi and others added 2 commits October 25, 2026 14:39
…achine (leanprover#904)

This PR showcases how HML can be applied to CCS, by distinguishing the
classical deterministic and nondeterministic vending machines with the
formula `d[Coin](d⟨Tea⟩⊤ ∧ d⟨Coffee⟩⊤)`.

Depends on leanprover#863.
…ver#1122)

Removes `MultiTapeTM.visitedByTapeHead`, `spaceUsedByTape` and `space`,
so space is counted only on run and computation paths. The visitation
and displacement lemmas move to run paths and hold for nondeterministic
machines.

Counts the storages and cores in `ConfigBound` at the ends of
computation paths, bounded by `RunsInSpace`, with unchanged numerical
bounds. The computation paths of a deterministic machine are prefixes of
one another (`RunPath.eq_take`), so the one visiting the most cells
contains the windows of every other.

Depends on leanprover#1145: its commit is included temporarily and will leave this
diff when it merges.

Composed with Claude Code.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@barni120400
barni120400 force-pushed the refactor/multitape-single-space-api branch from 43fdfd4 to ff7a819 Compare October 27, 2026 00:29
@barni120400
barni120400 merged commit ff7a819 into main Oct 27, 2026
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