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
∀ input. ∀ m. ¬m = 0 → ∃ x. ∃ y. SignedCodeFloor(input,m,x,y)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 28 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–3
02Use earlier factsL4–4
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L4
specialize signed_decode_total input
03Separate the logical casesL5–6
04Establish hfloorL7–12
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed integer canonical floor exists.
- L7
have hfloor : ∃ code. ∃ qp. ∃ qn. ∃ r. SignedDecode(code,qp,qn) ∧ SignedFloor(x,x1,m,qp,qn,r)Definitions: SignedDecode(code,qp,qn)SignedFloor(x,x1,m,qp,qn,r)Original native command in the exact edition - L8
specialize signed_integer_canonical_floor_exists x - L9
specialize signed_integer_canonical_floor_exists x1 - L10
specialize signed_integer_canonical_floor_exists m - L11
apply signed_integer_canonical_floor_exists - L12
exact hm
05Separate the logical casesL13–17
06Construct an explicit witnessL18–23
07Separate the logical casesL24–24
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L24
split
08Use earlier factsL25–25
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L25
exact signed_decode_total_witness_witness
09Separate the logical casesL26–26
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L26
split
Original defined command ledger · 28 lines
- 0001
intro input - 0002
intro m - 0003
intro hm - 0004
specialize signed_decode_total input - 0005
cases signed_decode_total - 0006
cases signed_decode_total_witness - 0007
have hfloor : ∃ code. ∃ qp. ∃ qn. ∃ r. SignedDecode(code,qp,qn) ∧ SignedFloor(x,x1,m,qp,qn,r) - 0008
specialize signed_integer_canonical_floor_exists x - 0009
specialize signed_integer_canonical_floor_exists x1 - 0010
specialize signed_integer_canonical_floor_exists m - 0011
apply signed_integer_canonical_floor_exists - 0012
exact hm - 0013
cases hfloor - 0014
cases hfloor_witness - 0015
cases hfloor_witness_witness - 0016
cases hfloor_witness_witness_witness - 0017
cases hfloor_witness_witness_witness_witness - 0018
exists x2 - 0019
exists x5 - 0020
exists x - 0021
exists x1 - 0022
exists x3 - 0023
exists x4 - 0024
split - 0025
exact signed_decode_total_witness_witness - 0026
split - 0027
exact hfloor_witness_witness_witness_witness_left - 0028
exact hfloor_witness_witness_witness_witness_right