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
∀ xp. ∀ xn. ∀ m. ¬m = 0 → ∃ x. ∃ y. ∃ z. ∃ n. SignedDecode(x,y,z) ∧ SignedFloor(xp,xn,m,y,z,n)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 36 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 (2)
01Fix variables and assumptionsL1–4
02Establish hfloorL5–10
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed integer floor exists.
- L5
have hfloor : ∃ qp. ∃ qn. ∃ r. SignedFloor(xp,xn,m,qp,qn,r)Definitions: SignedFloor(xp,xn,m,qp,qn,r)Original native command in the exact edition - L6
specialize signed_integer_floor_exists xp - L7
specialize signed_integer_floor_exists xn - L8
specialize signed_integer_floor_exists m - L9
apply signed_integer_floor_exists - L10
exact hm
03Separate the logical casesL11–13
04Use earlier factsL14–15
05Separate the logical casesL16–19
06Construct an explicit witnessL20–23
07Separate the logical casesL24–24
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L24
split
08Use earlier factsL25–34
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L25
exact signed_balance_total_witness_witness_witness_left - L26
specialize signed_integer_floor_quotient_transport xp - L27
specialize signed_integer_floor_quotient_transport xn - L28
specialize signed_integer_floor_quotient_transport m - L29
specialize signed_integer_floor_quotient_transport x - L30
specialize signed_integer_floor_quotient_transport x1 - L31
specialize signed_integer_floor_quotient_transport x4 - L32
specialize signed_integer_floor_quotient_transport x5 - L33
specialize signed_integer_floor_quotient_transport x2 - L34
apply signed_integer_floor_quotient_transport
Original defined command ledger · 36 lines
- 0001
intro xp - 0002
intro xn - 0003
intro m - 0004
intro hm - 0005
have hfloor : ∃ qp. ∃ qn. ∃ r. SignedFloor(xp,xn,m,qp,qn,r) - 0006
specialize signed_integer_floor_exists xp - 0007
specialize signed_integer_floor_exists xn - 0008
specialize signed_integer_floor_exists m - 0009
apply signed_integer_floor_exists - 0010
exact hm - 0011
cases hfloor - 0012
cases hfloor_witness - 0013
cases hfloor_witness_witness - 0014
specialize signed_balance_total x - 0015
specialize signed_balance_total x1 - 0016
cases signed_balance_total - 0017
cases signed_balance_total_witness - 0018
cases signed_balance_total_witness_witness - 0019
cases signed_balance_total_witness_witness_witness - 0020
exists x3 - 0021
exists x4 - 0022
exists x5 - 0023
exists x2 - 0024
split - 0025
exact signed_balance_total_witness_witness_witness_left - 0026
specialize signed_integer_floor_quotient_transport xp - 0027
specialize signed_integer_floor_quotient_transport xn - 0028
specialize signed_integer_floor_quotient_transport m - 0029
specialize signed_integer_floor_quotient_transport x - 0030
specialize signed_integer_floor_quotient_transport x1 - 0031
specialize signed_integer_floor_quotient_transport x4 - 0032
specialize signed_integer_floor_quotient_transport x5 - 0033
specialize signed_integer_floor_quotient_transport x2 - 0034
apply signed_integer_floor_quotient_transport - 0035
exact signed_balance_total_witness_witness_witness_right - 0036
exact hfloor_witness_witness_witness