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 original first-admission records.
Exact expanded first-order arithmetic statement
forall k. (exists pc_code_count_one_source pc_scale_count_one_source. (forall pc_index_count_one_source_mask. (exists pc_lt_count_one_source_mask_bound. pc_lt_count_one_source_mask_bound + S (pc_index_count_one_source_mask) = (1)) -> exists pc_bit_count_one_source_mask. (((exists fs_h_pc_count_one_source_mask_entry. fs_h_pc_count_one_source_mask_entry + S (pc_bit_count_one_source_mask) = S ((S (pc_index_count_one_source_mask)) * pc_scale_count_one_source)) /\ exists fs_q_pc_count_one_source_mask_entry. pc_code_count_one_source = fs_q_pc_count_one_source_mask_entry * S ((S (pc_index_count_one_source_mask)) * pc_scale_count_one_source) + (pc_bit_count_one_source_mask))) /\ (((((~(S (pc_index_count_one_source_mask) = 1) /\ forall bpr_left_pc_count_one_source_mask_choice_prime bpr_right_pc_count_one_source_mask_choice_prime. S (pc_index_count_one_source_mask) = bpr_left_pc_count_one_source_mask_choice_prime * bpr_right_pc_count_one_source_mask_choice_prime -> bpr_left_pc_count_one_source_mask_choice_prime = 1 \/ bpr_right_pc_count_one_source_mask_choice_prime = 1)) /\ pc_bit_count_one_source_mask = 1) \/ (~((~(S (pc_index_count_one_source_mask) = 1) /\ forall bpr_left_pc_count_one_source_mask_choice_prime bpr_right_pc_count_one_source_mask_choice_prime. S (pc_index_count_one_source_mask) = bpr_left_pc_count_one_source_mask_choice_prime * bpr_right_pc_count_one_source_mask_choice_prime -> bpr_left_pc_count_one_source_mask_choice_prime = 1 \/ bpr_right_pc_count_one_source_mask_choice_prime = 1)) /\ pc_bit_count_one_source_mask = 0)))) /\ (exists fs_u_pc_count_one_source_sum fs_v_pc_count_one_source_sum. ((((exists fs_h_pc_count_one_source_sum_body_start. fs_h_pc_count_one_source_sum_body_start + S (0) = S ((S (0)) * fs_v_pc_count_one_source_sum)) /\ exists fs_q_pc_count_one_source_sum_body_start. fs_u_pc_count_one_source_sum = fs_q_pc_count_one_source_sum_body_start * S ((S (0)) * fs_v_pc_count_one_source_sum) + (0))) /\ ((((exists fs_h_pc_count_one_source_sum_body_terminal. fs_h_pc_count_one_source_sum_body_terminal + S (k) = S ((S (1)) * fs_v_pc_count_one_source_sum)) /\ exists fs_q_pc_count_one_source_sum_body_terminal. fs_u_pc_count_one_source_sum = fs_q_pc_count_one_source_sum_body_terminal * S ((S (1)) * fs_v_pc_count_one_source_sum) + (k))) /\ forall fs_i_pc_count_one_source_sum_body_steps. (exists fs_lt_pc_count_one_source_sum_body_steps_bound. fs_lt_pc_count_one_source_sum_body_steps_bound + S fs_i_pc_count_one_source_sum_body_steps = 1) -> exists fs_a_pc_count_one_source_sum_body_steps fs_r_pc_count_one_source_sum_body_steps fs_s_pc_count_one_source_sum_body_steps. ((((exists fs_h_pc_count_one_source_sum_body_steps_summand. fs_h_pc_count_one_source_sum_body_steps_summand + S (fs_a_pc_count_one_source_sum_body_steps) = S ((S (fs_i_pc_count_one_source_sum_body_steps)) * pc_scale_count_one_source)) /\ exists fs_q_pc_count_one_source_sum_body_steps_summand. pc_code_count_one_source = fs_q_pc_count_one_source_sum_body_steps_summand * S ((S (fs_i_pc_count_one_source_sum_body_steps)) * pc_scale_count_one_source) + (fs_a_pc_count_one_source_sum_body_steps))) /\ ((((exists fs_h_pc_count_one_source_sum_body_steps_partial. fs_h_pc_count_one_source_sum_body_steps_partial + S (fs_r_pc_count_one_source_sum_body_steps) = S ((S (fs_i_pc_count_one_source_sum_body_steps)) * fs_v_pc_count_one_source_sum)) /\ exists fs_q_pc_count_one_source_sum_body_steps_partial. fs_u_pc_count_one_source_sum = fs_q_pc_count_one_source_sum_body_steps_partial * S ((S (fs_i_pc_count_one_source_sum_body_steps)) * fs_v_pc_count_one_source_sum) + (fs_r_pc_count_one_source_sum_body_steps))) /\ ((((exists fs_h_pc_count_one_source_sum_body_steps_successor. fs_h_pc_count_one_source_sum_body_steps_successor + S (fs_s_pc_count_one_source_sum_body_steps) = S ((S (S fs_i_pc_count_one_source_sum_body_steps)) * fs_v_pc_count_one_source_sum)) /\ exists fs_q_pc_count_one_source_sum_body_steps_successor. fs_u_pc_count_one_source_sum = fs_q_pc_count_one_source_sum_body_steps_successor * S ((S (S fs_i_pc_count_one_source_sum_body_steps)) * fs_v_pc_count_one_source_sum) + (fs_s_pc_count_one_source_sum_body_steps))) /\ fs_s_pc_count_one_source_sum_body_steps = fs_r_pc_count_one_source_sum_body_steps + fs_a_pc_count_one_source_sum_body_steps))))))) -> k = 0Constructive proof overview
Generated structural guide
One contributes no prime: the exact prime count at one is zero.
The unchanged tactic script uses 4 declared prerequisites and contains 44 exact native proof lines.
Alpha v34 checked-use · first admitted v27 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
beta_sum_succ_decompose Stable theorem; checked-use authorized PC0004 prime_bit_prefix_entry le_refl Stable theorem; checked-use authorized beta_sum_zero Stable theorem; checked-use authorizedDirect 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–2
02Separate the logical casesL3–5
03Establish hdL6–12
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply beta sum succ decompose.
04Separate the logical casesL13–16
05Establish hcL17–26
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime bit prefix entry.
- L17
have hc : ((((~(S (0) = 1) /\ forall bpr_left_pc_count_one_choice_prime bpr_right_pc_count_one_choice_prime. S (0) = bpr_left_pc_count_one_choice_prime * bpr_right_pc_count_one_choice_prime -> bpr_left_pc_count_one_choice_prime = 1 \/ bpr_right_pc_count_one_choice_prime = 1)) /\ x2 = 1) \/ (~((~(S (0) = 1) /\ forall bpr_left_pc_count_one_choice_prime bpr_right_pc_count_one_choice_prime. S (0) = bpr_left_pc_count_one_choice_prime * bpr_right_pc_count_one_choice_prime -> bpr_left_pc_count_one_choice_prime = 1 \/ bpr_right_pc_count_one_choice_prime = 1)) /\ x2 = 0)) - L18
specialize prime_bit_prefix_entry x - L19
specialize prime_bit_prefix_entry x1 - L20
specialize prime_bit_prefix_entry 1 - L21
specialize prime_bit_prefix_entry 0 - L22
specialize prime_bit_prefix_entry x2 - L23
apply prime_bit_prefix_entry - L24
exact h_witness_witness_left - L25
specialize le_refl 1 - L26
apply le_refl
06Use earlier factsL27–27
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L27
exact hd_witness_witness_left
07Separate the logical casesL28–31
08Use earlier factsL32–32
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L32
apply hc_left_left_left
09Calculate and transport equalitiesL33–33
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L33
refl
10Separate the logical casesL34–34
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L34
cases hc_right
11Establish hzL35–44
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply beta sum zero.
Original exact command ledger · 44 lines
- 0001
intro k - 0002
intro h - 0003
cases h - 0004
cases h_witness - 0005
cases h_witness_witness - 0006
have hd : exists a w. (((exists fs_h_pc_count_one_entry. fs_h_pc_count_one_entry + S (a) = S ((S (0)) * x1)) /\ exists fs_q_pc_count_one_entry. x = fs_q_pc_count_one_entry * S ((S (0)) * x1) + (a))) /\ ((exists fs_u_pc_count_one_previous fs_v_pc_count_one_previous. ((((exists fs_h_pc_count_one_previous_body_start. fs_h_pc_count_one_previous_body_start + S (0) = S ((S (0)) * fs_v_pc_count_one_previous)) /\ exists fs_q_pc_count_one_previous_body_start. fs_u_pc_count_one_previous = fs_q_pc_count_one_previous_body_start * S ((S (0)) * fs_v_pc_count_one_previous) + (0))) /\ ((((exists fs_h_pc_count_one_previous_body_terminal. fs_h_pc_count_one_previous_body_terminal + S (w) = S ((S (0)) * fs_v_pc_count_one_previous)) /\ exists fs_q_pc_count_one_previous_body_terminal. fs_u_pc_count_one_previous = fs_q_pc_count_one_previous_body_terminal * S ((S (0)) * fs_v_pc_count_one_previous) + (w))) /\ forall fs_i_pc_count_one_previous_body_steps. (exists fs_lt_pc_count_one_previous_body_steps_bound. fs_lt_pc_count_one_previous_body_steps_bound + S fs_i_pc_count_one_previous_body_steps = 0) -> exists fs_a_pc_count_one_previous_body_steps fs_r_pc_count_one_previous_body_steps fs_s_pc_count_one_previous_body_steps. ((((exists fs_h_pc_count_one_previous_body_steps_summand. fs_h_pc_count_one_previous_body_steps_summand + S (fs_a_pc_count_one_previous_body_steps) = S ((S (fs_i_pc_count_one_previous_body_steps)) * x1)) /\ exists fs_q_pc_count_one_previous_body_steps_summand. x = fs_q_pc_count_one_previous_body_steps_summand * S ((S (fs_i_pc_count_one_previous_body_steps)) * x1) + (fs_a_pc_count_one_previous_body_steps))) /\ ((((exists fs_h_pc_count_one_previous_body_steps_partial. fs_h_pc_count_one_previous_body_steps_partial + S (fs_r_pc_count_one_previous_body_steps) = S ((S (fs_i_pc_count_one_previous_body_steps)) * fs_v_pc_count_one_previous)) /\ exists fs_q_pc_count_one_previous_body_steps_partial. fs_u_pc_count_one_previous = fs_q_pc_count_one_previous_body_steps_partial * S ((S (fs_i_pc_count_one_previous_body_steps)) * fs_v_pc_count_one_previous) + (fs_r_pc_count_one_previous_body_steps))) /\ ((((exists fs_h_pc_count_one_previous_body_steps_successor. fs_h_pc_count_one_previous_body_steps_successor + S (fs_s_pc_count_one_previous_body_steps) = S ((S (S fs_i_pc_count_one_previous_body_steps)) * fs_v_pc_count_one_previous)) /\ exists fs_q_pc_count_one_previous_body_steps_successor. fs_u_pc_count_one_previous = fs_q_pc_count_one_previous_body_steps_successor * S ((S (S fs_i_pc_count_one_previous_body_steps)) * fs_v_pc_count_one_previous) + (fs_s_pc_count_one_previous_body_steps))) /\ fs_s_pc_count_one_previous_body_steps = fs_r_pc_count_one_previous_body_steps + fs_a_pc_count_one_previous_body_steps)))))) /\ k = w + a) - 0007
specialize beta_sum_succ_decompose x - 0008
specialize beta_sum_succ_decompose x1 - 0009
specialize beta_sum_succ_decompose 0 - 0010
specialize beta_sum_succ_decompose k - 0011
apply beta_sum_succ_decompose - 0012
exact h_witness_witness_right - 0013
cases hd - 0014
cases hd_witness - 0015
cases hd_witness_witness - 0016
cases hd_witness_witness_right - 0017
have hc : ((((~(S (0) = 1) /\ forall bpr_left_pc_count_one_choice_prime bpr_right_pc_count_one_choice_prime. S (0) = bpr_left_pc_count_one_choice_prime * bpr_right_pc_count_one_choice_prime -> bpr_left_pc_count_one_choice_prime = 1 \/ bpr_right_pc_count_one_choice_prime = 1)) /\ x2 = 1) \/ (~((~(S (0) = 1) /\ forall bpr_left_pc_count_one_choice_prime bpr_right_pc_count_one_choice_prime. S (0) = bpr_left_pc_count_one_choice_prime * bpr_right_pc_count_one_choice_prime -> bpr_left_pc_count_one_choice_prime = 1 \/ bpr_right_pc_count_one_choice_prime = 1)) /\ x2 = 0)) - 0018
specialize prime_bit_prefix_entry x - 0019
specialize prime_bit_prefix_entry x1 - 0020
specialize prime_bit_prefix_entry 1 - 0021
specialize prime_bit_prefix_entry 0 - 0022
specialize prime_bit_prefix_entry x2 - 0023
apply prime_bit_prefix_entry - 0024
exact h_witness_witness_left - 0025
specialize le_refl 1 - 0026
apply le_refl - 0027
exact hd_witness_witness_left - 0028
cases hc - 0029
cases hc_left - 0030
cases hc_left_left - 0031
exfalso - 0032
apply hc_left_left_left - 0033
refl - 0034
cases hc_right - 0035
have hz : x3 = 0 - 0036
specialize beta_sum_zero x - 0037
specialize beta_sum_zero x1 - 0038
specialize beta_sum_zero x3 - 0039
apply beta_sum_zero - 0040
exact hd_witness_witness_right_left - 0041
rewrite hd_witness_witness_right_right - 0042
rewrite hz - 0043
rewrite hc_right_right - 0044
norm_num