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
∀ B. ∀ n. ¬n = 0 → ¬n = 1 → Lt(n,S B · S B) → ¬Prime(n) → ∃ x. Prime(x) ∧ (Le(x,B) ∧ Dvd(x,n))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
5 occurrences
In local proof propositions
9 occurrences
Exact expanded native-PA statement
forall B n. ~(n = 0) -> ~(n = 1) -> (exists bpr_gap_bb8npsp_square. bpr_gap_bb8npsp_square + S (n) = S B * S B) -> ~((~(n = 1) /\ forall bpr_left_bb8npsp_source bpr_right_bb8npsp_source. n = bpr_left_bb8npsp_source * bpr_right_bb8npsp_source -> bpr_left_bb8npsp_source = 1 \/ bpr_right_bb8npsp_source = 1)) -> (exists p. ((~(p = 1) /\ forall bpr_left_bb8npsp_prime bpr_right_bb8npsp_prime. p = bpr_left_bb8npsp_prime * bpr_right_bb8npsp_prime -> bpr_left_bb8npsp_prime = 1 \/ bpr_right_bb8npsp_prime = 1)) /\ ((exists bpr_le_gap_bb8npsp_bound. bpr_le_gap_bb8npsp_bound + (p) = (B)) /\ (exists bpr_quotient_bb8npsp_divides. n = (p) * bpr_quotient_bb8npsp_divides)))Proof neighborhood
Direct theorem prerequisites
BT003F prime_or_composite BT0117 factor_pair_has_small_member_below_square BT0004 mul_zero_left BT003L prime_divisor_exists BT002D divisor_le_nonzero BT000F le_trans BT002C multiple_trans BT0006 mul_commDirect 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 (8)
01Fix variables and assumptionsL1–6
02Use earlier factsL7–7
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L7
specialize prime_or_composite n
03Establish hkindL8–11
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime or composite.
04Separate the logical casesL12–13
05Use earlier factsL14–15
06Separate the logical casesL16–19
07Establish hsmallL20–27
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply factor pair has small member below square.
- L20
have hsmall : Le(x,B) ∨ Le(x1,B)Definitions: Le(x,B)Le(x1,B)Original native command in the exact edition - L21
specialize factor_pair_has_small_member_below_square B - L22
specialize factor_pair_has_small_member_below_square n - L23
specialize factor_pair_has_small_member_below_square x - L24
specialize factor_pair_has_small_member_below_square x1 - L25
apply factor_pair_has_small_member_below_square - L26
exact hkind_right_witness_witness_right - L27
exact hbound
08Separate the logical casesL28–28
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L28
cases hsmall
09Establish hx0L29–35
10Establish hpL36–40
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime divisor exists.
11Separate the logical casesL41–42
12Construct an explicit witnessL43–43
Supply the displayed value, then prove that it has the required property.
- L43
exists x2
13Separate the logical casesL44–44
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L44
split
14Use earlier factsL45–45
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L45
exact hp_witness_left
15Separate the logical casesL46–46
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L46
split
16Establish hpxL47–56
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply divisor le nonzero.
17Use earlier factsL57–62
18Construct an explicit witnessL63–63
Supply the displayed value, then prove that it has the required property.
- L63
exists x1
19Use earlier factsL64–65
20Establish hswapL66–69
21Establish hx10L70–76
22Establish hpL77–81
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime divisor exists.
23Separate the logical casesL82–83
24Construct an explicit witnessL84–84
Supply the displayed value, then prove that it has the required property.
- L84
exists x2
25Separate the logical casesL85–85
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L85
split
26Use earlier factsL86–86
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L86
exact hp_witness_left
27Separate the logical casesL87–87
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L87
split
28Establish hpxL88–97
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply divisor le nonzero.
29Use earlier factsL98–103
30Construct an explicit witnessL104–104
Supply the displayed value, then prove that it has the required property.
- L104
exists x
Original defined command ledger · 106 lines
- 0001
intro B - 0002
intro n - 0003
intro hn0 - 0004
intro hn1 - 0005
intro hbound - 0006
intro hnotprime - 0007
specialize prime_or_composite n - 0008
have hkind : Prime(n) ∨ (∃ x. ∃ y. ¬x = 1 ∧ ¬y = 1 ∧ n = x · y)Exact native replay line
have hkind : ((~(n = 1) /\ forall a b. n = a * b -> a = 1 \/ b = 1) \/ exists c d. ((~(c = 1) /\ ~(d = 1)) /\ n = c * d)) - 0009
apply prime_or_composite - 0010
exact hn0 - 0011
exact hn1 - 0012
cases hkind - 0013
exfalso - 0014
apply hnotprime - 0015
exact hkind_left - 0016
cases hkind_right - 0017
cases hkind_right_witness - 0018
cases hkind_right_witness_witness - 0019
cases hkind_right_witness_witness_left - 0020
have hsmall : Le(x,B) ∨ Le(x1,B)Exact native replay line
have hsmall : (exists k. k + x = B) \/ (exists k. k + x1 = B) - 0021
specialize factor_pair_has_small_member_below_square B - 0022
specialize factor_pair_has_small_member_below_square n - 0023
specialize factor_pair_has_small_member_below_square x - 0024
specialize factor_pair_has_small_member_below_square x1 - 0025
apply factor_pair_has_small_member_below_square - 0026
exact hkind_right_witness_witness_right - 0027
exact hbound - 0028
cases hsmall - 0029
have hx0 : ~(x = 0) - 0030
intro hx0_source - 0031
apply hn0 - 0032
trans x * x1 - 0033
exact hkind_right_witness_witness_right - 0034
rewrite hx0_source - 0035
apply mul_zero_left - 0036
have hp : ∃ p. Prime(p) ∧ Dvd(p,x)Exact native replay line
have hp : exists p. ((~(p = 1) /\ forall a b. p = a * b -> a = 1 \/ b = 1) /\ exists q. x = p * q) - 0037
specialize prime_divisor_exists x - 0038
apply prime_divisor_exists - 0039
exact hx0 - 0040
exact hkind_right_witness_witness_left_left - 0041
cases hp - 0042
cases hp_witness - 0043
exists x2 - 0044
split - 0045
exact hp_witness_left - 0046
split - 0047
have hpx : Le(x2,x)Exact native replay line
have hpx : exists k. k + x2 = x - 0048
specialize divisor_le_nonzero x2 - 0049
specialize divisor_le_nonzero x - 0050
apply divisor_le_nonzero - 0051
exact hx0 - 0052
exact hp_witness_right - 0053
specialize le_trans x2 - 0054
specialize le_trans x - 0055
specialize le_trans B - 0056
apply le_trans - 0057
exact hpx - 0058
exact hsmall_left - 0059
specialize multiple_trans x - 0060
specialize multiple_trans x2 - 0061
specialize multiple_trans n - 0062
apply multiple_trans - 0063
exists x1 - 0064
exact hkind_right_witness_witness_right - 0065
exact hp_witness_right - 0066
have hswap : n = x1 * x - 0067
trans x * x1 - 0068
exact hkind_right_witness_witness_right - 0069
apply mul_comm - 0070
have hx10 : ~(x1 = 0) - 0071
intro hx10_source - 0072
apply hn0 - 0073
trans x1 * x - 0074
exact hswap - 0075
rewrite hx10_source - 0076
apply mul_zero_left - 0077
have hp : ∃ p. Prime(p) ∧ Dvd(p,x1)Exact native replay line
have hp : exists p. ((~(p = 1) /\ forall a b. p = a * b -> a = 1 \/ b = 1) /\ exists q. x1 = p * q) - 0078
specialize prime_divisor_exists x1 - 0079
apply prime_divisor_exists - 0080
exact hx10 - 0081
exact hkind_right_witness_witness_left_right - 0082
cases hp - 0083
cases hp_witness - 0084
exists x2 - 0085
split - 0086
exact hp_witness_left - 0087
split - 0088
have hpx : Le(x2,x1)Exact native replay line
have hpx : exists k. k + x2 = x1 - 0089
specialize divisor_le_nonzero x2 - 0090
specialize divisor_le_nonzero x1 - 0091
apply divisor_le_nonzero - 0092
exact hx10 - 0093
exact hp_witness_right - 0094
specialize le_trans x2 - 0095
specialize le_trans x1 - 0096
specialize le_trans B - 0097
apply le_trans - 0098
exact hpx - 0099
exact hsmall_right - 0100
specialize multiple_trans x1 - 0101
specialize multiple_trans x2 - 0102
specialize multiple_trans n - 0103
apply multiple_trans - 0104
exists x - 0105
exact hswap - 0106
exact hp_witness_right