Exact expanded PA statement
forall p. ((~(p = 1) /\ forall qrbu_factor_left_prime_p qrbu_factor_right_prime_p. p = qrbu_factor_left_prime_p * qrbu_factor_right_prime_p -> qrbu_factor_left_prime_p = 1 \/ qrbu_factor_right_prime_p = 1)) -> exists k. p = S (S k)Structural proof guide
Generated structural guide
Every prime natural is the second successor of a natural.
Use the direct prerequisites prime_nonzero, nonzero_is_succ as previously established PA formulas.
The proof proceeds by case analysis (3), intermediate claims (4), equality transport (4).
Referenced ingredients
Proof neighborhood
Direct dependencies
Direct dependents
Formal native tactic body
Dependencies are introduced as named hypotheses before line 1. Linked names are exact direct references. This Stable checked-use theorem is independently kernel-checked when replayed.
- 0001
intro p - 0002
intro hp - 0003
have hp0 : ~(p = 0) - 0004
intro hpzero - 0005
specialize prime_nonzero p - 0006
apply prime_nonzero - 0007
exact hp - 0008
exact hpzero - 0009
have hps : exists k. p = S k - 0010
specialize nonzero_is_succ p - 0011
apply nonzero_is_succ - 0012
exact hp0 - 0013
cases hps - 0014
have hx0 : ~(x = 0) - 0015
intro hx0 - 0016
cases hp - 0017
apply hp_left - 0018
rewrite hps_witness - 0019
rewrite hx0 - 0020
refl - 0021
have hxs : exists k. x = S k - 0022
specialize nonzero_is_succ x - 0023
apply nonzero_is_succ - 0024
exact hx0 - 0025
cases hxs - 0026
exists x1 - 0027
rewrite hps_witness - 0028
rewrite hxs_witness - 0029
refl