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 n k. (exists pc_code_count_bound_source pc_scale_count_bound_source. (forall pc_index_count_bound_source_mask. (exists pc_lt_count_bound_source_mask_bound. pc_lt_count_bound_source_mask_bound + S (pc_index_count_bound_source_mask) = (n)) -> exists pc_bit_count_bound_source_mask. (((exists fs_h_pc_count_bound_source_mask_entry. fs_h_pc_count_bound_source_mask_entry + S (pc_bit_count_bound_source_mask) = S ((S (pc_index_count_bound_source_mask)) * pc_scale_count_bound_source)) /\ exists fs_q_pc_count_bound_source_mask_entry. pc_code_count_bound_source = fs_q_pc_count_bound_source_mask_entry * S ((S (pc_index_count_bound_source_mask)) * pc_scale_count_bound_source) + (pc_bit_count_bound_source_mask))) /\ (((((~(S (pc_index_count_bound_source_mask) = 1) /\ forall bpr_left_pc_count_bound_source_mask_choice_prime bpr_right_pc_count_bound_source_mask_choice_prime. S (pc_index_count_bound_source_mask) = bpr_left_pc_count_bound_source_mask_choice_prime * bpr_right_pc_count_bound_source_mask_choice_prime -> bpr_left_pc_count_bound_source_mask_choice_prime = 1 \/ bpr_right_pc_count_bound_source_mask_choice_prime = 1)) /\ pc_bit_count_bound_source_mask = 1) \/ (~((~(S (pc_index_count_bound_source_mask) = 1) /\ forall bpr_left_pc_count_bound_source_mask_choice_prime bpr_right_pc_count_bound_source_mask_choice_prime. S (pc_index_count_bound_source_mask) = bpr_left_pc_count_bound_source_mask_choice_prime * bpr_right_pc_count_bound_source_mask_choice_prime -> bpr_left_pc_count_bound_source_mask_choice_prime = 1 \/ bpr_right_pc_count_bound_source_mask_choice_prime = 1)) /\ pc_bit_count_bound_source_mask = 0)))) /\ (exists fs_u_pc_count_bound_source_sum fs_v_pc_count_bound_source_sum. ((((exists fs_h_pc_count_bound_source_sum_body_start. fs_h_pc_count_bound_source_sum_body_start + S (0) = S ((S (0)) * fs_v_pc_count_bound_source_sum)) /\ exists fs_q_pc_count_bound_source_sum_body_start. fs_u_pc_count_bound_source_sum = fs_q_pc_count_bound_source_sum_body_start * S ((S (0)) * fs_v_pc_count_bound_source_sum) + (0))) /\ ((((exists fs_h_pc_count_bound_source_sum_body_terminal. fs_h_pc_count_bound_source_sum_body_terminal + S (k) = S ((S (n)) * fs_v_pc_count_bound_source_sum)) /\ exists fs_q_pc_count_bound_source_sum_body_terminal. fs_u_pc_count_bound_source_sum = fs_q_pc_count_bound_source_sum_body_terminal * S ((S (n)) * fs_v_pc_count_bound_source_sum) + (k))) /\ forall fs_i_pc_count_bound_source_sum_body_steps. (exists fs_lt_pc_count_bound_source_sum_body_steps_bound. fs_lt_pc_count_bound_source_sum_body_steps_bound + S fs_i_pc_count_bound_source_sum_body_steps = n) -> exists fs_a_pc_count_bound_source_sum_body_steps fs_r_pc_count_bound_source_sum_body_steps fs_s_pc_count_bound_source_sum_body_steps. ((((exists fs_h_pc_count_bound_source_sum_body_steps_summand. fs_h_pc_count_bound_source_sum_body_steps_summand + S (fs_a_pc_count_bound_source_sum_body_steps) = S ((S (fs_i_pc_count_bound_source_sum_body_steps)) * pc_scale_count_bound_source)) /\ exists fs_q_pc_count_bound_source_sum_body_steps_summand. pc_code_count_bound_source = fs_q_pc_count_bound_source_sum_body_steps_summand * S ((S (fs_i_pc_count_bound_source_sum_body_steps)) * pc_scale_count_bound_source) + (fs_a_pc_count_bound_source_sum_body_steps))) /\ ((((exists fs_h_pc_count_bound_source_sum_body_steps_partial. fs_h_pc_count_bound_source_sum_body_steps_partial + S (fs_r_pc_count_bound_source_sum_body_steps) = S ((S (fs_i_pc_count_bound_source_sum_body_steps)) * fs_v_pc_count_bound_source_sum)) /\ exists fs_q_pc_count_bound_source_sum_body_steps_partial. fs_u_pc_count_bound_source_sum = fs_q_pc_count_bound_source_sum_body_steps_partial * S ((S (fs_i_pc_count_bound_source_sum_body_steps)) * fs_v_pc_count_bound_source_sum) + (fs_r_pc_count_bound_source_sum_body_steps))) /\ ((((exists fs_h_pc_count_bound_source_sum_body_steps_successor. fs_h_pc_count_bound_source_sum_body_steps_successor + S (fs_s_pc_count_bound_source_sum_body_steps) = S ((S (S fs_i_pc_count_bound_source_sum_body_steps)) * fs_v_pc_count_bound_source_sum)) /\ exists fs_q_pc_count_bound_source_sum_body_steps_successor. fs_u_pc_count_bound_source_sum = fs_q_pc_count_bound_source_sum_body_steps_successor * S ((S (S fs_i_pc_count_bound_source_sum_body_steps)) * fs_v_pc_count_bound_source_sum) + (fs_s_pc_count_bound_source_sum_body_steps))) /\ fs_s_pc_count_bound_source_sum_body_steps = fs_r_pc_count_bound_source_sum_body_steps + fs_a_pc_count_bound_source_sum_body_steps))))))) -> (exists pc_le_count_bound_result. pc_le_count_bound_result + (k) = (n))Constructive proof overview
Generated structural guide
The exact prime count is at most the ambient finite interval length.
The unchanged tactic script uses 2 declared prerequisites and contains 18 exact native proof lines.
Alpha v34 checked-use · first admitted v27 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
bit_count_bounded Stable theorem; checked-use authorized PC0007 prime_bit_prefix_all_bitsDirect 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–3
02Separate the logical casesL4–6
03Use earlier factsL7–11
04Separate the logical casesL12–12
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L12
split
05Use earlier factsL13–18
Instantiate or apply named facts and discharge the corresponding proof obligations.
Original exact command ledger · 18 lines
- 0001
intro n - 0002
intro k - 0003
intro h - 0004
cases h - 0005
cases h_witness - 0006
cases h_witness_witness - 0007
specialize bit_count_bounded x - 0008
specialize bit_count_bounded x1 - 0009
specialize bit_count_bounded n - 0010
specialize bit_count_bounded k - 0011
apply bit_count_bounded - 0012
split - 0013
exact h_witness_witness_right - 0014
specialize prime_bit_prefix_all_bits x - 0015
specialize prime_bit_prefix_all_bits x1 - 0016
specialize prime_bit_prefix_all_bits n - 0017
apply prime_bit_prefix_all_bits - 0018
exact h_witness_witness_left