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
∀ n. ∀ a. ∀ b. ∀ c. ∀ d. n · 2 = a · a + b · b + c · c + d · d → Even(a + b + c + d)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 n a b c d. n * 2 = a * a + b * b + c * c + d * d -> (exists fsps_even_coordinate_sum. (a + b + c + d) = 2 * fsps_even_coordinate_sum)Proof neighborhood
Direct theorem prerequisites
FS003T four_square_parity_norm_mod_two_sum mod_two_preserves_parity · Alpha closed mul_comm · Stable closedDirect 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 (1)
01Fix variables and assumptionsL1–6
02Establish htransportL7–11
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply mod two preserves parity.
- L7
have htransport : (Even(a · a + b · b + c · c + d · d) → Even(a + b + c + d)) ∧ (Even(a + b + c + d) → Even(a · a + b · b + c · c + d · d)) ∧ ((Odd(a · a + b · b + c · c + d · d) → Odd(a + b + c + d)) ∧ (Odd(a + b + c + d) → Odd(a · a + b · b + c · c + d · d)))Definitions: Even(a · a + b · b + c · c + d · d)Even(a + b + c + d)Odd(a · a + b · b + c · c + d · d)Odd(a + b + c + d)Original native command in the exact edition - L8
specialize mod_two_preserves_parity (a * a + b * b + c * c + d * d) - L9
specialize mod_two_preserves_parity (a + b + c + d) - L10
apply mod_two_preserves_parity - L11
apply four_square_parity_norm_mod_two_sum
03Separate the logical casesL12–13
04Use earlier factsL14–14
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L14
apply htransport_left_left
05Construct an explicit witnessL15–15
Supply the displayed value, then prove that it has the required property.
- L15
exists n
06Calculate and transport equalitiesL16–17
Original defined command ledger · 19 lines
- 0001
intro n - 0002
intro a - 0003
intro b - 0004
intro c - 0005
intro d - 0006
intro hnorm - 0007
have htransport : (Even(a · a + b · b + c · c + d · d) → Even(a + b + c + d)) ∧ (Even(a + b + c + d) → Even(a · a + b · b + c · c + d · d)) ∧ ((Odd(a · a + b · b + c · c + d · d) → Odd(a + b + c + d)) ∧ (Odd(a + b + c + d) → Odd(a · a + b · b + c · c + d · d)))Exact native replay line
have htransport : ((((exists fsps_even_transport_norm. (a * a + b * b + c * c + d * d) = 2 * fsps_even_transport_norm) -> (exists fsps_even_transport_sum. (a + b + c + d) = 2 * fsps_even_transport_sum)) /\ ((exists fsps_even_transport_back. (a + b + c + d) = 2 * fsps_even_transport_back) -> (exists fsps_even_transport_back_norm. (a * a + b * b + c * c + d * d) = 2 * fsps_even_transport_back_norm))) /\ (((exists fsps_odd_transport_odd_norm. (a * a + b * b + c * c + d * d) = 2 * fsps_odd_transport_odd_norm + 1) -> (exists fsps_odd_transport_odd_sum. (a + b + c + d) = 2 * fsps_odd_transport_odd_sum + 1)) /\ ((exists fsps_odd_transport_odd_back. (a + b + c + d) = 2 * fsps_odd_transport_odd_back + 1) -> (exists fsps_odd_transport_odd_back_norm. (a * a + b * b + c * c + d * d) = 2 * fsps_odd_transport_odd_back_norm + 1)))) - 0008
specialize mod_two_preserves_parity (a * a + b * b + c * c + d * d) - 0009
specialize mod_two_preserves_parity (a + b + c + d) - 0010
apply mod_two_preserves_parity - 0011
apply four_square_parity_norm_mod_two_sum - 0012
cases htransport - 0013
cases htransport_left - 0014
apply htransport_left_left - 0015
exists n - 0016
trans n * 2 - 0017
symm - 0018
exact hnorm - 0019
apply mul_comm