逐步推導
S001 · implies
操作前
source roles = [qf-tree-added-edge-cycle, [E, V, domain, operation, u, v]]
操作後
derived = [tree_added_edge_cycle, finite_simple_undirected]
條件:無
各bank的keys/operation/domain獨立:LDL/PULSE/function legacy為表內underscore,TREE是完整tree_*與明定domain,BASE signed較寬不偷加op/domain。所有算術保持binary primitive契約。
步驟識別與依賴
規則:R69_SOURCE_specific_keys_operation_domain_AND_binary_contract · 依賴:G001
S002 · implies
操作前
source roles = [TREE vertices ORIGINAL, 10, [0, 1, 2]]
操作後
derived = [[0, 1, 2]]
條件:無
先驗全部raw SAFE元素、不重複及此bank個數界,空集合法;只把衍生表示排序,原JSON不修改。TREE與LDL的上限不可互搬。
步驟識別與依賴
規則:Finite_RAW_ALL_SAFE_distinct_labels_then_derived_sort · 依賴:G001, S001
S003 · implies
操作前
source roles = [TREE raw edges ORIGINAL, 0, [1, 0]]
操作後
derived = [[1, 0]]
條件:無
去重之前逐raw pair驗恰兩個SAFE分量;相同row可作表示重複,但不能先丟掉未驗欄位。
步驟識別與依賴
規則:Pairs_EVERY_RAW_two_SAFE_cells_BEFORE_any_dedup · 依賴:G001, S002
S004 · implies
操作前
source roles = [TREE raw edges ORIGINAL, 1, [0, 2]]
操作後
derived = [[0, 2]]
條件:無
去重之前逐raw pair驗恰兩個SAFE分量;相同row可作表示重複,但不能先丟掉未驗欄位。
步驟識別與依賴
規則:Pairs_EVERY_RAW_two_SAFE_cells_BEFORE_any_dedup · 依賴:G001, S003
S005 · implies
操作前
source roles = [[0, 1, 2], [[0, 2], [1, 0]], 是]
操作後
derived = [[[0, 1], [0, 2]], [[0, [1, 2]], [1, [0]], [2, [0]]]]
條件:無
完整raw edges先型別檢查、再作無向正規化/去重,反向重複合法;輸入edge不准loop或carrier外端點,孤立頂點仍留在V。TREE raw E不借用LDL的200界。
步驟識別與依賴
規則:Graph_WHOLE_simple_undirected_edges_normalized_NO_loops_or_outside · 依賴:G001, S004
S006 · implies
操作前
source roles = [0, 1, 0, 1]
操作後
derived = [是]
條件:無
端點在不同已建components才合併;若已同component,這條edge閉成cycle。逐所有components的edge檢查,不只看一個連通塊。
步驟識別與依賴
規則:Tree_EACH_edge_union_components_cycle_audit · 依賴:G001, S005
S007 · implies
操作前
source roles = [0, 2, 1, 2]
操作後
derived = [是]
條件:無
端點在不同已建components才合併;若已同component,這條edge閉成cycle。逐所有components的edge檢查,不只看一個連通塊。
步驟識別與依賴
規則:Tree_EACH_edge_union_components_cycle_audit · 依賴:G001, S006
S008 · implies
操作前
source roles = [0, [1, 2]]
操作後
derived = [[0, 1, 2], [0]]
條件:無
由最小label逐鄰點擴展,保實際已達集合;edge數等於V−1仍不能取代連通性檢查。
步驟識別與依賴
規則:Tree_CONNECTIVITY_actual_reachability_from_min_label · 依賴:G001, S007
S009 · implies
操作前
source roles = [1, [0]]
操作後
derived = [[0, 1, 2], [0, 1]]
條件:無
由最小label逐鄰點擴展,保實際已達集合;edge數等於V−1仍不能取代連通性檢查。
步驟識別與依賴
規則:Tree_CONNECTIVITY_actual_reachability_from_min_label · 依賴:G001, S008
S010 · implies
操作前
source roles = [2, [0]]
操作後
derived = [[0, 1, 2], [0, 1, 2]]
條件:無
由最小label逐鄰點擴展,保實際已達集合;edge數等於V−1仍不能取代連通性檢查。
步驟識別與依賴
規則:Tree_CONNECTIVITY_actual_reachability_from_min_label · 依賴:G001, S009
S011 · implies
操作前
source roles = [[0, 1, 2], [[0, 1], [0, 2]]]
操作後
derived = [是, 是, 是, 是]
條件:無
本條目tree明定非空+連通+無環;empty graph No,singleton無edge Yes。三角形加孤立點即使E=V−1也No。
步驟識別與依賴
規則:Tree_NONEMPTY_connected_acyclic_ALL_three · 依賴:G001, S010
S012 · implies
操作前
source roles = [1, 0]
操作後
derived = [[1, 0]]
條件:無
首次發現鄰點時保parent;label0是合法頂點,不把0當結束sentinel。
步驟識別與依賴
規則:Tree_PATH_EACH_parent_discovery_keep_label0 · 依賴:G001, S011
S013 · implies
操作前
source roles = [0, 2]
操作後
derived = [[1, 0, 2]]
條件:無
首次發現鄰點時保parent;label0是合法頂點,不把0當結束sentinel。
步驟識別與依賴
規則:Tree_PATH_EACH_parent_discovery_keep_label0 · 依賴:G001, S012
S014 · implies
操作前
source roles = [1, 2]
操作後
derived = [[1, 0, 2]]
條件:無
依parent回溯再反轉保s→t順序,每對相鄰頂點真有edge且不重複;兩條不同simple paths會形成cycle,與tree無環矛盾。s=t的零edge道路是[s]。
步驟識別與依賴
規則:Tree_PATH_ORDERED_edges_verified_unique_by_acyclicity · 依賴:G001, S013
S015 · implies
操作前
source roles = [2, 1, [1, 0, 2]]
操作後
derived = [[1, 0, 2, 1]]
條件:無
新edge需端點不同、原edge不存在且端點在V;由小端點沿原tree唯一道路到大端點,再新增edge回起點,最後才重複起點閉環。不可排序cycle頂點或接受已存在反向edge。
步驟識別與依賴
規則:Tree_GENUINELY_NEW_edge_closes_UNIQUE_old_path_MIN_to_MAX · 依賴:G001, S014