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 expanded first-order arithmetic statement
forall n p d e. ~(n=0) -> (~((p) = 1) /\ forall pvs_left_divisor_bounded_prime pvs_right_divisor_bounded_prime. (p) = pvs_left_divisor_bounded_prime * pvs_right_divisor_bounded_prime -> pvs_left_divisor_bounded_prime = 1 \/ pvs_right_divisor_bounded_prime = 1) -> (exists pvs_factor_divisor_bounded_prime_divisor. (n) = (p) * pvs_factor_divisor_bounded_prime_divisor) -> (exists pvs_le_gap_divisor_bounded_input. pvs_le_gap_divisor_bounded_input + (d) = (n)) -> ((((~((d)=0)) /\ (((exists pvs_factor_divisor_bounded_graphdivisor. (n) = (d) * pvs_factor_divisor_bounded_graphdivisor) /\ ((((~(exists pvs_factor_divisor_bounded_graphtogglefresh_input. (d) = (p) * pvs_factor_divisor_bounded_graphtogglefresh_input)) /\ ((e)=(p)*(d)))) \/ (((((d)=(p)*(e)) /\ (~(exists pvs_factor_divisor_bounded_graphtogglefresh_output. (e) = (p) * pvs_factor_divisor_bounded_graphtogglefresh_output)))) \/ (((exists pvs_factor_divisor_bounded_graphtogglesquare. (d) = ((p)*(p)) * pvs_factor_divisor_bounded_graphtogglesquare) /\ ((e)=(d)))))))))) \/ ((((d)=0 \/ ~(exists pvs_factor_divisor_bounded_graphnondivisor. (n) = (d) * pvs_factor_divisor_bounded_graphnondivisor)) /\ ((e)=(d))))) -> (exists pvs_le_gap_divisor_bounded_output. pvs_le_gap_divisor_bounded_output + (e) = (n))Constructive proof overview
Generated structural guide
Every actual prime-toggle image of the finite interval 0..n remains in that interval, not in an assumed larger universe.
The unchanged tactic script uses 2 declared prerequisites and contains 28 exact native proof lines.
Alpha v34 checked-use · first admitted v31 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
divisor_le_nonzero Stable theorem; checked-use authorized MC0007 prime_factor_toggle_preserves_divisorDirect 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.
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 exact 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