R0047-24129 · q-20261015-advance-20261113-r04-euler-criterion-quadratic-residue-0004
逐步推導
S001 · implies
操作前
source roles = [eulercrit-domain-qualification]
操作後
derived = [[prime, a, normalized_class, odd_prime, nonzero_class, certificate]]
條件:無
本頁列完整來源欄序,不需JavaScript;gradient boundary依原mode選6/8/7欄,不補欄也不由答案猜mode。
步驟識別與依賴
規則:source_ordered_fields_without_JS · 依賴:G001
S002 · implies
操作前
source roles = [11]
操作後
derived = [[[2, 1], [3, 2]], 是]
條件:無
合數必有不大於平方根的因數,故完整試除驗模數資格;這不由平方性或Euler等式猜測。
步驟識別與依賴
規則:Euler_modulus_primality_complete_trial · 依賴:G001, S001
S003 · calculation
操作前
Euler ORIGINAL signed quotient times modulus := mul(0, 11)
操作後
Euler ORIGINAL signed quotient times modulus = 0
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S002
S004 · calculation
操作前
Euler ORIGINAL signed a minus modulus multiple := sub(4, 0)
操作後
Euler ORIGINAL signed a minus modulus multiple = 4
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S003
S005 · implies
操作前
source roles = [4, 11, 0]
操作後
derived = [4, 是]
條件:無
a=qp+r、0<=r<p保負a同一類;原a在指定欄位保留。
步驟識別與依賴
規則:Euler_Euclidean_class_before_hypothesis · 依賴:G001, S004
S006 · implies
操作前
source roles = [11, 4, 4]
操作後
derived = [是, 是]
條件:無
先獨立驗odd prime與非零類;平方表先定義Legendre,再比較冪。
步驟識別與依賴
規則:Euler_odd_prime_nonzero_qualified · 依賴:G001, S005
S007 · calculation
操作前
Euler square root candidate1 := mul(1, 1)
操作後
Euler square root candidate1 = 1
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S006
S008 · calculation
操作前
Euler square root candidate2 := mul(2, 2)
操作後
Euler square root candidate2 = 4
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S007
S009 · calculation
操作前
Euler square root candidate3 := mul(3, 3)
操作後
Euler square root candidate3 = 9
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S008
S010 · calculation
操作前
Euler square root candidate4 := mul(4, 4)
操作後
Euler square root candidate4 = 16
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S009
S011 · calculation
操作前
Euler square root candidate5 := mul(5, 5)
操作後
Euler square root candidate5 = 25
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S010
S012 · calculation
操作前
Euler square root candidate6 := mul(6, 6)
操作後
Euler square root candidate6 = 36
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S011
S013 · calculation
操作前
Euler square root candidate7 := mul(7, 7)
操作後
Euler square root candidate7 = 49
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S012
S014 · calculation
操作前
Euler square root candidate8 := mul(8, 8)
操作後
Euler square root candidate8 = 64
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S013
S015 · calculation
操作前
Euler square root candidate9 := mul(9, 9)
操作後
Euler square root candidate9 = 81
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S014
S016 · calculation
操作前
Euler square root candidate10 := mul(10, 10)
操作後
Euler square root candidate10 = 100
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S015
S017 · implies
操作前
source roles = [11, 4]
操作後
derived = [[[1, 1], [2, 4], [3, 9], [4, 5], [5, 3], [6, 3], [7, 5], [8, 9], [9, 4], [10, 1]], [2, 9], 1]
條件:無
全部1至p−1逐平方列舉,根存在為+1、全無為−1;此路徑沒有用Euler判準算Legendre。
步驟識別與依賴
規則:Euler_ALL_nonzero_square_table_defines_Legendre · 依賴:G001, S016
S018 · calculation
操作前
Euler binary power accumulate0 := mul(1, 4)
操作後
Euler binary power accumulate0 = 4
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S017
S019 · calculation
操作前
Euler binary power square0 := mul(4, 4)
操作後
Euler binary power square0 = 16
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S018
S020 · implies
操作前
source roles = [0, [1, 4, 5], 11, 4, 5]
操作後
derived = [4, 16, 4, 5, 2]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S019
S021 · calculation
操作前
Euler binary power square1 := mul(5, 5)
操作後
Euler binary power square1 = 25
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S020
S022 · implies
操作前
source roles = [1, [4, 5, 2], 11, 4, 5]
操作後
derived = [null, 25, 4, 3, 1]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S021
S023 · calculation
操作前
Euler binary power accumulate2 := mul(4, 3)
操作後
Euler binary power accumulate2 = 12
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S022
S024 · calculation
操作前
Euler binary power square2 := mul(3, 3)
操作後
Euler binary power square2 = 9
條件:無
依原題角色與已證中間量精確代值;分母先核非零,不以近似數替代。
步驟識別與依賴
規則:exact_rational_arithmetic · 依賴:G001, S023
S025 · implies
操作前
source roles = [2, [4, 3, 1], 11, 4, 5]
操作後
derived = [12, 9, 1, 9, 0]
條件:無
每步保acc*base^remaining同餘原a^((p−1)/2);奇數先乘,平方底數、整除指數,直到0。與全部square表是不同計算。
步驟識別與依賴
規則:Euler_repeated_squaring_original_exponent_invariant · 依賴:G001, S024
S026 · implies
操作前
source roles = [11, [2, 9], 1, 1]
操作後
derived = [1, 是, one finite instance is not a general theorem proof]
條件:無
p−1是模p的−1代表,不是整數p−1等於−1。指定instance兩個獨立算法吻合,不把這一表當一般定理的證明。
步驟識別與依賴
規則:Euler_decode_p_minus1_and_instance_only_comparison · 依賴:G001, S025