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.
Exact expanded first-order arithmetic statement
forall p n P N D. p + N = P + n -> P = N + D -> p = n + DConstructive proof overview
Generated structural guide
A genuine nonnegative signed gap transports across integer cross-sum equality by additive cancellation.
The unchanged tactic script uses 3 declared prerequisites and contains 21 exact native proof lines.
Alpha v34 checked-use · first admitted v27 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
add_right_cancel Stable theorem; checked-use authorized four_square_euler_add_swap_last Alpha theorem; checked-use authorized add_comm Stable theorem; checked-use authorizedDirect dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Local theorem links identify exact declared prerequisites. This exact body belongs to a complete independently kernel-checked constructive proof bundle and has Alpha checked-use authority; it does not imply Stable membership.
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–7
02Use earlier factsL8–11
03Calculate and transport equalitiesL12–12
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L12
trans P + n
04Use earlier factsL13–13
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L13
exact hbalance
05Calculate and transport equalitiesL14–15
06Use earlier factsL16–16
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L16
apply four_square_euler_add_swap_last
07Calculate and transport equalitiesL17–18
08Use earlier factsL19–19
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L19
apply add_comm
09Calculate and transport equalitiesL20–20
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L20
refl
10Use earlier factsL21–21
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L21
apply four_square_euler_add_swap_last
Original exact command ledger · 21 lines
- 0001
intro p - 0002
intro n - 0003
intro P - 0004
intro N - 0005
intro D - 0006
intro hbalance - 0007
intro hgap - 0008
specialize add_right_cancel (p) - 0009
specialize add_right_cancel (n + D) - 0010
specialize add_right_cancel (N) - 0011
apply add_right_cancel - 0012
trans P + n - 0013
exact hbalance - 0014
rewrite hgap - 0015
trans (N + n) + D - 0016
apply four_square_euler_add_swap_last - 0017
trans (n + N) + D - 0018
congr - 0019
apply add_comm - 0020
refl - 0021
apply four_square_euler_add_swap_last