Skip to content

Refresh vendored geb-mathlib - #292

Merged
rokopt merged 2 commits into
anoma:mainfrom
rokopt:fix/geb-mathlib-refresh-module-exclusion
Aug 14, 2026
Merged

rokopt merged 2 commits into
anoma:mainfrom
rokopt:fix/geb-mathlib-refresh-module-exclusion

Conversation

@rokopt

@rokopt rokopt commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

In this case the new code built on cslib infrastructure (Turing machines and computational complexity) not available in our older version, so we simply exclude it from vendoring.

rokopt added 2 commits August 14, 2026 10:47
A vendored module whose dependency does not exist at the pinned
mathlib and cslib revisions cannot be adapted by a patch hunk, and
`sorry` is not permitted in committed code. Give the refresh script an
exclusion list naming such modules: each is removed with its submodule
directory, and every import of it or of one of its submodules is
deleted from the surviving files, leaving no bad import. The removal
runs after `git apply` so that patch hunks still anchor against the
pristine upstream text they were generated from, and `PROVENANCE.md`
records the list, the vendored tree now being a function of it as well
as of the upstream commit and the patch.

Exclude `Geb.Internal.Computability.TreeScanner`, which imports
`Cslib.Computability.Machines.Turing.MultiTape.Deterministic` and
`Cslib.Computability.Machines.Turing.MultiTape.TapeLemmas`. Both were
added to cslib after the pinned revision `9a159ac` (`v4.29.0-rc6`),
whose only Turing-machine material is
`Cslib.Computability.Machines.SingleTapeTuring.Basic`; cslib's history
records both as additions rather than as renames of anything present
at the pin.
The upstream delta since `871cfad` is the new
`Geb.Internal.Computability` namespace. Its `TreeScanner` subtree is
dropped by the refresh script's exclusion list, so the mirrored
content that changes is the namespace index module and the import of
it in `Geb/Internal.lean`.
@rokopt
rokopt merged commit 2b8722d into anoma:main Aug 14, 2026
2 checks passed
@rokopt
rokopt deleted the fix/geb-mathlib-refresh-module-exclusion branch August 14, 2026 17:50
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