Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved. Exact original first-admission records.
Statement with defined notation
∀ p. ∀ n. p = S n → Prime(p) → Odd(p) → (¬QRes(p,n) → Mod4Three(p)) ∧ (Mod4Three(p) → ¬QRes(p,n))Every purple notation token opens its conservative definition. This reading surface never changes the unchanged intuitionistic kernel or confers checked-use authority.
Definitions used by this theorem
In the theorem statement
In local proof propositions
Exact expanded first-order statement
forall p n. p = S n -> ((~(p = 1) /\ forall frm_prime_left_qsm_prime frm_prime_right_qsm_prime. p = frm_prime_left_qsm_prime * frm_prime_right_qsm_prime -> frm_prime_left_qsm_prime = 1 \/ frm_prime_right_qsm_prime = 1)) -> (exists qsm_odd_modulus. p = 2 * qsm_odd_modulus + 1) -> ((((~(exists qr_x_qsm_predecessor. exists qr_u_qsm_predecessor qr_v_qsm_predecessor. qr_x_qsm_predecessor * qr_x_qsm_predecessor + p * qr_u_qsm_predecessor = n + p * qr_v_qsm_predecessor)) -> (exists qsm_four_three_modulus. p = 4 * qsm_four_three_modulus + 3)) /\ ((exists qsm_four_three_modulus. p = 4 * qsm_four_three_modulus + 3) -> (~(exists qr_x_qsm_predecessor. exists qr_u_qsm_predecessor qr_v_qsm_predecessor. qr_x_qsm_predecessor * qr_x_qsm_predecessor + p * qr_u_qsm_predecessor = n + p * qr_v_qsm_predecessor)))))Proof neighborhood
Direct theorem prerequisites
SL0002 odd_predecessor_double_half SL0003 quadratic_supplement_minus_one_half_parity odd_half_odd_iff_mod4_three · Alpha closedDirect theorem dependents
Definition-aware tactic body
Only propositions whose conservative expansion has been checked for exact first-order equivalence are compacted. Every changed line retains its immutable exact replay command.
Read the argument
Proof checkpoints
This is a reading aid, not a new proof or a proof-tree certificate. Checkpoint groups are consecutive commands, not inferred branch boundaries. Every step links to the preserved script.
Named ingredients (2)
01Fix variables and assumptionsL1–5
02Separate the logical casesL6–6
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L6
cases hodd
03Establish hdoubleL7–13
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply odd predecessor double half.
04Establish hclassificationL14–21
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply quadratic supplement minus one half parity.
- L14
have hclassification : (QRes(p,n) → Even(x)) ∧ (Even(x) → QRes(p,n)) ∧ ((¬QRes(p,n) → Odd(x)) ∧ (Odd(x) → ¬QRes(p,n)))Definitions: QRes(p,n)Even(x)Odd(x)Original native command in the exact edition - L15
specialize quadratic_supplement_minus_one_half_parity p - L16
specialize quadratic_supplement_minus_one_half_parity n - L17
specialize quadratic_supplement_minus_one_half_parity x - L18
apply quadratic_supplement_minus_one_half_parity - L19
exact hpredecessor - L20
exact hprime - L21
exact hdouble
05Separate the logical casesL22–23
06Establish hmodfourL24–28
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply odd half odd iff mod4 three.
- L24
have hmodfour : (Odd(x) → Mod4Three(p)) ∧ (Mod4Three(p) → Odd(x))Definitions: Odd(x)Mod4Three(p)Original native command in the exact edition - L25
specialize odd_half_odd_iff_mod4_three p - L26
specialize odd_half_odd_iff_mod4_three x - L27
apply odd_half_odd_iff_mod4_three - L28
exact hodd_witness
07Separate the logical casesL29–30
08Fix variables and assumptionsL31–31
Work with arbitrary variables or the premises of the current implication.
- L31
intro hnonresidue
09Use earlier factsL32–34
10Fix variables and assumptionsL35–36
Original defined command ledger · 40 lines
- 0001
intro p - 0002
intro n - 0003
intro hpredecessor - 0004
intro hprime - 0005
intro hodd - 0006
cases hodd - 0007
have hdouble : n = x + x - 0008
specialize odd_predecessor_double_half p - 0009
specialize odd_predecessor_double_half n - 0010
specialize odd_predecessor_double_half x - 0011
apply odd_predecessor_double_half - 0012
exact hpredecessor - 0013
exact hodd_witness - 0014
have hclassification : (QRes(p,n) → Even(x)) ∧ (Even(x) → QRes(p,n)) ∧ ((¬QRes(p,n) → Odd(x)) ∧ (Odd(x) → ¬QRes(p,n)))Exact native replay line
have hclassification : (((((exists qr_x_qsm_endpoint_predecessor. exists qr_u_qsm_endpoint_predecessor qr_v_qsm_endpoint_predecessor. qr_x_qsm_endpoint_predecessor * qr_x_qsm_endpoint_predecessor + p * qr_u_qsm_endpoint_predecessor = n + p * qr_v_qsm_endpoint_predecessor) -> (exists qsm_even_endpoint_half. x = 2 * qsm_even_endpoint_half)) /\ ((exists qsm_even_endpoint_half. x = 2 * qsm_even_endpoint_half) -> (exists qr_x_qsm_endpoint_predecessor. exists qr_u_qsm_endpoint_predecessor qr_v_qsm_endpoint_predecessor. qr_x_qsm_endpoint_predecessor * qr_x_qsm_endpoint_predecessor + p * qr_u_qsm_endpoint_predecessor = n + p * qr_v_qsm_endpoint_predecessor)))) /\ ((((~(exists qr_x_qsm_endpoint_predecessor. exists qr_u_qsm_endpoint_predecessor qr_v_qsm_endpoint_predecessor. qr_x_qsm_endpoint_predecessor * qr_x_qsm_endpoint_predecessor + p * qr_u_qsm_endpoint_predecessor = n + p * qr_v_qsm_endpoint_predecessor)) -> (exists qsm_odd_endpoint_half. x = 2 * qsm_odd_endpoint_half + 1)) /\ ((exists qsm_odd_endpoint_half. x = 2 * qsm_odd_endpoint_half + 1) -> (~(exists qr_x_qsm_endpoint_predecessor. exists qr_u_qsm_endpoint_predecessor qr_v_qsm_endpoint_predecessor. qr_x_qsm_endpoint_predecessor * qr_x_qsm_endpoint_predecessor + p * qr_u_qsm_endpoint_predecessor = n + p * qr_v_qsm_endpoint_predecessor)))))) - 0015
specialize quadratic_supplement_minus_one_half_parity p - 0016
specialize quadratic_supplement_minus_one_half_parity n - 0017
specialize quadratic_supplement_minus_one_half_parity x - 0018
apply quadratic_supplement_minus_one_half_parity - 0019
exact hpredecessor - 0020
exact hprime - 0021
exact hdouble - 0022
cases hclassification - 0023
cases hclassification_right - 0024
have hmodfour : (Odd(x) → Mod4Three(p)) ∧ (Mod4Three(p) → Odd(x))Exact native replay line
have hmodfour : (((exists qsm_odd_endpoint_half. x = 2 * qsm_odd_endpoint_half + 1) -> (exists qsm_four_three_modulus. p = 4 * qsm_four_three_modulus + 3)) /\ ((exists qsm_four_three_modulus. p = 4 * qsm_four_three_modulus + 3) -> (exists qsm_odd_endpoint_half. x = 2 * qsm_odd_endpoint_half + 1))) - 0025
specialize odd_half_odd_iff_mod4_three p - 0026
specialize odd_half_odd_iff_mod4_three x - 0027
apply odd_half_odd_iff_mod4_three - 0028
exact hodd_witness - 0029
cases hmodfour - 0030
split - 0031
intro hnonresidue - 0032
apply hmodfour_left - 0033
apply hclassification_right_left - 0034
exact hnonresidue - 0035
intro hfourthree - 0036
intro hresidue - 0037
apply hclassification_right_right - 0038
apply hmodfour_right - 0039
exact hfourthree - 0040
exact hresidue