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. ∀ s. ∀ a. ∀ b. Prime(p) → FloorSqrt(p,s) → Le(a,s) → Le(b,s) → Lt(a · a + b · b,p + p)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 s a b. ((~(p = 1) /\ forall frm_prime_left_ftsp_prime frm_prime_right_ftsp_prime. p = frm_prime_left_ftsp_prime * frm_prime_right_ftsp_prime -> frm_prime_left_ftsp_prime = 1 \/ frm_prime_right_ftsp_prime = 1)) -> (((exists bcs_sqrt_lower_gap_ftsp_prime_floor. bcs_sqrt_lower_gap_ftsp_prime_floor + (s) * (s) = (p)) /\ exists bcs_sqrt_upper_gap_ftsp_prime_floor. bcs_sqrt_upper_gap_ftsp_prime_floor + S (p) = S (s) * S (s))) -> (exists ftsp_weak_norm_first_bound. ftsp_weak_norm_first_bound + (a) = s) -> (exists ftsp_weak_norm_second_bound. ftsp_weak_norm_second_bound + (b) = s) -> (exists ftsp_gap_norm_upper. ftsp_gap_norm_upper + S (a * a + b * b) = p + p)Proof neighborhood
Direct theorem prerequisites
Direct 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–8
02Establish hfirstsquareL9–16
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime floor bounded coordinate square strict.
03Establish hsecondsquareL17–26
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime floor bounded coordinate square strict.
- L17
have hsecondsquare : Lt(b · b,p)Definitions: Lt(b · b,p)Original native command in the exact edition - L18
specialize prime_floor_bounded_coordinate_square_strict p - L19
specialize prime_floor_bounded_coordinate_square_strict s - L20
specialize prime_floor_bounded_coordinate_square_strict b - L21
apply prime_floor_bounded_coordinate_square_strict - L22
exact hprime - L23
exact hfloor - L24
exact hsecond - L25
specialize two_strict_values_sum_below_double (a * a) - L26
specialize two_strict_values_sum_below_double (b * b)
Original defined command ledger · 30 lines
- 0001
intro p - 0002
intro s - 0003
intro a - 0004
intro b - 0005
intro hprime - 0006
intro hfloor - 0007
intro hfirst - 0008
intro hsecond - 0009
have hfirstsquare : Lt(a · a,p)Exact native replay line
have hfirstsquare : exists k. k + S (a * a) = p - 0010
specialize prime_floor_bounded_coordinate_square_strict p - 0011
specialize prime_floor_bounded_coordinate_square_strict s - 0012
specialize prime_floor_bounded_coordinate_square_strict a - 0013
apply prime_floor_bounded_coordinate_square_strict - 0014
exact hprime - 0015
exact hfloor - 0016
exact hfirst - 0017
have hsecondsquare : Lt(b · b,p)Exact native replay line
have hsecondsquare : exists k. k + S (b * b) = p - 0018
specialize prime_floor_bounded_coordinate_square_strict p - 0019
specialize prime_floor_bounded_coordinate_square_strict s - 0020
specialize prime_floor_bounded_coordinate_square_strict b - 0021
apply prime_floor_bounded_coordinate_square_strict - 0022
exact hprime - 0023
exact hfloor - 0024
exact hsecond - 0025
specialize two_strict_values_sum_below_double (a * a) - 0026
specialize two_strict_values_sum_below_double (b * b) - 0027
specialize two_strict_values_sum_below_double p - 0028
apply two_strict_values_sum_below_double - 0029
exact hfirstsquare - 0030
exact hsecondsquare