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. ∀ y. ∀ z. ∀ n. Prime(x) → y · y + z · z + 1 = x · n → Lt(n,x) → ∃ m. ∃ k. ∃ i. ∃ j. x = m · m + k · k + i · i + j · jEvery 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 a b k. ((~(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)) -> a * a + b * b + 1 = p * k -> (exists gap. gap + S k = p) -> (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
FS001F four_square_descent_modular_seed_multiplier_nonzero FS003F four_square_prime_modular_seed_multiple FS0033 four_square_descent_below_prime_multiplier_boundedDirect 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 (3)
01Fix variables and assumptionsL1–8
02Use earlier factsL9–18
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L9
specialize four_square_descent_below_prime_multiplier_bounded k - L10
specialize four_square_descent_below_prime_multiplier_bounded p - L11
specialize four_square_descent_below_prime_multiplier_bounded k - L12
apply four_square_descent_below_prime_multiplier_bounded - L13
specialize le_refl k - L14
exact le_refl - L15
exact hprime - L16
specialize four_square_descent_modular_seed_multiplier_nonzero p - L17
specialize four_square_descent_modular_seed_multiplier_nonzero a - L18
specialize four_square_descent_modular_seed_multiplier_nonzero b
03Use earlier factsL19–19
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L19
specialize four_square_descent_modular_seed_multiplier_nonzero k
04Fix variables and assumptionsL20–20
Work with arbitrary variables or the premises of the current implication.
- L20
intro hzero
05Use earlier factsL21–30
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L21
apply four_square_descent_modular_seed_multiplier_nonzero - L22
exact hseed - L23
exact hzero - L24
exact hbelow - L25
specialize four_square_prime_modular_seed_multiple p - L26
specialize four_square_prime_modular_seed_multiple a - L27
specialize four_square_prime_modular_seed_multiple b - L28
specialize four_square_prime_modular_seed_multiple k - L29
apply four_square_prime_modular_seed_multiple - L30
exact hseed
06Use earlier factsL31–31
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L31
exact hstep
Original defined command ledger · 31 lines
- 0001
intro hstep - 0002
intro p - 0003
intro a - 0004
intro b - 0005
intro k - 0006
intro hprime - 0007
intro hseed - 0008
intro hbelow - 0009
specialize four_square_descent_below_prime_multiplier_bounded k - 0010
specialize four_square_descent_below_prime_multiplier_bounded p - 0011
specialize four_square_descent_below_prime_multiplier_bounded k - 0012
apply four_square_descent_below_prime_multiplier_bounded - 0013
specialize le_refl k - 0014
exact le_refl - 0015
exact hprime - 0016
specialize four_square_descent_modular_seed_multiplier_nonzero p - 0017
specialize four_square_descent_modular_seed_multiplier_nonzero a - 0018
specialize four_square_descent_modular_seed_multiplier_nonzero b - 0019
specialize four_square_descent_modular_seed_multiplier_nonzero k - 0020
intro hzero - 0021
apply four_square_descent_modular_seed_multiplier_nonzero - 0022
exact hseed - 0023
exact hzero - 0024
exact hbelow - 0025
specialize four_square_prime_modular_seed_multiple p - 0026
specialize four_square_prime_modular_seed_multiple a - 0027
specialize four_square_prime_modular_seed_multiple b - 0028
specialize four_square_prime_modular_seed_multiple k - 0029
apply four_square_prime_modular_seed_multiple - 0030
exact hseed - 0031
exact hstep