Step-by-step derivation
S001 · implies
Before
source roles = [regex-bounded-language]
After
derived = [[alphabet, canonical_typed_AST, max_length, complete_bounded_language, word_count, bounded_enumeration_complete, epsilon_cycle_scope]]
Conditions: none
List the complete operation/mode field order without JavaScript or answer-shape inference;Boolean,string,null and an unclaimed result remain distinct.
Step identifiers and dependencies
Rule: source_ordered_fields_without_JS · Uses: G001
S002 · implies
Before
source roles = [Regex ORIGINAL bounded.ast.children[0], [a, b, c], {'type': 'symbol', 'value': 'c'}]After
derived = [{'type': 'symbol', 'value': 'c'}, {type:"symbol",value:"c"}]Conditions: none
For EACH node qualify type,exact keys and symbol membership.A union checks raw arity>=2 BEFORE extensional deduplication,so its canonical form may have one child.Concatenation retains order and star retains its child.Do not revalidate canonical output as raw input with a new arity gate.
Step identifiers and dependencies
Rule: Regex_EACH_typed_node_exact_keys_symbol_scope_union_set_concat_order · Uses: G001, S001
S003 · implies
Before
source roles = [Regex ORIGINAL bounded.ast.children[1].child, [a, b, c], {'type': 'symbol', 'value': 'a'}]After
derived = [{'type': 'symbol', 'value': 'a'}, {type:"symbol",value:"a"}]Conditions: none
For EACH node qualify type,exact keys and symbol membership.A union checks raw arity>=2 BEFORE extensional deduplication,so its canonical form may have one child.Concatenation retains order and star retains its child.Do not revalidate canonical output as raw input with a new arity gate.
Step identifiers and dependencies
Rule: Regex_EACH_typed_node_exact_keys_symbol_scope_union_set_concat_order · Uses: G001, S002
S004 · implies
Before
source roles = [Regex ORIGINAL bounded.ast.children[1], [a, b, c], {'type': 'star', 'child': {'type': 'symbol', 'value': 'a'}}]After
derived = [{'type': 'star', 'child': {'type': 'symbol', 'value': 'a'}}, {child:{type:"symbol",value:"a"},type:"star"}]Conditions: none
For EACH node qualify type,exact keys and symbol membership.A union checks raw arity>=2 BEFORE extensional deduplication,so its canonical form may have one child.Concatenation retains order and star retains its child.Do not revalidate canonical output as raw input with a new arity gate.
Step identifiers and dependencies
Rule: Regex_EACH_typed_node_exact_keys_symbol_scope_union_set_concat_order · Uses: G001, S003
S005 · implies
Before
source roles = [Regex ORIGINAL bounded.ast, [a, b, c], {'type': 'union', 'children': [{'type': 'symbol', 'value': 'c'}, {'type': 'star', 'child': {'type': 'symbol', 'value': 'a'}}]}]After
derived = [{'type': 'union', 'children': [{'type': 'star', 'child': {'type': 'symbol', 'value': 'a'}}, {'type': 'symbol', 'value': 'c'}]}, {children:[{child:{type:"symbol",value:"a"},type:"star"},{type:"symbol",value:"c"}],type:"union"}]Conditions: none
For EACH node qualify type,exact keys and symbol membership.A union checks raw arity>=2 BEFORE extensional deduplication,so its canonical form may have one child.Concatenation retains order and star retains its child.Do not revalidate canonical output as raw input with a new arity gate.
Step identifiers and dependencies
Rule: Regex_EACH_typed_node_exact_keys_symbol_scope_union_set_concat_order · Uses: G001, S004
S006 · implies
Before
source roles = [[a, b, c], 1]
After
derived = [4]
Conditions: none
The bounded universe has sum |alphabet|^k words,including epsilon,and source budget<=4096.This defines complete bounded enumeration,not unbounded equivalence.
Step identifiers and dependencies
Rule: Regex_COMPLETE_bounded_word_universe_not_unbounded_equivalence · Uses: G001, S005
S007 · implies
Before
source roles = [Regex ORIGINAL bounded.language.union[0].star_base, symbol, {'type': 'symbol', 'value': 'a'}, 1]After
derived = [[[a]]]
Conditions: none
The empty language has no words;epsilon has the single empty word;a symbol has its one token within the queried length bound.Words are token arrays,not reinterpreted character splits.
Step identifiers and dependencies
Rule: Regex_atomic_language_EMPTY_versus_EPS_versus_literal_symbol · Uses: G001, S006
S008 · implies
Before
source roles = [Regex ORIGINAL bounded.language.union[0], 1, 0, [[]], [[a]]]
After
derived = [[[a]], [[a], []]]
Conditions: none
Start with epsilon and add ALL base concatenations within the length bound.Only genuinely new words enter the next frontier.Epsilon cycles add none.The finite alphabet/length bound and4096 budget give a finite universe;completion requires an empty frontier,not an arbitrary iteration cutoff.
Step identifiers and dependencies
Rule: Regex_STAR_each_extensional_frontier_closure_EPS_cycles_terminate · Uses: G001, S007
S009 · implies
Before
source roles = [Regex ORIGINAL bounded.language.union[0], 1, 1, [[a]], [[a]]]
After
derived = [[], [[a], []]]
Conditions: none
Start with epsilon and add ALL base concatenations within the length bound.Only genuinely new words enter the next frontier.Epsilon cycles add none.The finite alphabet/length bound and4096 budget give a finite universe;completion requires an empty frontier,not an arbitrary iteration cutoff.
Step identifiers and dependencies
Rule: Regex_STAR_each_extensional_frontier_closure_EPS_cycles_terminate · Uses: G001, S008
S010 · implies
Before
source roles = [Regex ORIGINAL bounded.language.union[1], symbol, {'type': 'symbol', 'value': 'c'}, 1]After
derived = [[[c]]]
Conditions: none
The empty language has no words;epsilon has the single empty word;a symbol has its one token within the queried length bound.Words are token arrays,not reinterpreted character splits.
Step identifiers and dependencies
Rule: Regex_atomic_language_EMPTY_versus_EPS_versus_literal_symbol · Uses: G001, S009
S011 · implies
Before
source roles = [Regex ORIGINAL bounded.language, 1, [[[a], []], [[c]]]]
After
derived = [[[a], [c], []]]
Conditions: none
Union includes ALL child languages,retaining each word once without reordering its symbols.Structural induction accounts for inclusion/exclusion of every word within the bound.
Step identifiers and dependencies
Rule: Regex_union_ALL_child_languages_extensional_bound · Uses: G001, S010
Result
([a, b, c], {children:[{child:{type:"symbol",value:"a"},type:"star"},{type:"symbol",value:"c"}],type:"union"}, 1, [[], [a], [c]], 3, Yes, epsilon_cycles_terminate_by_extensional_dedup)The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.