原題與已知條件
實矩陣,橫列/直行次序固定,A=[[12, 11, 10, 9, 8], [14, 13, 12, 11, 10], [16, 15, 14, 13, 12], [18, 17, 16, 15, 14], [20, 19, 18, 17, 16]]、B=[[-12, -11, -10, -9, -8], [-14, -13, -12, -11, -10], [-16, -15, -14, -13, -12], [-18, -17, -16, -15, -14], [-20, -19, -18, -17, -16]]。明示兩矩陣同尺寸,求 A+B,以巢狀橫列列表回答。
G001 — 實矩陣,橫列/直行次序固定,A=[[12, 11, 10, 9, 8], [14, 13, 12, 11, 10], [16, 15, 14, 13, 12], [18, 17, 16, 15, 14], [20, 19, 18, 17, 16]]、B=[[-12, -11, -10, -9, -8], [-14, -13, -12, -11, -10], [-16, -15, -14, -13, -12], [-18, -17, -16, -15, -14], [-20, -19, -18, -17, -16]]。明示兩矩陣同尺寸,求 A+B,以巢狀橫列列表回答。
逐步推導
S001 · implies
操作前
source roles = [qf-matrix-addition, matrix_addition, reals, []]
操作後
derived = [[nested_ROW_matrix]]
條件:無
MOD25用LOCAL hyphen及具名domain,矩陣legacy用underscore/reals,BASElogic不補domain/op。輸出tuple/矩陣/數字欄與fraction文字各依來源,不一律保/1;原中英/AST/status不變。
步驟識別與依賴
規則:R65_SOURCE_bank_keys_operation_domain_ordered_output_roles · 依賴:G001
S002 · implies
操作前
source roles = [A ORIGINAL, [[12, 11, 10, 9, 8], [14, 13, 12, 11, 10], [16, 15, 14, 13, 12], [18, 17, 16, 15, 14], [20, 19, 18, 17, 16]]]
操作後
derived = [5, 5]
條件:無
本bank允許1..5乘1..5矩陣,不搬R64的2×2界。每個raw cell先驗SAFE,包括shape/entry未選到的欄位;不改原row順序。
步驟識別與依賴
規則:Matrix_RAW_rectangular_1to5_ALL_SAFE_entries_even_unused · 依賴:G001, S001
S003 · implies
操作前
source roles = [B ORIGINAL, [[-12, -11, -10, -9, -8], [-14, -13, -12, -11, -10], [-16, -15, -14, -13, -12], [-18, -17, -16, -15, -14], [-20, -19, -18, -17, -16]]]
操作後
derived = [5, 5]
條件:無
本bank允許1..5乘1..5矩陣,不搬R64的2×2界。每個raw cell先驗SAFE,包括shape/entry未選到的欄位;不改原row順序。
步驟識別與依賴
規則:Matrix_RAW_rectangular_1to5_ALL_SAFE_entries_even_unused · 依賴:G001, S002
S004 · calculation
操作前
Matrix sum ORIGINAL entry0,0 := sum(12, -12)
操作後
Matrix sum ORIGINAL entry0,0 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · calculation
操作前
Matrix sum ORIGINAL entry0,1 := sum(11, -11)
操作後
Matrix sum ORIGINAL entry0,1 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S004
S006 · calculation
操作前
Matrix sum ORIGINAL entry0,2 := sum(10, -10)
操作後
Matrix sum ORIGINAL entry0,2 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S005
S007 · calculation
操作前
Matrix sum ORIGINAL entry0,3 := sum(9, -9)
操作後
Matrix sum ORIGINAL entry0,3 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S006
S008 · calculation
操作前
Matrix sum ORIGINAL entry0,4 := sum(8, -8)
操作後
Matrix sum ORIGINAL entry0,4 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S007
S009 · calculation
操作前
Matrix sum ORIGINAL entry1,0 := sum(14, -14)
操作後
Matrix sum ORIGINAL entry1,0 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S008
S010 · calculation
操作前
Matrix sum ORIGINAL entry1,1 := sum(13, -13)
操作後
Matrix sum ORIGINAL entry1,1 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S009
S011 · calculation
操作前
Matrix sum ORIGINAL entry1,2 := sum(12, -12)
操作後
Matrix sum ORIGINAL entry1,2 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S010
S012 · calculation
操作前
Matrix sum ORIGINAL entry1,3 := sum(11, -11)
操作後
Matrix sum ORIGINAL entry1,3 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S011
S013 · calculation
操作前
Matrix sum ORIGINAL entry1,4 := sum(10, -10)
操作後
Matrix sum ORIGINAL entry1,4 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S012
S014 · calculation
操作前
Matrix sum ORIGINAL entry2,0 := sum(16, -16)
操作後
Matrix sum ORIGINAL entry2,0 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S013
S015 · calculation
操作前
Matrix sum ORIGINAL entry2,1 := sum(15, -15)
操作後
Matrix sum ORIGINAL entry2,1 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S014
S016 · calculation
操作前
Matrix sum ORIGINAL entry2,2 := sum(14, -14)
操作後
Matrix sum ORIGINAL entry2,2 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S015
S017 · calculation
操作前
Matrix sum ORIGINAL entry2,3 := sum(13, -13)
操作後
Matrix sum ORIGINAL entry2,3 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S016
S018 · calculation
操作前
Matrix sum ORIGINAL entry2,4 := sum(12, -12)
操作後
Matrix sum ORIGINAL entry2,4 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S017
S019 · calculation
操作前
Matrix sum ORIGINAL entry3,0 := sum(18, -18)
操作後
Matrix sum ORIGINAL entry3,0 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S018
S020 · calculation
操作前
Matrix sum ORIGINAL entry3,1 := sum(17, -17)
操作後
Matrix sum ORIGINAL entry3,1 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S019
S021 · calculation
操作前
Matrix sum ORIGINAL entry3,2 := sum(16, -16)
操作後
Matrix sum ORIGINAL entry3,2 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S020
S022 · calculation
操作前
Matrix sum ORIGINAL entry3,3 := sum(15, -15)
操作後
Matrix sum ORIGINAL entry3,3 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S021
S023 · calculation
操作前
Matrix sum ORIGINAL entry3,4 := sum(14, -14)
操作後
Matrix sum ORIGINAL entry3,4 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S022
S024 · calculation
操作前
Matrix sum ORIGINAL entry4,0 := sum(20, -20)
操作後
Matrix sum ORIGINAL entry4,0 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S023
S025 · calculation
操作前
Matrix sum ORIGINAL entry4,1 := sum(19, -19)
操作後
Matrix sum ORIGINAL entry4,1 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S024
S026 · calculation
操作前
Matrix sum ORIGINAL entry4,2 := sum(18, -18)
操作後
Matrix sum ORIGINAL entry4,2 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S025
S027 · calculation
操作前
Matrix sum ORIGINAL entry4,3 := sum(17, -17)
操作後
Matrix sum ORIGINAL entry4,3 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S026
S028 · calculation
操作前
Matrix sum ORIGINAL entry4,4 := sum(16, -16)
操作後
Matrix sum ORIGINAL entry4,4 = 0
條件:無
保原操作數與次序作精確運算;有理計算另驗此MOD25來源的pre-reduction界。不是把所有衍生整數都截成100萬,也不用浮點近似。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S027
S029 · implies
操作前
source roles = [[[12, 11, 10, 9, 8], [14, 13, 12, 11, 10], [16, 15, 14, 13, 12], [18, 17, 16, 15, 14], [20, 19, 18, 17, 16]], [[-12, -11, -10, -9, -8], [-14, -13, -12, -11, -10], [-16, -15, -14, -13, -12], [-18, -17, -16, -15, -14], [-20, -19, -18, -17, -16]]]
操作後
derived = [[[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]]
條件:無
只在相同shape逐對應位置相加,衍生和可超SAFE,不重新當raw矩陣驗。不可補0或broadcast強行加不同shape。
步驟識別與依賴
規則:Matrix_ADDITION_all_corresponding_entries_NO_padding_or_raw_recap · 依賴:G001, S028