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. ∀ a. ∀ b. ∀ c. ∀ d. p · 2 = a · a + b · b + c · c + d · d → Even(a) ∧ Even(b) ∨ Odd(a) ∧ Odd(b) → Even(c) ∧ Even(d) ∨ Odd(c) ∧ Odd(d) → ∃ x. ∃ y. ∃ z. ∃ n. p = x · x + y · y + z · z + n · nEvery 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 a b c d. p * 2 = a * a + b * b + c * c + d * d -> ((((exists fsd_even_first_halve_first. a = 2 * fsd_even_first_halve_first) /\ (exists fsd_even_second_halve_first. b = 2 * fsd_even_second_halve_first)) \/ ((exists fsd_odd_first_halve_first. a = 2 * fsd_odd_first_halve_first + 1) /\ (exists fsd_odd_second_halve_first. b = 2 * fsd_odd_second_halve_first + 1)))) -> ((((exists fsd_even_first_halve_second. c = 2 * fsd_even_first_halve_second) /\ (exists fsd_even_second_halve_second. d = 2 * fsd_even_second_halve_second)) \/ ((exists fsd_odd_first_halve_second. c = 2 * fsd_odd_first_halve_second + 1) /\ (exists fsd_odd_second_halve_second. d = 2 * fsd_odd_second_halve_second + 1)))) -> (exists fsl_a_even_matching fsl_b_even_matching fsl_c_even_matching fsl_d_even_matching. (p) = fsl_a_even_matching * fsl_a_even_matching + fsl_b_even_matching * fsl_b_even_matching + fsl_c_even_matching * fsl_c_even_matching + fsl_d_even_matching * fsl_d_even_matching)Proof neighborhood
Direct theorem prerequisites
FS001P four_square_descent_matching_parity_sum_even FS001Q four_square_descent_matching_parity_absolute_even FS001S four_square_descent_even_multiplier_paired_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–8
02Establish hsumfirstL9–13
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square descent matching parity sum even.
03Separate the logical casesL14–14
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L14
cases hsumfirst
04Establish hgapfirstL15–19
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square descent matching parity absolute even.
05Separate the logical casesL20–20
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L20
cases hgapfirst
06Establish hsumsecondL21–23
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square descent matching parity sum even.
07Separate the logical casesL24–24
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L24
cases hsumsecond
08Establish hgapsecondL25–27
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square descent matching parity absolute even.
09Separate the logical casesL28–28
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L28
cases hgapsecond
10Use earlier factsL29–38
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L29
specialize four_square_descent_even_multiplier_paired_halving p - L30
specialize four_square_descent_even_multiplier_paired_halving a - L31
specialize four_square_descent_even_multiplier_paired_halving b - L32
specialize four_square_descent_even_multiplier_paired_halving c - L33
specialize four_square_descent_even_multiplier_paired_halving d - L34
specialize four_square_descent_even_multiplier_paired_halving x - L35
specialize four_square_descent_even_multiplier_paired_halving x1 - L36
specialize four_square_descent_even_multiplier_paired_halving x2 - L37
specialize four_square_descent_even_multiplier_paired_halving x3 - L38
apply four_square_descent_even_multiplier_paired_halving
Original defined command ledger · 43 lines
- 0001
intro p - 0002
intro a - 0003
intro b - 0004
intro c - 0005
intro d - 0006
intro hnorm - 0007
intro hfirst - 0008
intro hsecond - 0009
have hsumfirst : Even(a + b)Exact native replay line
have hsumfirst : exists u. a + b = 2 * u - 0010
specialize four_square_descent_matching_parity_sum_even a - 0011
specialize four_square_descent_matching_parity_sum_even b - 0012
apply four_square_descent_matching_parity_sum_even - 0013
exact hfirst - 0014
cases hsumfirst - 0015
have hgapfirst : exists v. ((a = b + 2 * v) \/ (b = a + 2 * v)) - 0016
specialize four_square_descent_matching_parity_absolute_even a - 0017
specialize four_square_descent_matching_parity_absolute_even b - 0018
apply four_square_descent_matching_parity_absolute_even - 0019
exact hfirst - 0020
cases hgapfirst - 0021
have hsumsecond : Even(c + d)Exact native replay line
have hsumsecond : exists w. c + d = 2 * w - 0022
apply four_square_descent_matching_parity_sum_even - 0023
exact hsecond - 0024
cases hsumsecond - 0025
have hgapsecond : exists z. ((c = d + 2 * z) \/ (d = c + 2 * z)) - 0026
apply four_square_descent_matching_parity_absolute_even - 0027
exact hsecond - 0028
cases hgapsecond - 0029
specialize four_square_descent_even_multiplier_paired_halving p - 0030
specialize four_square_descent_even_multiplier_paired_halving a - 0031
specialize four_square_descent_even_multiplier_paired_halving b - 0032
specialize four_square_descent_even_multiplier_paired_halving c - 0033
specialize four_square_descent_even_multiplier_paired_halving d - 0034
specialize four_square_descent_even_multiplier_paired_halving x - 0035
specialize four_square_descent_even_multiplier_paired_halving x1 - 0036
specialize four_square_descent_even_multiplier_paired_halving x2 - 0037
specialize four_square_descent_even_multiplier_paired_halving x3 - 0038
apply four_square_descent_even_multiplier_paired_halving - 0039
exact hnorm - 0040
exact hsumfirst_witness - 0041
exact hgapfirst_witness - 0042
exact hsumsecond_witness - 0043
exact hgapsecond_witness