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. ∀ e. p = 2 · h + 1 → Prime(p) → h = 2 · e ∨ (∃ x. h = 2 · x + 1 ∧ e = S x) → (QRes(p,2) → Even(e)) ∧ (Even(e) → QRes(p,2)) ∧ ((¬QRes(p,2) → Odd(e)) ∧ (Odd(e) → ¬QRes(p,2))) → (QRes(p,2) → (∃ x. p = 8 · x + 1) ∨ (∃ x. p = 8 · x + 7)) ∧ ((∃ x. p = 8 · x + 1) ∨ (∃ x. p = 8 · x + 7) → QRes(p,2)) ∧ ((¬QRes(p,2) → (∃ x. p = 8 · x + 3) ∨ (∃ x. p = 8 · x + 5)) ∧ ((∃ x. p = 8 · x + 3) ∨ (∃ x. p = 8 · x + 5) → ¬QRes(p,2)))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 h e. p = 2 * h + 1 -> ((~(p = 1) /\ forall frm_prime_left_qst_prime frm_prime_right_qst_prime. p = frm_prime_left_qst_prime * frm_prime_right_qst_prime -> frm_prime_left_qst_prime = 1 \/ frm_prime_right_qst_prime = 1)) -> (((h = 2 * e) \/ (exists qst_count_half_shape. h = 2 * qst_count_half_shape + 1 /\ e = S qst_count_half_shape))) -> ((((((exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two) -> (exists qst_even_count. e = 2 * qst_even_count)) /\ ((exists qst_even_count. e = 2 * qst_even_count) -> (exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two)))) /\ ((((~(exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two)) -> (exists qst_odd_count. e = 2 * qst_odd_count + 1)) /\ ((exists qst_odd_count. e = 2 * qst_odd_count + 1) -> (~(exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two))))))) -> ((((((exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two) -> (((exists qst_mod_eight_modulus_one. p = 8 * qst_mod_eight_modulus_one + 1) \/ (exists qst_mod_eight_modulus_seven. p = 8 * qst_mod_eight_modulus_seven + 7)))) /\ ((((exists qst_mod_eight_modulus_one. p = 8 * qst_mod_eight_modulus_one + 1) \/ (exists qst_mod_eight_modulus_seven. p = 8 * qst_mod_eight_modulus_seven + 7))) -> (exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two)))) /\ ((((~(exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two)) -> (((exists qst_mod_eight_modulus_three. p = 8 * qst_mod_eight_modulus_three + 3) \/ (exists qst_mod_eight_modulus_five. p = 8 * qst_mod_eight_modulus_five + 5)))) /\ ((((exists qst_mod_eight_modulus_three. p = 8 * qst_mod_eight_modulus_three + 3) \/ (exists qst_mod_eight_modulus_five. p = 8 * qst_mod_eight_modulus_five + 5))) -> (~(exists qst_root_two. exists qst_mod_left_two qst_mod_right_two. qst_root_two * qst_root_two + p * qst_mod_left_two = 2 + p * qst_mod_right_two)))))))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 (1)
01Fix variables and assumptionsL1–7
02Establish hparityL8–14
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply doubling gauss count parity mod eight complete.
- L8
have hparity : (Even(e) → (∃ x. p = 8 · x + 1) ∨ (∃ x. p = 8 · x + 7)) ∧ ((∃ x. p = 8 · x + 1) ∨ (∃ x. p = 8 · x + 7) → Even(e)) ∧ ((Odd(e) → (∃ x. p = 8 · x + 3) ∨ (∃ x. p = 8 · x + 5)) ∧ ((∃ x. p = 8 · x + 3) ∨ (∃ x. p = 8 · x + 5) → Odd(e)))Definitions: Even(e)Odd(e)Original native command in the exact edition - L9
specialize doubling_gauss_count_parity_mod_eight_complete p - L10
specialize doubling_gauss_count_parity_mod_eight_complete h - L11
specialize doubling_gauss_count_parity_mod_eight_complete e - L12
apply doubling_gauss_count_parity_mod_eight_complete - L13
exact hpodd - L14
exact hshape
03Separate the logical casesL15–22
04Fix variables and assumptionsL23–23
Work with arbitrary variables or the premises of the current implication.
- L23
intro hresidue
05Use earlier factsL24–26
06Fix variables and assumptionsL27–27
Work with arbitrary variables or the premises of the current implication.
- L27
intro hgood
07Use earlier factsL28–30
08Separate the logical casesL31–31
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L31
split
09Fix variables and assumptionsL32–32
Work with arbitrary variables or the premises of the current implication.
- L32
intro hnonresidue
10Use earlier factsL33–35
11Fix variables and assumptionsL36–37
Original defined command ledger · 41 lines
- 0001
intro p - 0002
intro h - 0003
intro e - 0004
intro hpodd - 0005
intro hprime - 0006
intro hshape - 0007
intro hgauss - 0008
have hparity : (Even(e) → (∃ x. p = 8 · x + 1) ∨ (∃ x. p = 8 · x + 7)) ∧ ((∃ x. p = 8 · x + 1) ∨ (∃ x. p = 8 · x + 7) → Even(e)) ∧ ((Odd(e) → (∃ x. p = 8 · x + 3) ∨ (∃ x. p = 8 · x + 5)) ∧ ((∃ x. p = 8 · x + 3) ∨ (∃ x. p = 8 · x + 5) → Odd(e)))Exact native replay line
have hparity : (((((exists qst_even_count. e = 2 * qst_even_count) -> (((exists qst_mod_eight_modulus_one. p = 8 * qst_mod_eight_modulus_one + 1) \/ (exists qst_mod_eight_modulus_seven. p = 8 * qst_mod_eight_modulus_seven + 7)))) /\ ((((exists qst_mod_eight_modulus_one. p = 8 * qst_mod_eight_modulus_one + 1) \/ (exists qst_mod_eight_modulus_seven. p = 8 * qst_mod_eight_modulus_seven + 7))) -> (exists qst_even_count. e = 2 * qst_even_count)))) /\ ((((exists qst_odd_count. e = 2 * qst_odd_count + 1) -> (((exists qst_mod_eight_modulus_three. p = 8 * qst_mod_eight_modulus_three + 3) \/ (exists qst_mod_eight_modulus_five. p = 8 * qst_mod_eight_modulus_five + 5)))) /\ ((((exists qst_mod_eight_modulus_three. p = 8 * qst_mod_eight_modulus_three + 3) \/ (exists qst_mod_eight_modulus_five. p = 8 * qst_mod_eight_modulus_five + 5))) -> (exists qst_odd_count. e = 2 * qst_odd_count + 1))))) - 0009
specialize doubling_gauss_count_parity_mod_eight_complete p - 0010
specialize doubling_gauss_count_parity_mod_eight_complete h - 0011
specialize doubling_gauss_count_parity_mod_eight_complete e - 0012
apply doubling_gauss_count_parity_mod_eight_complete - 0013
exact hpodd - 0014
exact hshape - 0015
cases hgauss - 0016
cases hgauss_left - 0017
cases hgauss_right - 0018
cases hparity - 0019
cases hparity_left - 0020
cases hparity_right - 0021
split - 0022
split - 0023
intro hresidue - 0024
apply hparity_left_left - 0025
apply hgauss_left_left - 0026
exact hresidue - 0027
intro hgood - 0028
apply hgauss_left_right - 0029
apply hparity_left_right - 0030
exact hgood - 0031
split - 0032
intro hnonresidue - 0033
apply hparity_right_left - 0034
apply hgauss_right_left - 0035
exact hnonresidue - 0036
intro hbad - 0037
intro hresidue - 0038
apply hgauss_right_right - 0039
apply hparity_right_right - 0040
exact hbad - 0041
exact hresidue