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.
Statement with defined notation
∀ a. ∀ b. ∀ c. ∀ l. (∀ x. Lt(x,l) → ∃ y. BetaAt(b,c,x,y) ∧ (Prime(S (a + x)) ∧ y = S (a + x) ∨ ¬Prime(S (a + x)) ∧ y = 1)) → ∃ x. ∃ y. ∀ z. Lt(z,S l) → ∃ n. BetaAt(x,y,z,n) ∧ (Prime(S (a + z)) ∧ n = S (a + z) ∨ ¬Prime(S (a + z)) ∧ n = 1)Every purple notation token opens its conservative definition. Expanding the displayed statement recovers the exact first-order Peano-arithmetic formula checked by the unchanged kernel.
Definitions used by this theorem
In the theorem statement
8 occurrences
In local proof propositions
10 occurrences
Exact expanded native-PA statement
forall a b c l. (forall bpr_index_bpifpe_before. (exists bpr_gap_bpifpe_before_bound. bpr_gap_bpifpe_before_bound + S (bpr_index_bpifpe_before) = l) -> exists bpr_value_bpifpe_before. ((((exists bpr_height_bpifpe_before_decoded. bpr_height_bpifpe_before_decoded + S (bpr_value_bpifpe_before) = S ((S (bpr_index_bpifpe_before)) * c)) /\ exists bpr_quotient_bpifpe_before_decoded. b = bpr_quotient_bpifpe_before_decoded * S ((S (bpr_index_bpifpe_before)) * c) + (bpr_value_bpifpe_before))) /\ (((((~(S (a + bpr_index_bpifpe_before) = 1) /\ forall bpr_left_bpifpe_before_choice_prime bpr_right_bpifpe_before_choice_prime. S (a + bpr_index_bpifpe_before) = bpr_left_bpifpe_before_choice_prime * bpr_right_bpifpe_before_choice_prime -> bpr_left_bpifpe_before_choice_prime = 1 \/ bpr_right_bpifpe_before_choice_prime = 1)) /\ bpr_value_bpifpe_before = S (a + bpr_index_bpifpe_before)) \/ (~((~(S (a + bpr_index_bpifpe_before) = 1) /\ forall bpr_left_bpifpe_before_choice_prime bpr_right_bpifpe_before_choice_prime. S (a + bpr_index_bpifpe_before) = bpr_left_bpifpe_before_choice_prime * bpr_right_bpifpe_before_choice_prime -> bpr_left_bpifpe_before_choice_prime = 1 \/ bpr_right_bpifpe_before_choice_prime = 1)) /\ bpr_value_bpifpe_before = 1))))) -> exists d e. (forall bpr_index_bpifpe_after. (exists bpr_gap_bpifpe_after_bound. bpr_gap_bpifpe_after_bound + S (bpr_index_bpifpe_after) = S l) -> exists bpr_value_bpifpe_after. ((((exists bpr_height_bpifpe_after_decoded. bpr_height_bpifpe_after_decoded + S (bpr_value_bpifpe_after) = S ((S (bpr_index_bpifpe_after)) * e)) /\ exists bpr_quotient_bpifpe_after_decoded. d = bpr_quotient_bpifpe_after_decoded * S ((S (bpr_index_bpifpe_after)) * e) + (bpr_value_bpifpe_after))) /\ (((((~(S (a + bpr_index_bpifpe_after) = 1) /\ forall bpr_left_bpifpe_after_choice_prime bpr_right_bpifpe_after_choice_prime. S (a + bpr_index_bpifpe_after) = bpr_left_bpifpe_after_choice_prime * bpr_right_bpifpe_after_choice_prime -> bpr_left_bpifpe_after_choice_prime = 1 \/ bpr_right_bpifpe_after_choice_prime = 1)) /\ bpr_value_bpifpe_after = S (a + bpr_index_bpifpe_after)) \/ (~((~(S (a + bpr_index_bpifpe_after) = 1) /\ forall bpr_left_bpifpe_after_choice_prime bpr_right_bpifpe_after_choice_prime. S (a + bpr_index_bpifpe_after) = bpr_left_bpifpe_after_choice_prime * bpr_right_bpifpe_after_choice_prime -> bpr_left_bpifpe_after_choice_prime = 1 \/ bpr_right_bpifpe_after_choice_prime = 1)) /\ bpr_value_bpifpe_after = 1)))))Proof neighborhood
Direct theorem prerequisites
Direct theorem dependents
Definition-aware tactic body
Only local propositions introduced by have or suffices are compacted. Every changed line has an exact-AST conservative-expansion receipt; the kernel still receives the immutable original tactic script.
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 (3)
01Fix variables and assumptionsL1–5
02Establish hchoiceL6–7
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply primorial factor choice exists.
- L6
have hchoice : ∃ x. Prime(S (a + l)) ∧ x = S (a + l) ∨ ¬Prime(S (a + l)) ∧ x = 1Definitions: Prime(S (a + l))Original native command in the exact edition - L7
apply primorial_factor_choice_exists
03Separate the logical casesL8–8
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L8
cases hchoice
04Establish hextL9–10
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply beta prefix extend.
- L9
have hext : ∃ d. ∃ e. BetaAt(d,e,l,x) ∧ (∀ y. ∀ z. Lt(y,l) → BetaAt(b,c,y,z) → BetaAt(d,e,y,z))Definitions: BetaAt(d,e,l,x)Lt(y,l)BetaAt(b,c,y,z)BetaAt(d,e,y,z)Original native command in the exact edition - L10
apply beta_prefix_extend
05Separate the logical casesL11–13
06Construct an explicit witnessL14–15
07Fix variables and assumptionsL16–17
08Establish hsplitL18–20
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply finite lt succ eq or lt.
09Separate the logical casesL21–21
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L21
cases hsplit
10Calculate and transport equalitiesL22–28
11Construct an explicit witnessL29–29
Supply the displayed value, then prove that it has the required property.
- L29
exists x
12Separate the logical casesL30–30
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L30
split
13Use earlier factsL31–32
14Establish holdL33–35
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply hprefix.
- L33
have hold : ∃ p. BetaAt(b,c,i,p) ∧ (Prime(S (a + i)) ∧ p = S (a + i) ∨ ¬Prime(S (a + i)) ∧ p = 1)Definitions: BetaAt(b,c,i,p)Prime(S (a + i))Original native command in the exact edition - L34
apply hprefix - L35
exact hsplit_right
15Separate the logical casesL36–37
16Construct an explicit witnessL38–38
Supply the displayed value, then prove that it has the required property.
- L38
exists x3
17Separate the logical casesL39–39
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L39
split
Original defined command ledger · 43 lines
- 0001
intro a - 0002
intro b - 0003
intro c - 0004
intro l - 0005
intro hprefix - 0006
have hchoice : ∃ x. Prime(S (a + l)) ∧ x = S (a + l) ∨ ¬Prime(S (a + l)) ∧ x = 1Exact native replay line
have hchoice : exists x. (((((~(S (a + l) = 1) /\ forall bpr_left_bpifpe_last_choice_prime bpr_right_bpifpe_last_choice_prime. S (a + l) = bpr_left_bpifpe_last_choice_prime * bpr_right_bpifpe_last_choice_prime -> bpr_left_bpifpe_last_choice_prime = 1 \/ bpr_right_bpifpe_last_choice_prime = 1)) /\ x = S (a + l)) \/ (~((~(S (a + l) = 1) /\ forall bpr_left_bpifpe_last_choice_prime bpr_right_bpifpe_last_choice_prime. S (a + l) = bpr_left_bpifpe_last_choice_prime * bpr_right_bpifpe_last_choice_prime -> bpr_left_bpifpe_last_choice_prime = 1 \/ bpr_right_bpifpe_last_choice_prime = 1)) /\ x = 1))) - 0007
apply primorial_factor_choice_exists - 0008
cases hchoice - 0009
have hext : ∃ d. ∃ e. BetaAt(d,e,l,x) ∧ (∀ y. ∀ z. Lt(y,l) → BetaAt(b,c,y,z) → BetaAt(d,e,y,z))Exact native replay line
have hext : exists d e. ((((exists bpr_height_bpifpe_append. bpr_height_bpifpe_append + S (x) = S ((S (l)) * e)) /\ exists bpr_quotient_bpifpe_append. d = bpr_quotient_bpifpe_append * S ((S (l)) * e) + (x))) /\ forall i p. (exists bpr_gap_bpifpe_old_bound. bpr_gap_bpifpe_old_bound + S (i) = l) -> (((exists bpr_height_bpifpe_old. bpr_height_bpifpe_old + S (p) = S ((S (i)) * c)) /\ exists bpr_quotient_bpifpe_old. b = bpr_quotient_bpifpe_old * S ((S (i)) * c) + (p))) -> (((exists bpr_height_bpifpe_new. bpr_height_bpifpe_new + S (p) = S ((S (i)) * e)) /\ exists bpr_quotient_bpifpe_new. d = bpr_quotient_bpifpe_new * S ((S (i)) * e) + (p)))) - 0010
apply beta_prefix_extend - 0011
cases hext - 0012
cases hext_witness - 0013
cases hext_witness_witness - 0014
exists x1 - 0015
exists x2 - 0016
intro i - 0017
intro hi - 0018
have hsplit : i = l ∨ Lt(i,l)Exact native replay line
have hsplit : i = l \/ exists gap. gap + S i = l - 0019
apply finite_lt_succ_eq_or_lt - 0020
exact hi - 0021
cases hsplit - 0022
rewrite hsplit_left - 0023
rewrite hsplit_left - 0024
rewrite hsplit_left - 0025
rewrite hsplit_left - 0026
rewrite hsplit_left - 0027
rewrite hsplit_left - 0028
rewrite hsplit_left - 0029
exists x - 0030
split - 0031
exact hext_witness_witness_left - 0032
exact hchoice_witness - 0033
have hold : ∃ p. BetaAt(b,c,i,p) ∧ (Prime(S (a + i)) ∧ p = S (a + i) ∨ ¬Prime(S (a + i)) ∧ p = 1)Exact native replay line
have hold : exists p. ((((exists bpr_height_bpifpe_hold_decoded. bpr_height_bpifpe_hold_decoded + S (p) = S ((S (i)) * c)) /\ exists bpr_quotient_bpifpe_hold_decoded. b = bpr_quotient_bpifpe_hold_decoded * S ((S (i)) * c) + (p))) /\ (((((~(S (a + i) = 1) /\ forall bpr_left_bpifpe_hold_choice_prime bpr_right_bpifpe_hold_choice_prime. S (a + i) = bpr_left_bpifpe_hold_choice_prime * bpr_right_bpifpe_hold_choice_prime -> bpr_left_bpifpe_hold_choice_prime = 1 \/ bpr_right_bpifpe_hold_choice_prime = 1)) /\ p = S (a + i)) \/ (~((~(S (a + i) = 1) /\ forall bpr_left_bpifpe_hold_choice_prime bpr_right_bpifpe_hold_choice_prime. S (a + i) = bpr_left_bpifpe_hold_choice_prime * bpr_right_bpifpe_hold_choice_prime -> bpr_left_bpifpe_hold_choice_prime = 1 \/ bpr_right_bpifpe_hold_choice_prime = 1)) /\ p = 1)))) - 0034
apply hprefix - 0035
exact hsplit_right - 0036
cases hold - 0037
cases hold_witness - 0038
exists x3 - 0039
split - 0040
apply hext_witness_witness_right - 0041
exact hsplit_right - 0042
exact hold_witness_left - 0043
exact hold_witness_right