Uh oh!
There was an error while loading. Please reload this page.
Add q-gauge enumeration scan over topological ε-machines - #5
Open
Autoplectic wants to merge 1 commit into
Open
Conversation
Brute-force search for the maximum of the pure-gauge term I[S+0 : X0 : S-1 | S-0, S+1] over uniform-outdegree topological ε-machines from Johnson et al. (2010). Workers cap the reverse mixed-state size and arm SIGALRM so that machines with pathological reverse presentations fail fast rather than stalling the sweep. Drops the unused _patched_to_bidirectional helper, which computed a capped mixed-state presentation and a reverse machine, discarded both, and returned the uncapped BidirectionalEpsilonMachine.from_forward anyway. Nothing called it, and every unused-import and unused-variable warning in the file came from inside it; _q_gauge already goes through em.to_bidirectional() directly. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
scripts/scan_q_gauge_enumeration.py, a brute-force search for the maximum of the pure-gauge termI[S+0 : X0 : S-1 | S-0, S+1]over uniform-outdegree topological ε-machines (Johnson et al., 2010). This is the script behind then3k3max-q-gauge machine.Workers cap the reverse mixed-state size and arm
SIGALRM, so machines with pathological reverse presentations fail fast instead of stalling the sweep. Progress is checkpointed to JSON as it runs.While bringing it up to the repo's lint standard I removed the unused
_patched_to_bidirectionalhelper. It built a capped mixed-state presentation and a reverse machine, discarded both, and returned the uncappedBidirectionalEpsilonMachine.from_forward(em)anyway — its own comment records the capped path as an unfinished intention. Nothing referenced it, and every unused-import and unused-variable warning in the file came from inside it._q_gaugealready callsem.to_bidirectional()directly, so behavior is unchanged.Remaining lint fixes were mechanical: an explicit
strict=Trueonzip, the_Alarm→_AlarmErrorrename forN818, and import ordering.Test plan
ruff check .andruff format --check .clean across the repoty checkat its 160-diagnostic baseline (no new diagnostics)--n 2 --k 2 --workers 2: enumerates all 7 machines, 0 failures, 0 timeouts, writes the JSON checkpointMade with Cursor