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. ZPairDecode(z,a,b,c,d) → ZPairRep(z,a,b,c,d)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 25 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.
01Fix variables and assumptionsL1–6
02Separate the logical casesL7–10
03Construct an explicit witnessL11–12
04Separate the logical casesL13–13
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L13
split
05Use earlier factsL14–14
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L14
exact hdecode_witness_witness_left
06Separate the logical casesL15–15
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L15
split
07Use earlier factsL16–25
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L16
specialize signed_decode_to_balance x - L17
specialize signed_decode_to_balance a - L18
specialize signed_decode_to_balance b - L19
apply signed_decode_to_balance - L20
exact hdecode_witness_witness_right_left - L21
specialize signed_decode_to_balance x1 - L22
specialize signed_decode_to_balance c - L23
specialize signed_decode_to_balance d - L24
apply signed_decode_to_balance - L25
exact hdecode_witness_witness_right_right
Original defined command ledger · 25 lines
- 0001
intro z - 0002
intro a - 0003
intro b - 0004
intro c - 0005
intro d - 0006
intro hdecode - 0007
cases hdecode - 0008
cases hdecode_witness - 0009
cases hdecode_witness_witness - 0010
cases hdecode_witness_witness_right - 0011
exists x - 0012
exists x1 - 0013
split - 0014
exact hdecode_witness_witness_left - 0015
split - 0016
specialize signed_decode_to_balance x - 0017
specialize signed_decode_to_balance a - 0018
specialize signed_decode_to_balance b - 0019
apply signed_decode_to_balance - 0020
exact hdecode_witness_witness_right_left - 0021
specialize signed_decode_to_balance x1 - 0022
specialize signed_decode_to_balance c - 0023
specialize signed_decode_to_balance d - 0024
apply signed_decode_to_balance - 0025
exact hdecode_witness_witness_right_right