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. ∀ q. ∀ e. ∀ f. ∀ Q. ∀ U. ∀ h. ∀ k. p = 2 · h + 1 → q = 2 · k + 1 → (QRes(p,q) → Even(e)) ∧ (Even(e) → QRes(p,q)) ∧ ((¬QRes(p,q) → Odd(e)) ∧ (Odd(e) → ¬QRes(p,q))) → (QRes(q,p) → Even(f)) ∧ (Even(f) → QRes(q,p)) ∧ ((¬QRes(q,p) → Odd(f)) ∧ (Odd(f) → ¬QRes(q,p))) → ModEq(2,e,Q) → ModEq(2,f,U) → Q + U = h · k → Mod4One(p) ∨ Mod4One(q) → QRes(p,q) ∧ QRes(q,p) ∨ ¬QRes(p,q) ∧ ¬QRes(q,p)Every 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
24 occurrences
In local proof propositions
1 occurrences
Exact expanded native-PA statement
forall p q e f Q U h k. p = 2 * h + 1 -> q = 2 * k + 1 -> (((((exists qr_x_qrc_pq. exists qr_u_qrc_pq qr_v_qrc_pq. qr_x_qrc_pq * qr_x_qrc_pq + p * qr_u_qrc_pq = q + p * qr_v_qrc_pq) -> (exists qrc_even_e_even. e = 2 * qrc_even_e_even)) /\ ((exists qrc_even_e_even. e = 2 * qrc_even_e_even) -> (exists qr_x_qrc_pq. exists qr_u_qrc_pq qr_v_qrc_pq. qr_x_qrc_pq * qr_x_qrc_pq + p * qr_u_qrc_pq = q + p * qr_v_qrc_pq))) /\ (((~(exists qr_x_qrc_pq. exists qr_u_qrc_pq qr_v_qrc_pq. qr_x_qrc_pq * qr_x_qrc_pq + p * qr_u_qrc_pq = q + p * qr_v_qrc_pq)) -> (exists qrc_odd_e_odd. e = 2 * qrc_odd_e_odd + 1)) /\ ((exists qrc_odd_e_odd. e = 2 * qrc_odd_e_odd + 1) -> ~(exists qr_x_qrc_pq. exists qr_u_qrc_pq qr_v_qrc_pq. qr_x_qrc_pq * qr_x_qrc_pq + p * qr_u_qrc_pq = q + p * qr_v_qrc_pq))))) -> (((((exists qr_x_qrc_qp. exists qr_u_qrc_qp qr_v_qrc_qp. qr_x_qrc_qp * qr_x_qrc_qp + q * qr_u_qrc_qp = p + q * qr_v_qrc_qp) -> (exists qrc_even_f_even. f = 2 * qrc_even_f_even)) /\ ((exists qrc_even_f_even. f = 2 * qrc_even_f_even) -> (exists qr_x_qrc_qp. exists qr_u_qrc_qp qr_v_qrc_qp. qr_x_qrc_qp * qr_x_qrc_qp + q * qr_u_qrc_qp = p + q * qr_v_qrc_qp))) /\ (((~(exists qr_x_qrc_qp. exists qr_u_qrc_qp qr_v_qrc_qp. qr_x_qrc_qp * qr_x_qrc_qp + q * qr_u_qrc_qp = p + q * qr_v_qrc_qp)) -> (exists qrc_odd_f_odd. f = 2 * qrc_odd_f_odd + 1)) /\ ((exists qrc_odd_f_odd. f = 2 * qrc_odd_f_odd + 1) -> ~(exists qr_x_qrc_qp. exists qr_u_qrc_qp qr_v_qrc_qp. qr_x_qrc_qp * qr_x_qrc_qp + q * qr_u_qrc_qp = p + q * qr_v_qrc_qp))))) -> (exists qrc_u_e_q qrc_v_e_q. e + 2 * qrc_u_e_q = Q + 2 * qrc_v_e_q) -> (exists qrc_u_f_u qrc_v_f_u. f + 2 * qrc_u_f_u = U + 2 * qrc_v_f_u) -> Q + U = h * k -> (((exists qrc_one_p. p = 4 * qrc_one_p + 1) \/ (exists qrc_one_q. q = 4 * qrc_one_q + 1))) -> ((((exists qr_x_qrc_pq. exists qr_u_qrc_pq qr_v_qrc_pq. qr_x_qrc_pq * qr_x_qrc_pq + p * qr_u_qrc_pq = q + p * qr_v_qrc_pq) /\ (exists qr_x_qrc_qp. exists qr_u_qrc_qp qr_v_qrc_qp. qr_x_qrc_qp * qr_x_qrc_qp + q * qr_u_qrc_qp = p + q * qr_v_qrc_qp)) \/ (~(exists qr_x_qrc_pq. exists qr_u_qrc_pq qr_v_qrc_pq. qr_x_qrc_pq * qr_x_qrc_pq + p * qr_u_qrc_pq = q + p * qr_v_qrc_pq) /\ ~(exists qr_x_qrc_qp. exists qr_u_qrc_qp qr_v_qrc_qp. qr_x_qrc_qp * qr_x_qrc_qp + q * qr_u_qrc_qp = p + q * qr_v_qrc_qp))))Proof neighborhood
Direct theorem prerequisites
Direct 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 (2)
01Fix variables and assumptionsL1–10
02Fix variables and assumptionsL11–16
03Establish hcountL17–26
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gauss count sum mod two from quotient sums.
- L17
have hcount : ModEq(2,e + f,h · k)Definitions: ModEq(2,e + f,h · k)Original native command in the exact edition - L18
specialize gauss_count_sum_mod_two_from_quotient_sums e - L19
specialize gauss_count_sum_mod_two_from_quotient_sums f - L20
specialize gauss_count_sum_mod_two_from_quotient_sums Q - L21
specialize gauss_count_sum_mod_two_from_quotient_sums U - L22
specialize gauss_count_sum_mod_two_from_quotient_sums h - L23
specialize gauss_count_sum_mod_two_from_quotient_sums k - L24
apply gauss_count_sum_mod_two_from_quotient_sums - L25
exact heq - L26
exact hfu
04Use earlier factsL27–36
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L27
exact hsum - L28
specialize qres_same_status_from_mod_four_one p - L29
specialize qres_same_status_from_mod_four_one q - L30
specialize qres_same_status_from_mod_four_one e - L31
specialize qres_same_status_from_mod_four_one f - L32
specialize qres_same_status_from_mod_four_one h - L33
specialize qres_same_status_from_mod_four_one k - L34
apply qres_same_status_from_mod_four_one - L35
exact hp - L36
exact hq
Original defined command ledger · 40 lines
- 0001
intro p - 0002
intro q - 0003
intro e - 0004
intro f - 0005
intro Q - 0006
intro U - 0007
intro h - 0008
intro k - 0009
intro hp - 0010
intro hq - 0011
intro heclass - 0012
intro hfclass - 0013
intro heq - 0014
intro hfu - 0015
intro hsum - 0016
intro hone - 0017
have hcount : ModEq(2,e + f,h · k)Exact native replay line
have hcount : exists qrc_u_count_product qrc_v_count_product. e + f + 2 * qrc_u_count_product = h * k + 2 * qrc_v_count_product - 0018
specialize gauss_count_sum_mod_two_from_quotient_sums e - 0019
specialize gauss_count_sum_mod_two_from_quotient_sums f - 0020
specialize gauss_count_sum_mod_two_from_quotient_sums Q - 0021
specialize gauss_count_sum_mod_two_from_quotient_sums U - 0022
specialize gauss_count_sum_mod_two_from_quotient_sums h - 0023
specialize gauss_count_sum_mod_two_from_quotient_sums k - 0024
apply gauss_count_sum_mod_two_from_quotient_sums - 0025
exact heq - 0026
exact hfu - 0027
exact hsum - 0028
specialize qres_same_status_from_mod_four_one p - 0029
specialize qres_same_status_from_mod_four_one q - 0030
specialize qres_same_status_from_mod_four_one e - 0031
specialize qres_same_status_from_mod_four_one f - 0032
specialize qres_same_status_from_mod_four_one h - 0033
specialize qres_same_status_from_mod_four_one k - 0034
apply qres_same_status_from_mod_four_one - 0035
exact hp - 0036
exact hq - 0037
exact heclass - 0038
exact hfclass - 0039
exact hcount - 0040
exact hone