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
(∀ x. ∀ y. Prime(x) → ¬y = 0 → ¬y = 1 → Lt(y,x) → (∃ z. ∃ n. ∃ m. ∃ k. x · y = z · z + n · n + m · m + k · k) → ∃ z. ¬z = 0 ∧ (Lt(z,y) ∧ (∃ n. ∃ m. ∃ k. ∃ i. x · z = n · n + m · m + k · k + i · i))) → ∀ x. Prime(x) → ∃ y. ∃ z. ∃ n. ∃ m. x = y · y + z · z + n · n + m · mEvery 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 fslb_bounded_prime_bridge fslb_bounded_multiplier_bridge. ((~(fslb_bounded_prime_bridge = 1) /\ forall frm_prime_left_fslb_bounded_prime_bridge frm_prime_right_fslb_bounded_prime_bridge. fslb_bounded_prime_bridge = frm_prime_left_fslb_bounded_prime_bridge * frm_prime_right_fslb_bounded_prime_bridge -> frm_prime_left_fslb_bounded_prime_bridge = 1 \/ frm_prime_right_fslb_bounded_prime_bridge = 1)) -> ~(fslb_bounded_multiplier_bridge = 0) -> ~(fslb_bounded_multiplier_bridge = 1) -> (exists fslb_bounded_upper_gap_bridge. fslb_bounded_upper_gap_bridge + S fslb_bounded_multiplier_bridge = fslb_bounded_prime_bridge) -> (exists fsl_a_fslb_bounded_source_bridge fsl_b_fslb_bounded_source_bridge fsl_c_fslb_bounded_source_bridge fsl_d_fslb_bounded_source_bridge. (fslb_bounded_prime_bridge * fslb_bounded_multiplier_bridge) = fsl_a_fslb_bounded_source_bridge * fsl_a_fslb_bounded_source_bridge + fsl_b_fslb_bounded_source_bridge * fsl_b_fslb_bounded_source_bridge + fsl_c_fslb_bounded_source_bridge * fsl_c_fslb_bounded_source_bridge + fsl_d_fslb_bounded_source_bridge * fsl_d_fslb_bounded_source_bridge) -> exists fslb_bounded_smaller_bridge. (~(fslb_bounded_smaller_bridge = 0) /\ ((exists fslb_bounded_lower_gap_bridge. fslb_bounded_lower_gap_bridge + S fslb_bounded_smaller_bridge = fslb_bounded_multiplier_bridge) /\ (exists fsl_a_fslb_bounded_target_bridge fsl_b_fslb_bounded_target_bridge fsl_c_fslb_bounded_target_bridge fsl_d_fslb_bounded_target_bridge. (fslb_bounded_prime_bridge * fslb_bounded_smaller_bridge) = fsl_a_fslb_bounded_target_bridge * fsl_a_fslb_bounded_target_bridge + fsl_b_fslb_bounded_target_bridge * fsl_b_fslb_bounded_target_bridge + fsl_c_fslb_bounded_target_bridge * fsl_c_fslb_bounded_target_bridge + fsl_d_fslb_bounded_target_bridge * fsl_d_fslb_bounded_target_bridge)))) -> forall p. ((~(p = 1) /\ forall frm_prime_left_fslb_prime frm_prime_right_fslb_prime. p = frm_prime_left_fslb_prime * frm_prime_right_fslb_prime -> frm_prime_left_fslb_prime = 1 \/ frm_prime_right_fslb_prime = 1)) -> (exists fsl_a_fslb_prime_result fsl_b_fslb_prime_result fsl_c_fslb_prime_result fsl_d_fslb_prime_result. (p) = fsl_a_fslb_prime_result * fsl_a_fslb_prime_result + fsl_b_fslb_prime_result * fsl_b_fslb_prime_result + fsl_c_fslb_prime_result * fsl_c_fslb_prime_result + fsl_d_fslb_prime_result * fsl_d_fslb_prime_result)Proof neighborhood
Direct theorem prerequisites
FS000P four_square_prime_bounded_modular_seed FS0034 four_square_prime_from_bounded_strict_descent_and_seedDirect 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–3
02Establish hseedL4–7
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square prime bounded modular seed.
03Separate the logical casesL8–11
04Establish hdescentL12–21
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square prime from bounded strict descent and seed.
- L12
have hdescent : ∀ q. ∀ a. ∀ b. ∀ k. Prime(q) → a · a + b · b + 1 = q · k → Lt(k,q) → ∃ x. ∃ y. ∃ z. ∃ n. q = x · x + y · y + z · z + n · nDefinitions: Prime(q)Lt(k,q)Original native command in the exact edition - L13
apply four_square_prime_from_bounded_strict_descent_and_seed - L14
exact hstep - L15
specialize hdescent p - L16
specialize hdescent x - L17
specialize hdescent x1 - L18
specialize hdescent x2 - L19
apply hdescent - L20
exact hprime - L21
exact hseed_witness_witness_witness_left
05Use earlier factsL22–22
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L22
exact hseed_witness_witness_witness_right
Original defined command ledger · 22 lines
- 0001
intro hstep - 0002
intro p - 0003
intro hprime - 0004
have hseed : ∃ a. ∃ b. ∃ k. a · a + b · b + 1 = p · k ∧ Lt(k,p)Exact native replay line
have hseed : exists a b k. ((a * a + b * b + 1 = p * k) /\ (exists gap. gap + S k = p)) - 0005
specialize four_square_prime_bounded_modular_seed p - 0006
apply four_square_prime_bounded_modular_seed - 0007
exact hprime - 0008
cases hseed - 0009
cases hseed_witness - 0010
cases hseed_witness_witness - 0011
cases hseed_witness_witness_witness - 0012
have hdescent : ∀ q. ∀ a. ∀ b. ∀ k. Prime(q) → a · a + b · b + 1 = q · k → Lt(k,q) → ∃ x. ∃ y. ∃ z. ∃ n. q = x · x + y · y + z · z + n · nExact native replay line
have hdescent : forall q a b k. ((~(q = 1) /\ forall frm_prime_left_fslb_bounded_local_prime frm_prime_right_fslb_bounded_local_prime. q = frm_prime_left_fslb_bounded_local_prime * frm_prime_right_fslb_bounded_local_prime -> frm_prime_left_fslb_bounded_local_prime = 1 \/ frm_prime_right_fslb_bounded_local_prime = 1)) -> a * a + b * b + 1 = q * k -> (exists gap. gap + S k = q) -> (exists fsl_a_fslb_bounded_local_result fsl_b_fslb_bounded_local_result fsl_c_fslb_bounded_local_result fsl_d_fslb_bounded_local_result. (q) = fsl_a_fslb_bounded_local_result * fsl_a_fslb_bounded_local_result + fsl_b_fslb_bounded_local_result * fsl_b_fslb_bounded_local_result + fsl_c_fslb_bounded_local_result * fsl_c_fslb_bounded_local_result + fsl_d_fslb_bounded_local_result * fsl_d_fslb_bounded_local_result) - 0013
apply four_square_prime_from_bounded_strict_descent_and_seed - 0014
exact hstep - 0015
specialize hdescent p - 0016
specialize hdescent x - 0017
specialize hdescent x1 - 0018
specialize hdescent x2 - 0019
apply hdescent - 0020
exact hprime - 0021
exact hseed_witness_witness_witness_left - 0022
exact hseed_witness_witness_witness_right