Skip to content

Heaviest-term bound after an inconclusive exact path; stop passing dit's _strategy - #81

Merged
Autoplectic merged 2 commits into
mainfrom
pipeline-small-fixes
Nov 28, 2026
Merged

Autoplectic merged 2 commits into
mainfrom
pipeline-small-fixes

Conversation

@Autoplectic

@Autoplectic Autoplectic commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • 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. 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() and heaviest_term(aim), shared with the later call, which is otherwise unchanged.
  • functional_generative_model no longer passes _strategy to dit's functional_markov_chain, which dit 2.4 deprecates; the functional common information is an exact cover with no search strategy. Its own strategy argument is ignored and deprecated.
  • The light-pair test from Keep generative_model within its time budget #79, 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_channel returns None before 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

  • Fast suite (-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_strategy and test_functional_model_strategy_is_deprecated.

Validation

I ran the 510 archived processes with cryptic order at most 1 through generative_model with a 60 s budget, side by side with main at 55b627b, two workers per tree:

  • All 510 are certified on both trees, with no errors.
  • The brackets are identical on all 510, and so are the sources, except one upper-bound label.
  • That one is 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.
  • Total time: 302 s against 336 s on main.

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() on not truncated.

…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.
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.
@Autoplectic
Autoplectic merged commit 13471b0 into main Nov 28, 2026
10 checks passed
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