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. ∀ h. ∀ x. ∀ y. p = 2 · h + 1 → Prime(p) → Le(x,h) → Le(y,h) → ModEq(p,x · x,y · y) → x = yEvery 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 h x y. p = 2 * h + 1 -> ((~(p = 1) /\ forall frm_prime_left_fsri_prime frm_prime_right_fsri_prime. p = frm_prime_left_fsri_prime * frm_prime_right_fsri_prime -> frm_prime_left_fsri_prime = 1 \/ frm_prime_right_fsri_prime = 1)) -> (exists fsri_gap_half_x. fsri_gap_half_x + (x) = (h)) -> (exists fsri_gap_half_y. fsri_gap_half_y + (y) = (h)) -> (exists fsri_left_half_equal fsri_right_half_equal. (x * x) + (p) * fsri_left_half_equal = (y * y) + (p) * fsri_right_half_equal) -> x = yProof neighborhood
Direct theorem prerequisites
FS0049 four_square_ordered_half_square_injectiveDirect 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–9
02Establish horderL10–13
03Separate the logical casesL14–15
04Use earlier factsL16–25
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L16
specialize four_square_ordered_half_square_injective p - L17
specialize four_square_ordered_half_square_injective h - L18
specialize four_square_ordered_half_square_injective x - L19
specialize four_square_ordered_half_square_injective y - L20
specialize four_square_ordered_half_square_injective x1 - L21
apply four_square_ordered_half_square_injective - L22
exact hodd - L23
exact hprime - L24
exact hx - L25
exact hy
05Calculate and transport equalitiesL26–27
06Use earlier factsL28–30
07Separate the logical casesL31–31
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L31
cases horder_right
08Calculate and transport equalitiesL32–32
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L32
symm
09Use earlier factsL33–42
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L33
specialize four_square_ordered_half_square_injective p - L34
specialize four_square_ordered_half_square_injective h - L35
specialize four_square_ordered_half_square_injective y - L36
specialize four_square_ordered_half_square_injective x - L37
specialize four_square_ordered_half_square_injective x1 - L38
apply four_square_ordered_half_square_injective - L39
exact hodd - L40
exact hprime - L41
exact hy - L42
exact hx
10Calculate and transport equalitiesL43–44
Original defined command ledger · 51 lines
- 0001
intro p - 0002
intro h - 0003
intro x - 0004
intro y - 0005
intro hodd - 0006
intro hprime - 0007
intro hx - 0008
intro hy - 0009
intro hmod - 0010
have horder : Le(x,y) ∨ Le(y,x)Exact native replay line
have horder : (exists fsri_gap_half_order_xy. fsri_gap_half_order_xy + (x) = (y)) \/ (exists fsri_gap_half_order_yx. fsri_gap_half_order_yx + (y) = (x)) - 0011
specialize le_total x - 0012
specialize le_total y - 0013
exact le_total - 0014
cases horder - 0015
cases horder_left - 0016
specialize four_square_ordered_half_square_injective p - 0017
specialize four_square_ordered_half_square_injective h - 0018
specialize four_square_ordered_half_square_injective x - 0019
specialize four_square_ordered_half_square_injective y - 0020
specialize four_square_ordered_half_square_injective x1 - 0021
apply four_square_ordered_half_square_injective - 0022
exact hodd - 0023
exact hprime - 0024
exact hx - 0025
exact hy - 0026
trans x1 + x - 0027
symm - 0028
exact horder_left_witness - 0029
apply add_comm - 0030
exact hmod - 0031
cases horder_right - 0032
symm - 0033
specialize four_square_ordered_half_square_injective p - 0034
specialize four_square_ordered_half_square_injective h - 0035
specialize four_square_ordered_half_square_injective y - 0036
specialize four_square_ordered_half_square_injective x - 0037
specialize four_square_ordered_half_square_injective x1 - 0038
apply four_square_ordered_half_square_injective - 0039
exact hodd - 0040
exact hprime - 0041
exact hy - 0042
exact hx - 0043
trans x1 + y - 0044
symm - 0045
exact horder_right_witness - 0046
apply add_comm - 0047
specialize mod_eq_symm p - 0048
specialize mod_eq_symm (x * x) - 0049
specialize mod_eq_symm (y * y) - 0050
apply mod_eq_symm - 0051
exact hmod