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) → Mod4One(p) → ∃ x. ∃ y. Lt(x,p) ∧ x · x + 1 = p · 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 n. p = S n -> ((~(p = 1) /\ forall frm_prime_left_fts_prime frm_prime_right_fts_prime. p = frm_prime_left_fts_prime * frm_prime_right_fts_prime -> frm_prime_left_fts_prime = 1 \/ frm_prime_right_fts_prime = 1)) -> (exists fts_four_prime_one. p = 4 * fts_four_prime_one + 1) -> exists r k. ((exists fts_gap_canonical_root. fts_gap_canonical_root + S (r) = p) /\ r * r + 1 = p * k)Proof neighborhood
Direct theorem prerequisites
TS0006 prime_mod_four_one_bounded_minus_one_square_exists TS0007 predecessor_square_congruence_yields_divisible_normDirect 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
02Establish hboundedL6–12
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime mod four one bounded minus one square exists.
- L6
have hbounded : BoundedQRes(p,n)Definitions: BoundedQRes(p,n)Original native command in the exact edition - L7
specialize prime_mod_four_one_bounded_minus_one_square_exists p - L8
specialize prime_mod_four_one_bounded_minus_one_square_exists n - L9
apply prime_mod_four_one_bounded_minus_one_square_exists - L10
exact hpredecessor - L11
exact hprime - L12
exact hfourone
03Separate the logical casesL13–14
04Establish hnormL15–21
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply predecessor square congruence yields divisible norm.
- L15
have hnorm : Dvd(p,x · x + 1)Definitions: Dvd(p,x · x + 1)Original native command in the exact edition - L16
specialize predecessor_square_congruence_yields_divisible_norm p - L17
specialize predecessor_square_congruence_yields_divisible_norm n - L18
specialize predecessor_square_congruence_yields_divisible_norm x - L19
apply predecessor_square_congruence_yields_divisible_norm - L20
exact hpredecessor - L21
exact hbounded_witness_right
05Separate the logical casesL22–22
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L22
cases hnorm
06Construct an explicit witnessL23–24
07Separate the logical casesL25–25
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L25
split
Original defined command ledger · 27 lines
- 0001
intro p - 0002
intro n - 0003
intro hpredecessor - 0004
intro hprime - 0005
intro hfourone - 0006
have hbounded : BoundedQRes(p,n)Exact native replay line
have hbounded : exists qr_x_fts_bounded_predecessor. (exists qr_h_fts_bounded_predecessor. qr_h_fts_bounded_predecessor + S qr_x_fts_bounded_predecessor = p) /\ exists qr_u_fts_bounded_predecessor qr_v_fts_bounded_predecessor. qr_x_fts_bounded_predecessor * qr_x_fts_bounded_predecessor + p * qr_u_fts_bounded_predecessor = n + p * qr_v_fts_bounded_predecessor - 0007
specialize prime_mod_four_one_bounded_minus_one_square_exists p - 0008
specialize prime_mod_four_one_bounded_minus_one_square_exists n - 0009
apply prime_mod_four_one_bounded_minus_one_square_exists - 0010
exact hpredecessor - 0011
exact hprime - 0012
exact hfourone - 0013
cases hbounded - 0014
cases hbounded_witness - 0015
have hnorm : Dvd(p,x · x + 1)Exact native replay line
have hnorm : exists k. x * x + 1 = p * k - 0016
specialize predecessor_square_congruence_yields_divisible_norm p - 0017
specialize predecessor_square_congruence_yields_divisible_norm n - 0018
specialize predecessor_square_congruence_yields_divisible_norm x - 0019
apply predecessor_square_congruence_yields_divisible_norm - 0020
exact hpredecessor - 0021
exact hbounded_witness_right - 0022
cases hnorm - 0023
exists x - 0024
exists x1 - 0025
split - 0026
exact hbounded_witness_left - 0027
exact hnorm_witness