Skip to content

chore: agent-driven modulize - #19

Closed
BoltonBailey wants to merge 3 commits into
SamuelSchlesinger:devfrom
BoltonBailey:modulize
Closed

chore: agent-driven modulize#19
BoltonBailey wants to merge 3 commits into
SamuelSchlesinger:devfrom
BoltonBailey:modulize

Conversation

@BoltonBailey

Copy link
Copy Markdown
Collaborator

This PR ran Opus to convert the project to the module system using the modulize script

BoltonBailey and others added 3 commits July 26, 2026 20:21
The module migration left `Repetition.Validation` and
`Tseitin.Machine.Validation` with `public import`s only. Their
`#eval`/`native_decide` regression guards run at elaboration time and
need the imported instances/IR (`instDecidableEqΓ`, `fallbackEncoding`,
`reductionTM`) accessible as `meta`, so add a parallel `meta import`
alongside each `public import` (matching the SingleTape/Encoding
validation files).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@SamuelSchlesinger

Copy link
Copy Markdown
Owner

Oh nice, this is great. I was just working on the same thing but via a script written by Sol.

@BoltonBailey

Copy link
Copy Markdown
Collaborator Author

There is a "Modulize.lean" script in lean4 that is supposed to do it automatically, but it broke the build so I had to ask an agent to fix it. I'd like to try and rebuild with and without the changes to make sure they are actually helping.

@SamuelSchlesinger

Copy link
Copy Markdown
Owner

On my branch I saw a pretty significant >10% build time reduction from scratch

@SamuelSchlesinger

Copy link
Copy Markdown
Owner

Mine built one minute faster than yours, so I am going to merge it instead of this one. Apologies you did this work for naught!

@BoltonBailey

Copy link
Copy Markdown
Collaborator Author

Right on, I'll close this one.

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