逐步推導
S001 · implies
操作前
source operation=crt-uniqueness-mod-product;original snapshot and mathematics retained
操作後
explicit ordered source output fields=[solution, other, product, same_residue_class, boundary]
條件:無
原題的歷史介面標記保留在快照;本頁直接列原始欄位順序,不需JavaScript或外部表。欄位描述不自動成為數學證據,No標記須依本題的聲稱範圍解讀。
步驟識別與依賴
規則:source_ordered_interface_explicit_without_javascript · 依賴:G001
S002 · calculation
操作前
original residue slot0 exact quotient := div(19, 3)
操作後
original residue slot0 exact quotient = 19/3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S001
S003 · calculation
操作前
original residue slot0 floor quotient multiple := mul(6, 3)
操作後
original residue slot0 floor quotient multiple = 18
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S002
S004 · calculation
操作前
original residue slot0 normalized remainder := sub(19, 18)
操作後
original residue slot0 normalized remainder = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · implies
操作前
original residue slot0:integer value=19;positive modulus=3;exact ratio=19/3;floor quotient=6
操作後
value=q*modulus+remainder;normalized residue=1 in[0,3)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S004
S006 · calculation
操作前
original residue slot1 exact quotient := div(39, 34)
操作後
original residue slot1 exact quotient = 39/34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S005
S007 · calculation
操作前
original residue slot1 floor quotient multiple := mul(1, 34)
操作後
original residue slot1 floor quotient multiple = 34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S006
S008 · calculation
操作前
original residue slot1 normalized remainder := sub(39, 34)
操作後
original residue slot1 normalized remainder = 5
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S007
S009 · implies
操作前
original residue slot1:integer value=39;positive modulus=34;exact ratio=39/34;floor quotient=1
操作後
value=q*modulus+remainder;normalized residue=5 in[0,34)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S008
S010 · calculation
操作前
CRT modulus product prefix0 := mul(1, 3)
操作後
CRT modulus product prefix0 = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S009
S011 · implies
操作前
LCM prefix0 gcd:positive original gcd inputs=[1, 3]
操作後
Euclidean rows[a,b,q,r] with a=q*b+r=[[1, 3, 0, 1], [3, 1, 3, 0]];positive gcd=1
條件:無
每次餘數替換保同一公因數集,最後非零值才是gcd;逐列列出q與r供來源核對。
步驟識別與依賴
規則:crt_pair_gcd_exact_euclidean_witness · 依賴:G001, S010
S012 · calculation
操作前
CRT LCM prefix0 quotient := div(1, 1)
操作後
CRT LCM prefix0 quotient = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S011
S013 · calculation
操作前
CRT LCM prefix0 value := mul(1, 3)
操作後
CRT LCM prefix0 value = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S012
S014 · calculation
操作前
CRT modulus product prefix1 := mul(3, 34)
操作後
CRT modulus product prefix1 = 102
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S013
S015 · implies
操作前
LCM prefix1 gcd:positive original gcd inputs=[3, 34]
操作後
Euclidean rows[a,b,q,r] with a=q*b+r=[[3, 34, 0, 3], [34, 3, 11, 1], [3, 1, 3, 0]];positive gcd=1
條件:無
每次餘數替換保同一公因數集,最後非零值才是gcd;逐列列出q與r供來源核對。
步驟識別與依賴
規則:crt_pair_gcd_exact_euclidean_witness · 依賴:G001, S014
S016 · calculation
操作前
CRT LCM prefix1 quotient := div(3, 1)
操作後
CRT LCM prefix1 quotient = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S015
S017 · calculation
操作前
CRT LCM prefix1 value := mul(3, 34)
操作後
CRT LCM prefix1 value = 102
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S016
S018 · implies
操作前
original modulus pair0,1:positive original gcd inputs=[3, 34]
操作後
Euclidean rows[a,b,q,r] with a=q*b+r=[[3, 34, 0, 3], [34, 3, 11, 1], [3, 1, 3, 0]];positive gcd=1
條件:無
每次餘數替換保同一公因數集,最後非零值才是gcd;逐列列出q與r供來源核對。
步驟識別與依賴
規則:crt_pair_gcd_exact_euclidean_witness · 依賴:G001, S017
S019 · calculation
操作前
CRT original pair0,1 residue difference := sub(1, 5)
操作後
CRT original pair0,1 residue difference = -4
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S018
S020 · calculation
操作前
CRT original pair0,1 difference divided by gcd := div(-4, 1)
操作後
CRT original pair0,1 difference divided by gcd = -4
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S019
S021 · implies
操作前
original constraint slots=[0, 1];moduli=[3, 34];gcd=1;normalized residue difference=-4
操作後
difference/gcd=-4;pair coprime=是;pair compatible=是
條件:無
任意共同解會使兩餘數差被gcd整除,所以先核每對;不互質不等於無解,差也可能是gcd倍數。
步驟識別與依賴
規則:crt_every_pair_compatibility_not_automatic_inconsistency · 依賴:G001, S020
S022 · implies
操作前
original aligned moduli=[3, 34];original signed residues=[19, 39];normalized residues=[1, 5];all pair audits=[[0, 1, 1, 是]]
操作後
pairwise coprime=是;gcd compatible=是;product=102;LCM period=102
條件:無
模數與餘數對齊保原順序,不拿semantic排序各自重排。互質主題用product,非互質邊界保lcm;modulus1不增加限制。
步驟識別與依賴
規則:crt_original_constraint_order_product_vs_lcm · 依賴:G001, S021
S023 · calculation
操作前
merge original slot0 Euclidean step0 quotient fraction := div(1, 3)
操作後
merge original slot0 Euclidean step0 quotient fraction = 1/3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S022
S024 · calculation
操作前
merge original slot0 Euclidean step0 divisor multiple := mul(0, 3)
操作後
merge original slot0 Euclidean step0 divisor multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S023
S025 · calculation
操作前
merge original slot0 Euclidean step0 remainder := sub(1, 0)
操作後
merge original slot0 Euclidean step0 remainder = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S024
S026 · calculation
操作前
merge original slot0 Euclidean step0 first coefficient multiple := mul(0, 0)
操作後
merge original slot0 Euclidean step0 first coefficient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S025
S027 · calculation
操作前
merge original slot0 Euclidean step0 first coefficient difference := sub(1, 0)
操作後
merge original slot0 Euclidean step0 first coefficient difference = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S026
S028 · calculation
操作前
merge original slot0 Euclidean step0 second coefficient multiple := mul(0, 1)
操作後
merge original slot0 Euclidean step0 second coefficient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S027
S029 · calculation
操作前
merge original slot0 Euclidean step0 second coefficient difference := sub(0, 0)
操作後
merge original slot0 Euclidean step0 second coefficient difference = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S028
S030 · implies
操作前
merge original slot0:step=0;current remainders=[1, 3];coefficient pairs=[[1, 0], [0, 1]];exact ratio=1/3;floor q=0
操作後
next remainder=1;next signed coefficient pair=[1, 0];a*x+b*y equals next remainder
條件:無
同一q同時更新餘數與兩個有號係數,保每列a·x+b·y=餘數;非只算gcd再猜inverse。
步驟識別與依賴
規則:crt_extended_euclid_invariant_signed_coefficients · 依賴:G001, S029
S031 · calculation
操作前
merge original slot0 Euclidean step1 quotient fraction := div(3, 1)
操作後
merge original slot0 Euclidean step1 quotient fraction = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S030
S032 · calculation
操作前
merge original slot0 Euclidean step1 divisor multiple := mul(3, 1)
操作後
merge original slot0 Euclidean step1 divisor multiple = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S031
S033 · calculation
操作前
merge original slot0 Euclidean step1 remainder := sub(3, 3)
操作後
merge original slot0 Euclidean step1 remainder = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S032
S034 · calculation
操作前
merge original slot0 Euclidean step1 first coefficient multiple := mul(3, 1)
操作後
merge original slot0 Euclidean step1 first coefficient multiple = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S033
S035 · calculation
操作前
merge original slot0 Euclidean step1 first coefficient difference := sub(0, 3)
操作後
merge original slot0 Euclidean step1 first coefficient difference = -3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S034
S036 · calculation
操作前
merge original slot0 Euclidean step1 second coefficient multiple := mul(3, 0)
操作後
merge original slot0 Euclidean step1 second coefficient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S035
S037 · calculation
操作前
merge original slot0 Euclidean step1 second coefficient difference := sub(1, 0)
操作後
merge original slot0 Euclidean step1 second coefficient difference = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S036
S038 · implies
操作前
merge original slot0:step=1;current remainders=[3, 1];coefficient pairs=[[0, 1], [1, 0]];exact ratio=3;floor q=3
操作後
next remainder=0;next signed coefficient pair=[-3, 1];a*x+b*y equals next remainder
條件:無
同一q同時更新餘數與兩個有號係數,保每列a·x+b·y=餘數;非只算gcd再猜inverse。
步驟識別與依賴
規則:crt_extended_euclid_invariant_signed_coefficients · 依賴:G001, S037
S039 · calculation
操作前
merge original slot0 final first Bezout term := mul(1, 1)
操作後
merge original slot0 final first Bezout term = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S038
S040 · calculation
操作前
merge original slot0 final second Bezout term := mul(3, 0)
操作後
merge original slot0 final second Bezout term = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S039
S041 · calculation
操作前
merge original slot0 final Bezout identity := sum(1, 0)
操作後
merge original slot0 final Bezout identity = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S040
S042 · calculation
操作前
merge slot0 new residue minus old class := sub(1, 0)
操作後
merge slot0 new residue minus old class = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S041
S043 · calculation
操作前
merge slot0 difference divided by gcd := div(1, 1)
操作後
merge slot0 difference divided by gcd = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S042
S044 · calculation
操作前
merge slot0 reduced old modulus := div(1, 1)
操作後
merge slot0 reduced old modulus = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S043
S045 · calculation
操作前
merge slot0 reduced new modulus := div(3, 1)
操作後
merge slot0 reduced new modulus = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S044
S046 · calculation
操作前
merge slot0 new LCM period := mul(1, 3)
操作後
merge slot0 new LCM period = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S045
S047 · calculation
操作前
merge slot0 reduced-unit inverse exact quotient := div(1, 3)
操作後
merge slot0 reduced-unit inverse exact quotient = 1/3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S046
S048 · calculation
操作前
merge slot0 reduced-unit inverse floor quotient multiple := mul(0, 3)
操作後
merge slot0 reduced-unit inverse floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S047
S049 · calculation
操作前
merge slot0 reduced-unit inverse normalized remainder := sub(1, 0)
操作後
merge slot0 reduced-unit inverse normalized remainder = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S048
S050 · implies
操作前
merge slot0 reduced-unit inverse:integer value=1;positive modulus=3;exact ratio=1/3;floor quotient=0
操作後
value=q*modulus+remainder;normalized residue=1 in[0,3)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S049
S051 · calculation
操作前
merge slot0 parameter congruence product := mul(1, 1)
操作後
merge slot0 parameter congruence product = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S050
S052 · calculation
操作前
merge slot0 normalized parameter exact quotient := div(1, 3)
操作後
merge slot0 normalized parameter exact quotient = 1/3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S051
S053 · calculation
操作前
merge slot0 normalized parameter floor quotient multiple := mul(0, 3)
操作後
merge slot0 normalized parameter floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S052
S054 · calculation
操作前
merge slot0 normalized parameter normalized remainder := sub(1, 0)
操作後
merge slot0 normalized parameter normalized remainder = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S053
S055 · implies
操作前
merge slot0 normalized parameter:integer value=1;positive modulus=3;exact ratio=1/3;floor quotient=0
操作後
value=q*modulus+remainder;normalized residue=1 in[0,3)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S054
S056 · calculation
操作前
merge slot0 old modulus times parameter := mul(1, 1)
操作後
merge slot0 old modulus times parameter = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S055
S057 · calculation
操作前
merge slot0 unnormalized common solution := sum(0, 1)
操作後
merge slot0 unnormalized common solution = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S056
S058 · calculation
操作前
merge slot0 least class representative exact quotient := div(1, 3)
操作後
merge slot0 least class representative exact quotient = 1/3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S057
S059 · calculation
操作前
merge slot0 least class representative floor quotient multiple := mul(0, 3)
操作後
merge slot0 least class representative floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S058
S060 · calculation
操作前
merge slot0 least class representative normalized remainder := sub(1, 0)
操作後
merge slot0 least class representative normalized remainder = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S059
S061 · implies
操作前
merge slot0 least class representative:integer value=1;positive modulus=3;exact ratio=1/3;floor quotient=0
操作後
value=q*modulus+remainder;normalized residue=1 in[0,3)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S060
S062 · implies
操作前
old FULL solution class=0 mod1;new original constraint=1 mod3;gcd=1;Bezout coefficients=[1, 0];reduced coprime moduli=[1, 3]
操作後
write old x=a+M*t;reduced equation gives t=1 mod3;ALL merged solutions x=1 mod3
條件:無
代回舊解類後除gcd,Bézout除g給互質係數,t恰落在一個模m/g的類。乘回M得到lcm週期;這包含所有解,不僅驗算找到一點。
步驟識別與依賴
規則:crt_constructive_merge_all_solutions_not_one_witness · 依賴:G001, S061
S063 · calculation
操作前
merge original slot1 Euclidean step0 quotient fraction := div(3, 34)
操作後
merge original slot1 Euclidean step0 quotient fraction = 3/34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S062
S064 · calculation
操作前
merge original slot1 Euclidean step0 divisor multiple := mul(0, 34)
操作後
merge original slot1 Euclidean step0 divisor multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S063
S065 · calculation
操作前
merge original slot1 Euclidean step0 remainder := sub(3, 0)
操作後
merge original slot1 Euclidean step0 remainder = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S064
S066 · calculation
操作前
merge original slot1 Euclidean step0 first coefficient multiple := mul(0, 0)
操作後
merge original slot1 Euclidean step0 first coefficient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S065
S067 · calculation
操作前
merge original slot1 Euclidean step0 first coefficient difference := sub(1, 0)
操作後
merge original slot1 Euclidean step0 first coefficient difference = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S066
S068 · calculation
操作前
merge original slot1 Euclidean step0 second coefficient multiple := mul(0, 1)
操作後
merge original slot1 Euclidean step0 second coefficient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S067
S069 · calculation
操作前
merge original slot1 Euclidean step0 second coefficient difference := sub(0, 0)
操作後
merge original slot1 Euclidean step0 second coefficient difference = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S068
S070 · implies
操作前
merge original slot1:step=0;current remainders=[3, 34];coefficient pairs=[[1, 0], [0, 1]];exact ratio=3/34;floor q=0
操作後
next remainder=3;next signed coefficient pair=[1, 0];a*x+b*y equals next remainder
條件:無
同一q同時更新餘數與兩個有號係數,保每列a·x+b·y=餘數;非只算gcd再猜inverse。
步驟識別與依賴
規則:crt_extended_euclid_invariant_signed_coefficients · 依賴:G001, S069
S071 · calculation
操作前
merge original slot1 Euclidean step1 quotient fraction := div(34, 3)
操作後
merge original slot1 Euclidean step1 quotient fraction = 34/3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S070
S072 · calculation
操作前
merge original slot1 Euclidean step1 divisor multiple := mul(11, 3)
操作後
merge original slot1 Euclidean step1 divisor multiple = 33
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S071
S073 · calculation
操作前
merge original slot1 Euclidean step1 remainder := sub(34, 33)
操作後
merge original slot1 Euclidean step1 remainder = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S072
S074 · calculation
操作前
merge original slot1 Euclidean step1 first coefficient multiple := mul(11, 1)
操作後
merge original slot1 Euclidean step1 first coefficient multiple = 11
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S073
S075 · calculation
操作前
merge original slot1 Euclidean step1 first coefficient difference := sub(0, 11)
操作後
merge original slot1 Euclidean step1 first coefficient difference = -11
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S074
S076 · calculation
操作前
merge original slot1 Euclidean step1 second coefficient multiple := mul(11, 0)
操作後
merge original slot1 Euclidean step1 second coefficient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S075
S077 · calculation
操作前
merge original slot1 Euclidean step1 second coefficient difference := sub(1, 0)
操作後
merge original slot1 Euclidean step1 second coefficient difference = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S076
S078 · implies
操作前
merge original slot1:step=1;current remainders=[34, 3];coefficient pairs=[[0, 1], [1, 0]];exact ratio=34/3;floor q=11
操作後
next remainder=1;next signed coefficient pair=[-11, 1];a*x+b*y equals next remainder
條件:無
同一q同時更新餘數與兩個有號係數,保每列a·x+b·y=餘數;非只算gcd再猜inverse。
步驟識別與依賴
規則:crt_extended_euclid_invariant_signed_coefficients · 依賴:G001, S077
S079 · calculation
操作前
merge original slot1 Euclidean step2 quotient fraction := div(3, 1)
操作後
merge original slot1 Euclidean step2 quotient fraction = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S078
S080 · calculation
操作前
merge original slot1 Euclidean step2 divisor multiple := mul(3, 1)
操作後
merge original slot1 Euclidean step2 divisor multiple = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S079
S081 · calculation
操作前
merge original slot1 Euclidean step2 remainder := sub(3, 3)
操作後
merge original slot1 Euclidean step2 remainder = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S080
S082 · calculation
操作前
merge original slot1 Euclidean step2 first coefficient multiple := mul(3, -11)
操作後
merge original slot1 Euclidean step2 first coefficient multiple = -33
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S081
S083 · calculation
操作前
merge original slot1 Euclidean step2 first coefficient difference := sub(1, -33)
操作後
merge original slot1 Euclidean step2 first coefficient difference = 34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S082
S084 · calculation
操作前
merge original slot1 Euclidean step2 second coefficient multiple := mul(3, 1)
操作後
merge original slot1 Euclidean step2 second coefficient multiple = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S083
S085 · calculation
操作前
merge original slot1 Euclidean step2 second coefficient difference := sub(0, 3)
操作後
merge original slot1 Euclidean step2 second coefficient difference = -3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S084
S086 · implies
操作前
merge original slot1:step=2;current remainders=[3, 1];coefficient pairs=[[1, 0], [-11, 1]];exact ratio=3;floor q=3
操作後
next remainder=0;next signed coefficient pair=[34, -3];a*x+b*y equals next remainder
條件:無
同一q同時更新餘數與兩個有號係數,保每列a·x+b·y=餘數;非只算gcd再猜inverse。
步驟識別與依賴
規則:crt_extended_euclid_invariant_signed_coefficients · 依賴:G001, S085
S087 · calculation
操作前
merge original slot1 final first Bezout term := mul(3, -11)
操作後
merge original slot1 final first Bezout term = -33
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S086
S088 · calculation
操作前
merge original slot1 final second Bezout term := mul(34, 1)
操作後
merge original slot1 final second Bezout term = 34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S087
S089 · calculation
操作前
merge original slot1 final Bezout identity := sum(-33, 34)
操作後
merge original slot1 final Bezout identity = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S088
S090 · calculation
操作前
merge slot1 new residue minus old class := sub(5, 1)
操作後
merge slot1 new residue minus old class = 4
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S089
S091 · calculation
操作前
merge slot1 difference divided by gcd := div(4, 1)
操作後
merge slot1 difference divided by gcd = 4
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S090
S092 · calculation
操作前
merge slot1 reduced old modulus := div(3, 1)
操作後
merge slot1 reduced old modulus = 3
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S091
S093 · calculation
操作前
merge slot1 reduced new modulus := div(34, 1)
操作後
merge slot1 reduced new modulus = 34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S092
S094 · calculation
操作前
merge slot1 new LCM period := mul(3, 34)
操作後
merge slot1 new LCM period = 102
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S093
S095 · calculation
操作前
merge slot1 reduced-unit inverse exact quotient := div(-11, 34)
操作後
merge slot1 reduced-unit inverse exact quotient = -11/34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S094
S096 · calculation
操作前
merge slot1 reduced-unit inverse floor quotient multiple := mul(-1, 34)
操作後
merge slot1 reduced-unit inverse floor quotient multiple = -34
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S095
S097 · calculation
操作前
merge slot1 reduced-unit inverse normalized remainder := sub(-11, -34)
操作後
merge slot1 reduced-unit inverse normalized remainder = 23
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S096
S098 · implies
操作前
merge slot1 reduced-unit inverse:integer value=-11;positive modulus=34;exact ratio=-11/34;floor quotient=-1
操作後
value=q*modulus+remainder;normalized residue=23 in[0,34)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S097
S099 · calculation
操作前
merge slot1 parameter congruence product := mul(4, 23)
操作後
merge slot1 parameter congruence product = 92
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S098
S100 · calculation
操作前
merge slot1 normalized parameter exact quotient := div(92, 34)
操作後
merge slot1 normalized parameter exact quotient = 46/17
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S099
S101 · calculation
操作前
merge slot1 normalized parameter floor quotient multiple := mul(2, 34)
操作後
merge slot1 normalized parameter floor quotient multiple = 68
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S100
S102 · calculation
操作前
merge slot1 normalized parameter normalized remainder := sub(92, 68)
操作後
merge slot1 normalized parameter normalized remainder = 24
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S101
S103 · implies
操作前
merge slot1 normalized parameter:integer value=92;positive modulus=34;exact ratio=46/17;floor quotient=2
操作後
value=q*modulus+remainder;normalized residue=24 in[0,34)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S102
S104 · calculation
操作前
merge slot1 old modulus times parameter := mul(3, 24)
操作後
merge slot1 old modulus times parameter = 72
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S103
S105 · calculation
操作前
merge slot1 unnormalized common solution := sum(1, 72)
操作後
merge slot1 unnormalized common solution = 73
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S104
S106 · calculation
操作前
merge slot1 least class representative exact quotient := div(73, 102)
操作後
merge slot1 least class representative exact quotient = 73/102
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S105
S107 · calculation
操作前
merge slot1 least class representative floor quotient multiple := mul(0, 102)
操作後
merge slot1 least class representative floor quotient multiple = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S106
S108 · calculation
操作前
merge slot1 least class representative normalized remainder := sub(73, 0)
操作後
merge slot1 least class representative normalized remainder = 73
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S107
S109 · implies
操作前
merge slot1 least class representative:integer value=73;positive modulus=102;exact ratio=73/102;floor quotient=0
操作後
value=q*modulus+remainder;normalized residue=73 in[0,102)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S108
S110 · implies
操作前
old FULL solution class=1 mod3;new original constraint=5 mod34;gcd=1;Bezout coefficients=[-11, 1];reduced coprime moduli=[3, 34]
操作後
write old x=a+M*t;reduced equation gives t=24 mod34;ALL merged solutions x=73 mod102
條件:無
代回舊解類後除gcd,Bézout除g給互質係數,t恰落在一個模m/g的類。乘回M得到lcm週期;這包含所有解,不僅驗算找到一點。
步驟識別與依賴
規則:crt_constructive_merge_all_solutions_not_one_witness · 依賴:G001, S109
S111 · calculation
操作前
CRT comparison integer minus least solution := sub(175, 73)
操作後
CRT comparison integer minus least solution = 102
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S110
S112 · calculation
操作前
CRT comparison solution-class test exact quotient := div(102, 102)
操作後
CRT comparison solution-class test exact quotient = 1
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S111
S113 · calculation
操作前
CRT comparison solution-class test floor quotient multiple := mul(1, 102)
操作後
CRT comparison solution-class test floor quotient multiple = 102
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S112
S114 · calculation
操作前
CRT comparison solution-class test normalized remainder := sub(102, 102)
操作後
CRT comparison solution-class test normalized remainder = 0
條件:無
依原始角色與已核中間量精確計算,保留索引、分母、正負號及所屬載體。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S113
S115 · implies
操作前
CRT comparison solution-class test:integer value=102;positive modulus=102;exact ratio=1;floor quotient=1
操作後
value=q*modulus+remainder;normalized residue=0 in[0,102)
條件:無
對正模數用向下整數商,負原值也得到0到modulus−1的代表;不是截斷向0或改變同餘類。模1是合法平凡約束,餘數為0。
步驟識別與依賴
規則:crt_exact_floor_modulo_signed_input · 依賴:G001, S114
S116 · implies
操作前
least solution=73;arbitrary comparison integer=175;product period=102;difference=102
操作後
same residue class=是;unique_modulo_product_not_unique_integer
條件:無
other不保證本來就是解;False只說它不在這個解類,不反駁CRT唯一性。真正兩解的差是product倍數,整數代表則無限多。
步驟識別與依賴
規則:crt_arbitrary_other_not_presumed_solution · 依賴:G001, S115