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 b c a p. ((((exists fs_h_pen_extend_before_initial. fs_h_pen_extend_before_initial + S (2) = S ((S (0)) * c)) /\ exists fs_q_pen_extend_before_initial. b = fs_q_pen_extend_before_initial * S ((S (0)) * c) + (2))) /\ forall pen_index_extend_before. (exists pc_lt_pen_extend_before_bound. pc_lt_pen_extend_before_bound + S (pen_index_extend_before) = (k)) -> exists pen_previous_extend_before pen_following_extend_before. (((exists fs_h_pen_extend_before_previous. fs_h_pen_extend_before_previous + S (pen_previous_extend_before) = S ((S (pen_index_extend_before)) * c)) /\ exists fs_q_pen_extend_before_previous. b = fs_q_pen_extend_before_previous * S ((S (pen_index_extend_before)) * c) + (pen_previous_extend_before))) /\ ((((exists fs_h_pen_extend_before_following. fs_h_pen_extend_before_following + S (pen_following_extend_before) = S ((S (S pen_index_extend_before)) * c)) /\ exists fs_q_pen_extend_before_following. b = fs_q_pen_extend_before_following * S ((S (S pen_index_extend_before)) * c) + (pen_following_extend_before))) /\ (((~(pen_following_extend_before = 1) /\ forall bpr_left_pc_pen_extend_before_next_prime bpr_right_pc_pen_extend_before_next_prime. pen_following_extend_before = bpr_left_pc_pen_extend_before_next_prime * bpr_right_pc_pen_extend_before_next_prime -> bpr_left_pc_pen_extend_before_next_prime = 1 \/ bpr_right_pc_pen_extend_before_next_prime = 1)) /\ ((exists pc_lt_pen_extend_before_next_greater. pc_lt_pen_extend_before_next_greater + S (pen_previous_extend_before) = (pen_following_extend_before)) /\ forall pen_comparison_extend_before_next. ((~(pen_comparison_extend_before_next = 1) /\ forall bpr_left_pc_pen_extend_before_next_comparison bpr_right_pc_pen_extend_before_next_comparison. pen_comparison_extend_before_next = bpr_left_pc_pen_extend_before_next_comparison * bpr_right_pc_pen_extend_before_next_comparison -> bpr_left_pc_pen_extend_before_next_comparison = 1 \/ bpr_right_pc_pen_extend_before_next_comparison = 1)) -> (exists pc_lt_pen_extend_before_next_above. pc_lt_pen_extend_before_next_above + S (pen_previous_extend_before) = (pen_comparison_extend_before_next)) -> (exists pc_le_pen_extend_before_next_minimal. pc_le_pen_extend_before_next_minimal + (pen_following_extend_before) = (pen_comparison_extend_before_next)))))) -> (((exists fs_h_pen_extend_terminal. fs_h_pen_extend_terminal + S (a) = S ((S (k)) * c)) /\ exists fs_q_pen_extend_terminal. b = fs_q_pen_extend_terminal * S ((S (k)) * c) + (a))) -> (((~(p = 1) /\ forall bpr_left_pc_pen_extend_next_prime bpr_right_pc_pen_extend_next_prime. p = bpr_left_pc_pen_extend_next_prime * bpr_right_pc_pen_extend_next_prime -> bpr_left_pc_pen_extend_next_prime = 1 \/ bpr_right_pc_pen_extend_next_prime = 1)) /\ ((exists pc_lt_pen_extend_next_greater. pc_lt_pen_extend_next_greater + S (a) = (p)) /\ forall pen_comparison_extend_next. ((~(pen_comparison_extend_next = 1) /\ forall bpr_left_pc_pen_extend_next_comparison bpr_right_pc_pen_extend_next_comparison. pen_comparison_extend_next = bpr_left_pc_pen_extend_next_comparison * bpr_right_pc_pen_extend_next_comparison -> bpr_left_pc_pen_extend_next_comparison = 1 \/ bpr_right_pc_pen_extend_next_comparison = 1)) -> (exists pc_lt_pen_extend_next_above. pc_lt_pen_extend_next_above + S (a) = (pen_comparison_extend_next)) -> (exists pc_le_pen_extend_next_minimal. pc_le_pen_extend_next_minimal + (p) = (pen_comparison_extend_next)))) -> exists z d. ((((exists fs_h_pen_extend_after_initial. fs_h_pen_extend_after_initial + S (2) = S ((S (0)) * d)) /\ exists fs_q_pen_extend_after_initial. z = fs_q_pen_extend_after_initial * S ((S (0)) * d) + (2))) /\ forall pen_index_extend_after. (exists pc_lt_pen_extend_after_bound. pc_lt_pen_extend_after_bound + S (pen_index_extend_after) = (S k)) -> exists pen_previous_extend_after pen_following_extend_after. (((exists fs_h_pen_extend_after_previous. fs_h_pen_extend_after_previous + S (pen_previous_extend_after) = S ((S (pen_index_extend_after)) * d)) /\ exists fs_q_pen_extend_after_previous. z = fs_q_pen_extend_after_previous * S ((S (pen_index_extend_after)) * d) + (pen_previous_extend_after))) /\ ((((exists fs_h_pen_extend_after_following. fs_h_pen_extend_after_following + S (pen_following_extend_after) = S ((S (S pen_index_extend_after)) * d)) /\ exists fs_q_pen_extend_after_following. z = fs_q_pen_extend_after_following * S ((S (S pen_index_extend_after)) * d) + (pen_following_extend_after))) /\ (((~(pen_following_extend_after = 1) /\ forall bpr_left_pc_pen_extend_after_next_prime bpr_right_pc_pen_extend_after_next_prime. pen_following_extend_after = bpr_left_pc_pen_extend_after_next_prime * bpr_right_pc_pen_extend_after_next_prime -> bpr_left_pc_pen_extend_after_next_prime = 1 \/ bpr_right_pc_pen_extend_after_next_prime = 1)) /\ ((exists pc_lt_pen_extend_after_next_greater. pc_lt_pen_extend_after_next_greater + S (pen_previous_extend_after) = (pen_following_extend_after)) /\ forall pen_comparison_extend_after_next. ((~(pen_comparison_extend_after_next = 1) /\ forall bpr_left_pc_pen_extend_after_next_comparison bpr_right_pc_pen_extend_after_next_comparison. pen_comparison_extend_after_next = bpr_left_pc_pen_extend_after_next_comparison * bpr_right_pc_pen_extend_after_next_comparison -> bpr_left_pc_pen_extend_after_next_comparison = 1 \/ bpr_right_pc_pen_extend_after_next_comparison = 1)) -> (exists pc_lt_pen_extend_after_next_above. pc_lt_pen_extend_after_next_above + S (pen_previous_extend_after) = (pen_comparison_extend_after_next)) -> (exists pc_le_pen_extend_after_next_minimal. pc_le_pen_extend_after_next_minimal + (pen_following_extend_after) = (pen_comparison_extend_after_next)))))) /\ (((exists fs_h_pen_extend_new_terminal. fs_h_pen_extend_new_terminal + S (p) = S ((S (S k)) * d)) /\ exists fs_q_pen_extend_new_terminal. z = fs_q_pen_extend_new_terminal * S ((S (S k)) * d) + (p)))Constructive proof overview
Generated structural guide
Appending the actual next prime preserves every old decoded entry and every minimal-successor edge.
The unchanged tactic script uses 5 declared prerequisites and contains 82 exact native proof lines.
Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
beta_prefix_extend Stable theorem; checked-use authorized zero_le Stable theorem; checked-use authorized succ_le_succ Stable theorem; checked-use authorized le_refl Stable theorem; checked-use authorized finite_lt_succ_eq_or_lt 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.
01Fix variables and assumptionsL1–8
02Separate the logical casesL9–9
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L9
cases hc
03Establish heL10–15
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply beta prefix extend.
04Separate the logical casesL16–18
05Construct an explicit witnessL19–20
06Separate the logical casesL21–22
07Use earlier factsL23–31
Instantiate or apply named facts and discharge the corresponding proof obligations.
08Fix variables and assumptionsL32–33
09Establish hsL34–38
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply finite lt succ eq or lt.
10Separate the logical casesL39–39
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L39
cases hs
11Construct an explicit witnessL40–41
12Separate the logical casesL42–42
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L42
split
13Calculate and transport equalitiesL43–44
14Use earlier factsL45–50
15Separate the logical casesL51–51
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L51
split
16Calculate and transport equalitiesL52–53
17Use earlier factsL54–55
18Establish holdL56–59
19Separate the logical casesL60–63
20Construct an explicit witnessL64–65
21Separate the logical casesL66–66
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L66
split
22Use earlier factsL67–71
23Separate the logical casesL72–72
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L72
split
24Use earlier factsL73–82
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L73
specialize he_witness_witness_right (S i) - L74
specialize he_witness_witness_right x3 - L75
apply he_witness_witness_right - L76
specialize succ_le_succ (S i) - L77
specialize succ_le_succ k - L78
apply succ_le_succ - L79
exact hs_right - L80
exact hold_witness_witness_right_left - L81
exact hold_witness_witness_right_right - L82
exact he_witness_witness_left
Original exact command ledger · 82 lines
- 0001
intro k - 0002
intro b - 0003
intro c - 0004
intro a - 0005
intro p - 0006
intro hc - 0007
intro ha - 0008
intro hp - 0009
cases hc - 0010
have he : exists z d. (((exists fs_h_pen_extend_entry. fs_h_pen_extend_entry + S (p) = S ((S (S k)) * d)) /\ exists fs_q_pen_extend_entry. z = fs_q_pen_extend_entry * S ((S (S k)) * d) + (p))) /\ (forall pen_index_extend_transfer pen_value_extend_transfer. (exists pc_lt_pen_extend_transfer_bound. pc_lt_pen_extend_transfer_bound + S (pen_index_extend_transfer) = (S k)) -> (((exists fs_h_pen_extend_transfer_old. fs_h_pen_extend_transfer_old + S (pen_value_extend_transfer) = S ((S (pen_index_extend_transfer)) * c)) /\ exists fs_q_pen_extend_transfer_old. b = fs_q_pen_extend_transfer_old * S ((S (pen_index_extend_transfer)) * c) + (pen_value_extend_transfer))) -> (((exists fs_h_pen_extend_transfer_new. fs_h_pen_extend_transfer_new + S (pen_value_extend_transfer) = S ((S (pen_index_extend_transfer)) * d)) /\ exists fs_q_pen_extend_transfer_new. z = fs_q_pen_extend_transfer_new * S ((S (pen_index_extend_transfer)) * d) + (pen_value_extend_transfer)))) - 0011
specialize beta_prefix_extend (S k) - 0012
specialize beta_prefix_extend b - 0013
specialize beta_prefix_extend c - 0014
specialize beta_prefix_extend p - 0015
apply beta_prefix_extend - 0016
cases he - 0017
cases he_witness - 0018
cases he_witness_witness - 0019
exists x - 0020
exists x1 - 0021
split - 0022
split - 0023
specialize he_witness_witness_right 0 - 0024
specialize he_witness_witness_right 2 - 0025
apply he_witness_witness_right - 0026
specialize succ_le_succ 0 - 0027
specialize succ_le_succ k - 0028
apply succ_le_succ - 0029
specialize zero_le k - 0030
apply zero_le - 0031
exact hc_left - 0032
intro i - 0033
intro hi - 0034
have hs : i = k \/ (exists pc_lt_pen_extend_case. pc_lt_pen_extend_case + S (i) = (k)) - 0035
specialize finite_lt_succ_eq_or_lt k - 0036
specialize finite_lt_succ_eq_or_lt i - 0037
apply finite_lt_succ_eq_or_lt - 0038
exact hi - 0039
cases hs - 0040
exists a - 0041
exists p - 0042
split - 0043
rewrite hs_left - 0044
rewrite hs_left - 0045
specialize he_witness_witness_right k - 0046
specialize he_witness_witness_right a - 0047
apply he_witness_witness_right - 0048
specialize le_refl (S k) - 0049
apply le_refl - 0050
exact ha - 0051
split - 0052
rewrite hs_left - 0053
rewrite hs_left - 0054
exact he_witness_witness_left - 0055
exact hp - 0056
have hold : exists u v. (((exists fs_h_pen_extend_old_left. fs_h_pen_extend_old_left + S (u) = S ((S (i)) * c)) /\ exists fs_q_pen_extend_old_left. b = fs_q_pen_extend_old_left * S ((S (i)) * c) + (u))) /\ ((((exists fs_h_pen_extend_old_right. fs_h_pen_extend_old_right + S (v) = S ((S (S i)) * c)) /\ exists fs_q_pen_extend_old_right. b = fs_q_pen_extend_old_right * S ((S (S i)) * c) + (v))) /\ (((~(v = 1) /\ forall bpr_left_pc_pen_extend_old_next_prime bpr_right_pc_pen_extend_old_next_prime. v = bpr_left_pc_pen_extend_old_next_prime * bpr_right_pc_pen_extend_old_next_prime -> bpr_left_pc_pen_extend_old_next_prime = 1 \/ bpr_right_pc_pen_extend_old_next_prime = 1)) /\ ((exists pc_lt_pen_extend_old_next_greater. pc_lt_pen_extend_old_next_greater + S (u) = (v)) /\ forall pen_comparison_extend_old_next. ((~(pen_comparison_extend_old_next = 1) /\ forall bpr_left_pc_pen_extend_old_next_comparison bpr_right_pc_pen_extend_old_next_comparison. pen_comparison_extend_old_next = bpr_left_pc_pen_extend_old_next_comparison * bpr_right_pc_pen_extend_old_next_comparison -> bpr_left_pc_pen_extend_old_next_comparison = 1 \/ bpr_right_pc_pen_extend_old_next_comparison = 1)) -> (exists pc_lt_pen_extend_old_next_above. pc_lt_pen_extend_old_next_above + S (u) = (pen_comparison_extend_old_next)) -> (exists pc_le_pen_extend_old_next_minimal. pc_le_pen_extend_old_next_minimal + (v) = (pen_comparison_extend_old_next))))) - 0057
specialize hc_right i - 0058
apply hc_right - 0059
exact hs_right - 0060
cases hold - 0061
cases hold_witness - 0062
cases hold_witness_witness - 0063
cases hold_witness_witness_right - 0064
exists x2 - 0065
exists x3 - 0066
split - 0067
specialize he_witness_witness_right i - 0068
specialize he_witness_witness_right x2 - 0069
apply he_witness_witness_right - 0070
exact hi - 0071
exact hold_witness_witness_left - 0072
split - 0073
specialize he_witness_witness_right (S i) - 0074
specialize he_witness_witness_right x3 - 0075
apply he_witness_witness_right - 0076
specialize succ_le_succ (S i) - 0077
specialize succ_le_succ k - 0078
apply succ_le_succ - 0079
exact hs_right - 0080
exact hold_witness_witness_right_left - 0081
exact hold_witness_witness_right_right - 0082
exact he_witness_witness_left