Repository navigation
Remove duplicated code; fix stack CSSR history loss (3/5) - #19
Closed
Autoplectic wants to merge 1 commit into
Closed
Autoplectic wants to merge 1 commit into
Autoplectic wants to merge 1 commit into
Conversation
…amples; fix stack CSSR history loss - generators/matrices.py is the one home for symbol-labeled joint matrices, stationary/limit laws, and start vectors (model vs stationary policy); shared word enumeration and entropy helpers; StochasticModel.reverse flattened. - CSSR family: shared suffix scan (_suffix_counts.py) and significance tests (_morph_tests.py) for process CSSR, transCSSR, and stack CSSR; dead helpers (_cssr_homogenize and others) removed. The two G-tests were already identical (scipy applies the same Yates correction); now documented. - Automata: one run_nfa, one bounded equivalence-oracle base, shared word iteration, removed intersect/concatenate/star aliases, VPA membership simulates the normalized form used by the constructions. - Viz: TikZ labels reuse the shared edge spec and probability formatter; fixes uncompilable \midcall / \uparrowA, escaped \times, and escaped sympy LaTeX. - Examples: nine duplicate process pairs now share one implementation; one stationary helper; same-name/different-process pairs cross-referenced. - Stack CSSR: determinization replaced a split state with its largest bucket, dropping histories that never emitted the splitting symbol (stale mappings and zero-mass states that crashed validation); they now stay, and states with no edge into the kept set are pruned. Co-authored-by: Cursor <cursoragent@cursor.com>
Autoplectic
force-pushed
the
sofic-missing-constructions
branch
from
October 6, 2026 21:39
cc544ca to
7ea187a
Compare
Autoplectic
force-pushed
the
sofic-dedup
branch
from
October 6, 2026 21:39
1221d86 to
1db9609
Compare
Member
Author
|
Superseded by #22, which contains the same commits as a single PR. |
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.
Stacked on #18.
Made with Cursor