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.
The natural-code carrier consists of genuine pairs of the existing signed integers; no new primitive arithmetic is trusted. The theorem constructs quotient, remainder, and actual norm witnesses. Gaussian gcd, unique factorization, and prime classification are separate targets.
Exact theorem in conservative defined notation
∀ p. ∀ n. ∀ q. ∀ m. ∃ N. GaussianSignedNorm(p,n,q,m,N)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 22 original proof lines are preserved. Only local proposition formulas are abbreviated; every abbreviation has an exact binder-safe expansion check. The linked exact edition contains the unchanged replay script.
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–4
02Establish hrealL5–8
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gaussian signed square exists.
- L5
have hreal : ∃ u. SignedDifferenceSquare(p,n,u)Definitions: SignedDifferenceSquare(p,n,u)Original native command in the exact edition - L6
specialize gaussian_signed_square_exists p - L7
specialize gaussian_signed_square_exists n - L8
apply gaussian_signed_square_exists
03Separate the logical casesL9–9
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L9
cases hreal
04Establish himaginaryL10–13
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gaussian signed square exists.
- L10
have himaginary : ∃ v. SignedDifferenceSquare(q,m,v)Definitions: SignedDifferenceSquare(q,m,v)Original native command in the exact edition - L11
specialize gaussian_signed_square_exists q - L12
specialize gaussian_signed_square_exists m - L13
apply gaussian_signed_square_exists
05Separate the logical casesL14–14
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L14
cases himaginary
06Construct an explicit witnessL15–17
07Separate the logical casesL18–18
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L18
split
08Use earlier factsL19–19
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L19
exact hreal_witness
09Separate the logical casesL20–20
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L20
split
10Use earlier factsL21–21
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L21
exact himaginary_witness
11Calculate and transport equalitiesL22–22
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L22
refl
Original defined command ledger · 22 lines
- 0001
intro p - 0002
intro n - 0003
intro q - 0004
intro m - 0005
have hreal : ∃ u. SignedDifferenceSquare(p,n,u) - 0006
specialize gaussian_signed_square_exists p - 0007
specialize gaussian_signed_square_exists n - 0008
apply gaussian_signed_square_exists - 0009
cases hreal - 0010
have himaginary : ∃ v. SignedDifferenceSquare(q,m,v) - 0011
specialize gaussian_signed_square_exists q - 0012
specialize gaussian_signed_square_exists m - 0013
apply gaussian_signed_square_exists - 0014
cases himaginary - 0015
exists x + x1 - 0016
exists x - 0017
exists x1 - 0018
split - 0019
exact hreal_witness - 0020
split - 0021
exact himaginary_witness - 0022
refl