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. ¬n = 0 → Prime(p) → Dvd(p,n) → ∃ x. ∃ y. DivisorPrimeTogglePrefix(n,p,x,y,S n) ∧ PermutationPrefix(x,y,S n)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 26 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–5
02Establish htL6–11
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply divisor prime toggle prefix exists.
- L6
have ht : ∃ b. ∃ c. DivisorPrimeTogglePrefix(n,p,b,c,S n)Definitions: DivisorPrimeTogglePrefix(n,p,b,c,S n)Original native command in the exact edition - L7
specialize divisor_prime_toggle_prefix_exists (n) - L8
specialize divisor_prime_toggle_prefix_exists (p) - L9
specialize divisor_prime_toggle_prefix_exists (S n) - L10
apply divisor_prime_toggle_prefix_exists - L11
exact hp
03Separate the logical casesL12–13
04Construct an explicit witnessL14–15
05Separate the logical casesL16–16
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L16
split
06Use earlier factsL17–26
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L17
exact ht_witness_witness - L18
specialize divisor_prime_toggle_prefix_permutation (n) - L19
specialize divisor_prime_toggle_prefix_permutation (p) - L20
specialize divisor_prime_toggle_prefix_permutation (x) - L21
specialize divisor_prime_toggle_prefix_permutation (x1) - L22
apply divisor_prime_toggle_prefix_permutation - L23
exact hn - L24
exact hp - L25
exact hpn - L26
exact ht_witness_witness
Original defined command ledger · 26 lines
- 0001
intro n - 0002
intro p - 0003
intro hn - 0004
intro hp - 0005
intro hpn - 0006
have ht : ∃ b. ∃ c. DivisorPrimeTogglePrefix(n,p,b,c,S n) - 0007
specialize divisor_prime_toggle_prefix_exists (n) - 0008
specialize divisor_prime_toggle_prefix_exists (p) - 0009
specialize divisor_prime_toggle_prefix_exists (S n) - 0010
apply divisor_prime_toggle_prefix_exists - 0011
exact hp - 0012
cases ht - 0013
cases ht_witness - 0014
exists x - 0015
exists x1 - 0016
split - 0017
exact ht_witness_witness - 0018
specialize divisor_prime_toggle_prefix_permutation (n) - 0019
specialize divisor_prime_toggle_prefix_permutation (p) - 0020
specialize divisor_prime_toggle_prefix_permutation (x) - 0021
specialize divisor_prime_toggle_prefix_permutation (x1) - 0022
apply divisor_prime_toggle_prefix_permutation - 0023
exact hn - 0024
exact hp - 0025
exact hpn - 0026
exact ht_witness_witness