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. ∀ n. ∀ q. ∀ r. ∀ t. n = p · q + r → Lt(r,p) → Lt(t,p) → ModEq(p,n,t) → r = tEvery purple notation token opens its conservative definition. This is a reading surface; the compiler expands the statement before the unchanged kernel checks it.
Definitions used by this theorem
In the theorem statement
3 occurrences
In local proof propositions
3 occurrences
Exact expanded native-PA statement
forall p n q r t. n = p * q + r -> (exists gsp_lt_gap_gsd_r_below_p. gsp_lt_gap_gsd_r_below_p + S r = p) -> (exists gsp_lt_gap_gsd_canonical_t_below. gsp_lt_gap_gsd_canonical_t_below + S t = p) -> (exists wpp_mod_left_gsd_n_mod_t wpp_mod_right_gsd_n_mod_t. (n) + p * wpp_mod_left_gsd_n_mod_t = (t) + p * wpp_mod_right_gsd_n_mod_t) -> r = tProof neighborhood
Direct theorem prerequisites
PA000H mul_comm PA003C remainder_decomposition_to_mod_eq PA003L mod_eq_symm PA0024 mod_eq_trans PA002U mod_eq_bounded_uniqueDirect theorem dependents
Definition-aware tactic body
Only local propositions introduced by have or suffices are compacted. The untrusted compiler re-expands each one before the original tactic script is replayed; defined notation is never accepted by the kernel. Open the exact replay line beneath every changed 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 (5)
01Fix variables and assumptionsL1–9
02Establish hdirectedL10–15
03Establish hnmodrL16–22
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply remainder decomposition to mod eq.
04Establish hrmodnL23–28
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply mod eq symm.
05Establish hrmodtL29–38
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply mod eq trans.
Original defined command ledger · 43 lines
- 0001
intro p - 0002
intro n - 0003
intro q - 0004
intro r - 0005
intro t - 0006
intro hdivision - 0007
intro hrbelow - 0008
intro htbelow - 0009
intro hnmodt - 0010
have hdirected : n = q * p + r - 0011
trans p * q + r - 0012
exact hdivision - 0013
congr - 0014
apply mul_comm - 0015
refl - 0016
have hnmodr : ModEq(p,n,r)Exact native replay line
have hnmodr : exists wpp_mod_left_gsd_proof_n_mod_r wpp_mod_right_gsd_proof_n_mod_r. (n) + p * wpp_mod_left_gsd_proof_n_mod_r = (r) + p * wpp_mod_right_gsd_proof_n_mod_r - 0017
specialize remainder_decomposition_to_mod_eq p - 0018
specialize remainder_decomposition_to_mod_eq n - 0019
specialize remainder_decomposition_to_mod_eq q - 0020
specialize remainder_decomposition_to_mod_eq r - 0021
apply remainder_decomposition_to_mod_eq - 0022
exact hdirected - 0023
have hrmodn : ModEq(p,r,n)Exact native replay line
have hrmodn : exists wpp_mod_left_gsd_proof_r_mod_n wpp_mod_right_gsd_proof_r_mod_n. (r) + p * wpp_mod_left_gsd_proof_r_mod_n = (n) + p * wpp_mod_right_gsd_proof_r_mod_n - 0024
specialize mod_eq_symm p - 0025
specialize mod_eq_symm n - 0026
specialize mod_eq_symm r - 0027
apply mod_eq_symm - 0028
exact hnmodr - 0029
have hrmodt : ModEq(p,r,t)Exact native replay line
have hrmodt : exists wpp_mod_left_gsd_proof_r_mod_t wpp_mod_right_gsd_proof_r_mod_t. (r) + p * wpp_mod_left_gsd_proof_r_mod_t = (t) + p * wpp_mod_right_gsd_proof_r_mod_t - 0030
specialize mod_eq_trans p - 0031
specialize mod_eq_trans r - 0032
specialize mod_eq_trans n - 0033
specialize mod_eq_trans t - 0034
apply mod_eq_trans - 0035
exact hrmodn - 0036
exact hnmodt - 0037
specialize mod_eq_bounded_unique p - 0038
specialize mod_eq_bounded_unique r - 0039
specialize mod_eq_bounded_unique t - 0040
apply mod_eq_bounded_unique - 0041
exact hrbelow - 0042
exact htbelow - 0043
exact hrmodt