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) → Mod4One(p)) ∧ (Mod4One(p) → QRes(p,n)) ∧ ((¬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_one_modulus. p = 4 * qsm_four_one_modulus + 1)) /\ ((exists qsm_four_one_modulus. p = 4 * qsm_four_one_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 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
SL0004 quadratic_supplement_minus_one_residue_iff_mod_four_one SL0005 quadratic_supplement_minus_one_nonresidue_iff_mod_four_threeDirect 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
split
03Use earlier factsL7–16
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L7
specialize quadratic_supplement_minus_one_residue_iff_mod_four_one p - L8
specialize quadratic_supplement_minus_one_residue_iff_mod_four_one n - L9
apply quadratic_supplement_minus_one_residue_iff_mod_four_one - L10
exact hpredecessor - L11
exact hprime - L12
exact hodd - L13
specialize quadratic_supplement_minus_one_nonresidue_iff_mod_four_three p - L14
specialize quadratic_supplement_minus_one_nonresidue_iff_mod_four_three n - L15
apply quadratic_supplement_minus_one_nonresidue_iff_mod_four_three - L16
exact hpredecessor
Original defined command ledger · 18 lines
- 0001
intro p - 0002
intro n - 0003
intro hpredecessor - 0004
intro hprime - 0005
intro hodd - 0006
split - 0007
specialize quadratic_supplement_minus_one_residue_iff_mod_four_one p - 0008
specialize quadratic_supplement_minus_one_residue_iff_mod_four_one n - 0009
apply quadratic_supplement_minus_one_residue_iff_mod_four_one - 0010
exact hpredecessor - 0011
exact hprime - 0012
exact hodd - 0013
specialize quadratic_supplement_minus_one_nonresidue_iff_mod_four_three p - 0014
specialize quadratic_supplement_minus_one_nonresidue_iff_mod_four_three n - 0015
apply quadratic_supplement_minus_one_nonresidue_iff_mod_four_three - 0016
exact hpredecessor - 0017
exact hprime - 0018
exact hodd