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. Prime(p) → p = 2 ∨ Mod4One(p) → ∃ x. ∃ y. p = x · x + y · yEvery 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. ((~(p = 1) /\ forall frm_prime_left_ftsf_admissible_prime frm_prime_right_ftsf_admissible_prime. p = frm_prime_left_ftsf_admissible_prime * frm_prime_right_ftsf_admissible_prime -> frm_prime_left_ftsf_admissible_prime = 1 \/ frm_prime_right_ftsf_admissible_prime = 1)) -> (p = 2 \/ exists t. p = 4 * t + 1) -> (exists ftsf_first_prime_result ftsf_second_prime_result. (p) = ftsf_first_prime_result * ftsf_first_prime_result + ftsf_second_prime_result * ftsf_second_prime_result)Proof neighborhood
Direct theorem prerequisites
TS001O prime_mod_four_one_is_sum_of_two_squaresDirect 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 (1)
01Fix variables and assumptionsL1–3
02Separate the logical casesL4–4
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L4
cases hclass
03Construct an explicit witnessL5–6
04Calculate and transport equalitiesL7–8
05Use earlier factsL9–9
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L9
specialize zero_or_succ p
06Separate the logical casesL10–11
07Use earlier factsL12–15
08Separate the logical casesL16–16
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L16
cases zero_or_succ_right
09Use earlier factsL17–22
Instantiate or apply named facts and discharge the corresponding proof obligations.
Original defined command ledger · 22 lines
- 0001
intro p - 0002
intro hprime - 0003
intro hclass - 0004
cases hclass - 0005
exists 1 - 0006
exists 1 - 0007
rewrite hclass_left - 0008
norm_num - 0009
specialize zero_or_succ p - 0010
cases zero_or_succ - 0011
exfalso - 0012
specialize prime_nonzero p - 0013
apply prime_nonzero - 0014
exact hprime - 0015
exact zero_or_succ_left - 0016
cases zero_or_succ_right - 0017
specialize prime_mod_four_one_is_sum_of_two_squares p - 0018
specialize prime_mod_four_one_is_sum_of_two_squares x - 0019
apply prime_mod_four_one_is_sum_of_two_squares - 0020
exact zero_or_succ_right_witness - 0021
exact hprime - 0022
exact hclass_right