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. ∀ k. ∀ h. ¬k = 0 → k = 2 · h → (∃ x. ∃ y. ∃ z. ∃ n. p · k = x · x + y · y + z · z + n · n) → ∃ x. ¬x = 0 ∧ (Lt(x,k) ∧ (∃ y. ∃ z. ∃ n. ∃ m. p · x = y · y + z · z + n · n + m · m))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 k h. ~(k = 0) -> k = 2 * h -> (exists fsl_a_fsbr_multiple fsl_b_fsbr_multiple fsl_c_fsbr_multiple fsl_d_fsbr_multiple. (p * k) = fsl_a_fsbr_multiple * fsl_a_fsbr_multiple + fsl_b_fsbr_multiple * fsl_b_fsbr_multiple + fsl_c_fsbr_multiple * fsl_c_fsbr_multiple + fsl_d_fsbr_multiple * fsl_d_fsbr_multiple) -> (exists r. (~(r = 0) /\ ((exists gap. gap + S r = k) /\ (exists fsl_a_fsbr_smaller fsl_b_fsbr_smaller fsl_c_fsbr_smaller fsl_d_fsbr_smaller. (p * r) = fsl_a_fsbr_smaller * fsl_a_fsbr_smaller + fsl_b_fsbr_smaller * fsl_b_fsbr_smaller + fsl_c_fsbr_smaller * fsl_c_fsbr_smaller + fsl_d_fsbr_smaller * fsl_d_fsbr_smaller))))Proof neighborhood
Direct theorem prerequisites
FS000Q four_square_branch_nonzero_even_half FS000R four_square_branch_positive_half_strict mul_double_right · Stable closed mul_comm · Stable closed FS0041 four_square_parity_represented_double_halvingDirect 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–6
02Establish hhalfL7–14
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square branch nonzero even half.
03Construct an explicit witnessL15–15
Supply the displayed value, then prove that it has the required property.
- L15
exists h
04Separate the logical casesL16–16
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L16
split
05Use earlier factsL17–17
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L17
exact hhalf
06Separate the logical casesL18–18
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L18
split
07Calculate and transport equalitiesL19–19
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L19
rewrite hdouble
08Use earlier factsL20–21
09Calculate and transport equalitiesL22–22
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L22
rewrite hdouble at hrepresented
10Use earlier factsL23–24
11Calculate and transport equalitiesL25–25
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L25
rewrite mul_double_right at hrepresented
12Use earlier factsL26–27
13Calculate and transport equalitiesL28–28
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L28
rewrite mul_comm at hrepresented
Original defined command ledger · 31 lines
- 0001
intro p - 0002
intro k - 0003
intro h - 0004
intro hnonzero - 0005
intro hdouble - 0006
intro hrepresented - 0007
have hhalf : ~(h = 0) - 0008
intro hzero - 0009
specialize four_square_branch_nonzero_even_half k - 0010
specialize four_square_branch_nonzero_even_half h - 0011
apply four_square_branch_nonzero_even_half - 0012
exact hnonzero - 0013
exact hdouble - 0014
exact hzero - 0015
exists h - 0016
split - 0017
exact hhalf - 0018
split - 0019
rewrite hdouble - 0020
apply four_square_branch_positive_half_strict - 0021
exact hhalf - 0022
rewrite hdouble at hrepresented - 0023
specialize mul_double_right p - 0024
specialize mul_double_right h - 0025
rewrite mul_double_right at hrepresented - 0026
specialize mul_comm 2 - 0027
specialize mul_comm (p * h) - 0028
rewrite mul_comm at hrepresented - 0029
specialize four_square_parity_represented_double_halving (p * h) - 0030
apply four_square_parity_represented_double_halving - 0031
exact hrepresented