Repository navigation
Heaviest-term bound after an inconclusive exact path; stop passing dit's _strategy - #81
Merged
Merged
Conversation
…t's _strategy At cryptic order at most 1, generative_model now runs the certified heaviest-term bound right after an exact path that leaves the bracket open, aimed at the best generator, instead of after the generator coverage bound and the exact-common-information optima. On a 2-state process on three symbols whose SCIP dual stops 4.9e-6 bits short of the theorem generator, the pipeline certifies in 6 s instead of 41 s. functional_generative_model no longer passes _strategy to dit's functional_markov_chain, which dit 2.4 deprecates (the exact cover needs no search strategy); its own strategy argument is ignored and deprecated.
This was referenced Nov 28, 2026
Merged
On main, test_unconstrained_channel_survives_dit_dropping_a_light_pair fails on the Windows jobs for Python 3.11, 3.12 and 3.14: dit's exact common information optimum fails sofic's channel validation there, so _unconstrained_channel returns None before it looks up the pair dit dropped. The test now skips in that case. The fill-in of the missing pair is covered by the monkeypatched test above it.
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 free
to 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
generative_modelnow runs the certified heaviest-term bound right after an exact path that leaves the bracket open, aimed at the best generator. It used to run only after the generator coverage bound and the exact-common-information optima. The bound and its stage log entry move into two helpers,heaviest_term_wanted()andheaviest_term(aim), shared with the later call, which is otherwise unchanged.functional_generative_modelno longer passes_strategyto dit'sfunctional_markov_chain, which dit 2.4 deprecates; the functional common information is an exact cover with no search strategy. Its ownstrategyargument is ignored and deprecated.test_unconstrained_channel_survives_dit_dropping_a_light_pair, fails on main on the Windows jobs for Python 3.11, 3.12 and 3.14: dit's exact common information optimum fails sofic's channel validation there, so_unconstrained_channelreturnsNonebefore it looks up the pair dit dropped. It now skips in that case; the monkeypatched test above it still covers the fill-in of the missing pair.Tests
-m "not slow and not very_slow"): 2932 passed, 9 skipped.test_an_inconclusive_exact_path_is_followed_by_the_heaviest_term_bound: on a 2-state process on three symbols whose SCIP dual stops 4.9e-6 bits short of the theorem generator, the heaviest-term stage runs right after the exact path and certifies the bracket.test_functional_model_passes_dit_no_search_strategyandtest_functional_model_strategy_is_deprecated.Validation
I ran the 510 archived processes with cryptic order at most 1 through
generative_modelwith a 60 s budget, side by side with main at 55b627b, two workers per tree:s3-n2-t0019-d1, the only process where the early heaviest-term stage runs. It certifies in 3.4 s instead of 36.5 s. Its upper bound has the same value, 0.837473708, now labelled "theorem generator (cryptic order at most 1)", because the bracket closes before the exact-common-information optima offer the same generator.Note
This conflicts with #80, which skips the lower-bound stages computed on a truncated bidirectional build, the heaviest-term bound among them. Whichever PR merges second must also skip the new early heaviest-term call on a truncated build, by gating
heaviest_term_wanted()onnot truncated.