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
∀ p. ∀ d. ∀ e. ¬p = 0 → ¬d = 0 → PrimeFactorToggle(p,d,e) → ¬e = 0
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 29 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–7
02Separate the logical casesL8–9
03Use earlier factsL10–14
04Calculate and transport equalitiesL15–15
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L15
rewrite he_left_right at hz
05Use earlier factsL16–16
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L16
exact hz
06Separate the logical casesL17–18
07Use earlier factsL19–25
08Separate the logical casesL26–26
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L26
cases he_right_right
09Use earlier factsL27–27
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L27
apply hd
10Calculate and transport equalitiesL28–28
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L28
rewrite he_right_right_right at hz
11Use earlier factsL29–29
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L29
exact hz
Original defined command ledger · 29 lines
- 0001
intro p - 0002
intro d - 0003
intro e - 0004
intro hp - 0005
intro hd - 0006
intro he - 0007
intro hz - 0008
cases he - 0009
cases he_left - 0010
specialize mul_ne_zero (p) - 0011
specialize mul_ne_zero (d) - 0012
apply mul_ne_zero - 0013
exact hp - 0014
exact hd - 0015
rewrite he_left_right at hz - 0016
exact hz - 0017
cases he_right - 0018
cases he_right_left - 0019
specialize factor_nonzero_right (d) - 0020
specialize factor_nonzero_right (p) - 0021
specialize factor_nonzero_right (e) - 0022
apply factor_nonzero_right - 0023
exact hd - 0024
exact he_right_left_left - 0025
exact hz - 0026
cases he_right_right - 0027
apply hd - 0028
rewrite he_right_right_right at hz - 0029
exact hz