Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved.
The input n is positive. Signed code 2 denotes +1, so the actual sum is +1 at n=1 and zero for n>1. The positive-values result permits arbitrary F(0), which the divisor mask excludes. Prime-square multiples contribute zero. Full G007 inversion is established in its separate family.
Exact theorem in conservative defined notation
∀ n. ∀ p. ∀ d. ∀ e. ¬n = 0 → Prime(p) → Dvd(p,n) → Le(d,n) → DivisorPrimeToggle(n,p,d,e) → Le(e,n)
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–9
02Separate the logical casesL10–12
03Use earlier factsL13–22
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L13
specialize divisor_le_nonzero (e) - L14
specialize divisor_le_nonzero (n) - L15
apply divisor_le_nonzero - L16
exact hn - L17
specialize prime_factor_toggle_preserves_divisor (p) - L18
specialize prime_factor_toggle_preserves_divisor (n) - L19
specialize prime_factor_toggle_preserves_divisor (d) - L20
specialize prime_factor_toggle_preserves_divisor (e) - L21
apply prime_factor_toggle_preserves_divisor - L22
exact hp
04Use earlier factsL23–25
05Separate the logical casesL26–26
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L26
cases he_right
06Calculate and transport equalitiesL27–27
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L27
rewrite he_right_right
07Use earlier factsL28–28
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L28
exact hd
Original defined command ledger · 28 lines
- 0001
intro n - 0002
intro p - 0003
intro d - 0004
intro e - 0005
intro hn - 0006
intro hp - 0007
intro hpn - 0008
intro hd - 0009
intro he - 0010
cases he - 0011
cases he_left - 0012
cases he_left_right - 0013
specialize divisor_le_nonzero (e) - 0014
specialize divisor_le_nonzero (n) - 0015
apply divisor_le_nonzero - 0016
exact hn - 0017
specialize prime_factor_toggle_preserves_divisor (p) - 0018
specialize prime_factor_toggle_preserves_divisor (n) - 0019
specialize prime_factor_toggle_preserves_divisor (d) - 0020
specialize prime_factor_toggle_preserves_divisor (e) - 0021
apply prime_factor_toggle_preserves_divisor - 0022
exact hp - 0023
exact hpn - 0024
exact he_left_right_left - 0025
exact he_left_right_right - 0026
cases he_right - 0027
rewrite he_right_right - 0028
exact hd