逐步推導
S001 · implies
操作前
source roles = [regex-word-membership]
操作後
derived = [[alphabet, canonical_typed_AST, word, member, accepted_words_at_same_length, membership_scope]]
條件:無
直接明列此操作與mode完整欄序,不依JavaScript、不由答案形狀猜角色;布林、字串、null與未作聲稱保持不同。
步驟識別與依賴
規則:source_ordered_fields_without_JS · 依賴:G001
S002 · implies
操作前
source roles = [Regex ORIGINAL membership.ast.children[0], [a, b, c], {'type': 'symbol', 'value': 'b'}]操作後
derived = [{'type': 'symbol', 'value': 'b'}, {type:"symbol",value:"b"}]條件:無
逐node檢type、exact keys與symbol membership。union在raw至少兩child之後才extensional去重(canonical可剩一child);concat保原順序,star保child。不把canonical結果當raw再多加arity限制。
步驟識別與依賴
規則:Regex_EACH_typed_node_exact_keys_symbol_scope_union_set_concat_order · 依賴:G001, S001
S003 · implies
操作前
source roles = [Regex ORIGINAL membership.ast.children[1], [a, b, c], {'type': 'symbol', 'value': 'c'}]操作後
derived = [{'type': 'symbol', 'value': 'c'}, {type:"symbol",value:"c"}]條件:無
逐node檢type、exact keys與symbol membership。union在raw至少兩child之後才extensional去重(canonical可剩一child);concat保原順序,star保child。不把canonical結果當raw再多加arity限制。
步驟識別與依賴
規則:Regex_EACH_typed_node_exact_keys_symbol_scope_union_set_concat_order · 依賴:G001, S002
S004 · implies
操作前
source roles = [Regex ORIGINAL membership.ast, [a, b, c], {'type': 'concat', 'children': [{'type': 'symbol', 'value': 'b'}, {'type': 'symbol', 'value': 'c'}]}]操作後
derived = [{'type': 'concat', 'children': [{'type': 'symbol', 'value': 'b'}, {'type': 'symbol', 'value': 'c'}]}, {children:[{type:"symbol",value:"b"},{type:"symbol",value:"c"}],type:"concat"}]條件:無
逐node檢type、exact keys與symbol membership。union在raw至少兩child之後才extensional去重(canonical可剩一child);concat保原順序,star保child。不把canonical結果當raw再多加arity限制。
步驟識別與依賴
規則:Regex_EACH_typed_node_exact_keys_symbol_scope_union_set_concat_order · 依賴:G001, S003
S005 · implies
操作前
source roles = [[a, b, c], 1]
操作後
derived = [4]
條件:無
界內所有words個數為Σ|alphabet|^k(含epsilon),來源budget至多4096;這限定完整枚舉範圍,不構成unbounded等價證書。
步驟識別與依賴
規則:Regex_COMPLETE_bounded_word_universe_not_unbounded_equivalence · 依賴:G001, S004
S006 · implies
操作前
source roles = [Regex ORIGINAL membership.language.concat[0], symbol, {'type': 'symbol', 'value': 'b'}, 1]操作後
derived = [[[b]]]
條件:無
empty-language無任何word;epsilon有唯一空word;symbol有其一個token,受查詢長度界限制。word是token array,不以字串split改變alphabet語義。
步驟識別與依賴
規則:Regex_atomic_language_EMPTY_versus_EPS_versus_literal_symbol · 依賴:G001, S005
S007 · implies
操作前
source roles = [Regex ORIGINAL membership.language, 0, 1, [[]], [[b]]]
操作後
derived = [[[b]]]
條件:無
依原concat次序取全部prefix×下一child之word concatenations;只截去過長word。總長<=m時各片段長亦<=m,所以不會因截斷漏掉合法組合。
步驟識別與依賴
規則:Regex_EACH_ordered_concatenation_complete_cartesian_word_products · 依賴:G001, S006
S008 · implies
操作前
source roles = [Regex ORIGINAL membership.language.concat[1], symbol, {'type': 'symbol', 'value': 'c'}, 1]操作後
derived = [[[c]]]
條件:無
empty-language無任何word;epsilon有唯一空word;symbol有其一個token,受查詢長度界限制。word是token array,不以字串split改變alphabet語義。
步驟識別與依賴
規則:Regex_atomic_language_EMPTY_versus_EPS_versus_literal_symbol · 依賴:G001, S007
S009 · implies
操作前
source roles = [Regex ORIGINAL membership.language, 1, 1, [[b]], [[c]]]
操作後
derived = [[]]
條件:無
依原concat次序取全部prefix×下一child之word concatenations;只截去過長word。總長<=m時各片段長亦<=m,所以不會因截斷漏掉合法組合。
步驟識別與依賴
規則:Regex_EACH_ordered_concatenation_complete_cartesian_word_products · 依賴:G001, S008
S010 · implies
操作前
source roles = [[a, b, c], {'type': 'concat', 'children': [{'type': 'symbol', 'value': 'b'}, {'type': 'symbol', 'value': 'c'}]}, [b], 1]操作後
derived = [否, []]
條件:無
以完整查詢長度重新計算語言並取該長度全部accepted words;空word與symbol不相同,且不把太短界沒列出當nonmembership。
步驟識別與依賴
規則:Regex_WHOLE_queried_word_exact_membership_complete_same_length_slice · 依賴:G001, S009
結論
([a, b, c], {children:[{type:"symbol",value:"b"},{type:"symbol",value:"c"}],type:"concat"}, [b], 否, [], complete_membership_not_absence_from_an_insufficient_bound)依上列完整代值及條件核對得到原題答案;原題編號、格式與狀態保持不變。