Repository navigation
Exact generators at cryptic order at most 1, the K(P) support bound, lookahead generators - #74
Merged
Merged
Conversation
added 2 commits
November 24, 2026 02:38
…lookahead generators
- separating_generators (new): support_bound_states (K(P) = floor((|supp P| + min(|S+|, |S-|)) / 2)),
reduce_decomposition (merge and null moves), separating_decomposition (per component: trivial,
one-wide exact, or SCIP with a presolve/OBBT-off second opinion, polished into an exact decomposition),
theorem_generator (the explicit kernel when p.chi = 0, i.e. cryptic order at most 1),
lookahead_generator (generators of the sliding-block process, exact for L >= kappa) and the block
persistent crypticities H[S+_L | X_{0:}], H[S-_0 | X_{:L}].
- global_bound: separating_global_bound (static SCIP model of the least-entropy separating
decomposition); presolve, obbt and params switches on generator_global_bound.
- generative_model: logs the cryptic orders and the block persistent crypticities; at cryptic order at
most 1 the exact path writes down a minimal generator and its SCIP dual enters lower as a numerical
bound; lookahead candidates at cryptic order 2 and 3; the restricted global bound defaults to K(P)
states and enters lower at cryptic order at most 1.
- Docs page, Mahoney2009 bib entry, benchmark cases (rip, stretched golden mean 2 and 3, a SCIP
kappa = 1 case); rll now certifies.
With presolving off, SCIP still computes the symmetry group when presolving ends, now on the unreduced model. On the (3, inf) run-length-limited process at k = 7 (two-step flows) that computation, in dejavu's preprocessor, ran for over two hours without checking the time limit; with misc/usesymmetry = 0 the same run stops after 151 s at a 60 s limit. presolve=False, the second opinion, now also sets misc/usesymmetry to 0.
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
sofic.generators.separating_generators(new):support_bound_states: the support bound K(P) = ⌊(|supp P| + min(|S+|, |S−|)) / 2⌋ on the number of terms of a least-entropy separating decomposition of the causal-state joint.reduce_decomposition: the merge and null moves that bring any decomposition down to K(P) terms without raising its entropy.separating_decomposition: per connected component of the support, either trivial, exact on rectangle-free (one-wide) components, or SCIP. Each SCIP run gets a second opinion with presolve and OBBT off, and its result is polished into an exact decomposition.theorem_generator: the explicit minimal generator when p.χ± = 0, i.e. cryptic order at most 1 (Mahoney et al. 2009, Thm 1 at k = 1).lookahead_generator: generators of the sliding-block process, which reach C_g of that process for L ≥ κ.global_bound:separating_global_bound, a static SCIP model of the least-entropy separating decomposition.generator_global_boundgainspresolve,obbtandparamsswitches.generative_model:loweras a numerical bound, withlower_certifiedFalse; without PySCIPOpt it falls back to multistart.lowerat cryptic order ≤ 1.docs/generators/separating_generators.rst) and the Mahoney2009 bib entry. New benchmark cases are RIP, the stretched golden mean with 2 and 3, and a κ = 1 case whose component needs SCIP;rllnow certifies.Results on the paper dataset
Test plan
pytest tests/test_separating_generators.py(18 tests, pytest and hypothesis)sphinx-build -W --keep-going -b html docs ...is cleanruff checkandruff formatKnown issues, not addressed here
cryptic_order()returns ∞ on the reverse side. The hypothesis strategy in the new tests filters probabilities below 0.02 for this reason.generative_model(butterfly, time_budget=60)takes about 1900 s, onmainas well. Some lower-bound stages appear not to respect the budget.