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
∀ z. ∀ a. ∀ b. ∀ c. ∀ d. ZPairRep(z,a,b,c,d) → ZPairValid(z)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 24 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–6
02Establish hdecodeL7–14
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gaussian representation decode.
- L7
have hdecode : ∃ e. ∃ f. ∃ g. ∃ h. ZPairDecode(z,e,f,g,h) ∧ (a + f = e + b ∧ c + h = g + d)Definitions: ZPairDecode(z,e,f,g,h)Original native command in the exact edition - L8
specialize gaussian_representation_decode z - L9
specialize gaussian_representation_decode a - L10
specialize gaussian_representation_decode b - L11
specialize gaussian_representation_decode c - L12
specialize gaussian_representation_decode d - L13
apply gaussian_representation_decode - L14
exact hrepresentation
03Separate the logical casesL15–19
04Construct an explicit witnessL20–23
05Use earlier factsL24–24
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L24
exact hdecode_witness_witness_witness_witness_left
Original defined command ledger · 24 lines
- 0001
intro z - 0002
intro a - 0003
intro b - 0004
intro c - 0005
intro d - 0006
intro hrepresentation - 0007
have hdecode : ∃ e. ∃ f. ∃ g. ∃ h. ZPairDecode(z,e,f,g,h) ∧ (a + f = e + b ∧ c + h = g + d) - 0008
specialize gaussian_representation_decode z - 0009
specialize gaussian_representation_decode a - 0010
specialize gaussian_representation_decode b - 0011
specialize gaussian_representation_decode c - 0012
specialize gaussian_representation_decode d - 0013
apply gaussian_representation_decode - 0014
exact hrepresentation - 0015
cases hdecode - 0016
cases hdecode_witness - 0017
cases hdecode_witness_witness - 0018
cases hdecode_witness_witness_witness - 0019
cases hdecode_witness_witness_witness_witness - 0020
exists x - 0021
exists x1 - 0022
exists x2 - 0023
exists x3 - 0024
exact hdecode_witness_witness_witness_witness_left