BT011J · Bertrand theorem

prime_forty_three

Alpha v34 checked-use theorem · independently kernel and Lean verified; not Stable

A native checked trial-division certificate for 43.

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

Prime(43)

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

1 occurrences

In local proof propositions

8 occurrences

Exact expanded native-PA statement
(~(43 = 1) /\ forall bpr_left_bb8cert_prime_forty_three bpr_right_bb8cert_prime_forty_three. 43 = bpr_left_bb8cert_prime_forty_three * bpr_right_bb8cert_prime_forty_three -> bpr_left_bb8cert_prime_forty_three = 1 \/ bpr_right_bb8cert_prime_forty_three = 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

128 script commands · 73 reading checkpoints · 11 local claims

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.

Definition notation is shown below. Open the paired exact edition for the original native formulas. Source pairing is not a new equivalence certificate.

Named ingredients (5)
01Establish hn0L1–4

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply PA1.

  1. L1
    have hn0 : ~(43 = 0)
  2. L2
    intro hzero
  3. L3
    apply PA1
  4. L4
    exact hzero
02Establish hn1L5–9

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply PA1.

  1. L5
    have hn1 : ~(43 = 1)
  2. L6
    intro hone
  3. L7
    apply PA1
  4. L8
    apply PA2
  5. L9
    exact hone
03Establish hsquareL10–10

Establish this local claim before using it. It is not an additional assumption.

  1. L10
    have hsquare : Lt(43,7 · 7)Definitions: Lt(43,7 · 7)Original native command in the exact edition
04Construct an explicit witnessL11–11

Supply the displayed value, then prove that it has the required property.

  1. L11
    exists 5
05Calculate and transport equalitiesL12–12

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L12
    norm_num
06Use earlier factsL13–18

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L13
    specialize prime_of_no_small_prime_divisor_below_square 6
  2. L14
    specialize prime_of_no_small_prime_divisor_below_square (43)
  3. L15
    apply prime_of_no_small_prime_divisor_below_square
  4. L16
    exact hn0
  5. L17
    exact hn1
  6. L18
    exact hsquare
07Fix variables and assumptionsL19–22

Work with arbitrary variables or the premises of the current implication.

  1. L19
    intro p
  2. L20
    intro hp
  3. L21
    intro hp_bound
  4. L22
    intro hdivides
08Establish hbound_22L23–23

Establish this local claim before using it. It is not an additional assumption.

  1. L23
    have hbound_22 : Lt(5,22)Definitions: Lt(5,22)Original native command in the exact edition
09Construct an explicit witnessL24–24

Supply the displayed value, then prove that it has the required property.

  1. L24
    exists 16
10Calculate and transport equalitiesL25–25

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L25
    norm_num
11Establish hp_22L26–32

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply le trans.

  1. L26
  2. L27
    specialize le_trans p
  3. L28
    specialize le_trans 6
  4. L29
    specialize le_trans 22
  5. L30
    apply le_trans
  6. L31
    exact hp_bound
  7. L32
    exact hbound_22
12Establish hcasesL33–37

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply prime le twenty two cases.

  1. L33
    have hcases : p = 2 \/ (p = 3 \/ (p = 5 \/ (p = 7 \/ (p = 11 \/ (p = 13 \/ (p = 17 \/ (p = 19)))))))
  2. L34
    specialize prime_le_twenty_two_cases p
  3. L35
    apply prime_le_twenty_two_cases
  4. L36
    exact hp
  5. L37
    exact hp_22
13Separate the logical casesL38–38

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L38
    cases hcases
14Calculate and transport equalitiesL39–39

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L39
    rewrite hcases_left at hdivides
15Use earlier factsL40–44

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L40
    specialize nonzero_remainder_not_multiple 2
  2. L41
    specialize nonzero_remainder_not_multiple (43)
  3. L42
    specialize nonzero_remainder_not_multiple 21
  4. L43
    specialize nonzero_remainder_not_multiple 1
  5. L44
    apply nonzero_remainder_not_multiple
16Calculate and transport equalitiesL45–45

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L45
    norm_num
17Fix variables and assumptionsL46–46

Work with arbitrary variables or the premises of the current implication.

  1. L46
    intro hrem_2_zero
18Use earlier factsL47–48

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L47
    apply PA1
  2. L48
    exact hrem_2_zero
19Construct an explicit witnessL49–49

Supply the displayed value, then prove that it has the required property.

  1. L49
    exists 0
20Calculate and transport equalitiesL50–50

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L50
    norm_num
21Use earlier factsL51–51

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L51
    exact hdivides
22Separate the logical casesL52–52

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L52
    cases hcases_right
23Calculate and transport equalitiesL53–53

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L53
    rewrite hcases_right_left at hdivides
24Use earlier factsL54–58

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L54
    specialize nonzero_remainder_not_multiple 3
  2. L55
    specialize nonzero_remainder_not_multiple (43)
  3. L56
    specialize nonzero_remainder_not_multiple 14
  4. L57
    specialize nonzero_remainder_not_multiple 1
  5. L58
    apply nonzero_remainder_not_multiple
25Calculate and transport equalitiesL59–59

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L59
    norm_num
26Fix variables and assumptionsL60–60

Work with arbitrary variables or the premises of the current implication.

  1. L60
    intro hrem_3_zero
27Use earlier factsL61–62

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L61
    apply PA1
  2. L62
    exact hrem_3_zero
28Construct an explicit witnessL63–63

Supply the displayed value, then prove that it has the required property.

  1. L63
    exists 1
29Calculate and transport equalitiesL64–64

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L64
    norm_num
30Use earlier factsL65–65

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L65
    exact hdivides
31Separate the logical casesL66–66

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L66
    cases hcases_right_right
32Calculate and transport equalitiesL67–67

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L67
    rewrite hcases_right_right_left at hdivides
33Use earlier factsL68–72

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L68
    specialize nonzero_remainder_not_multiple 5
  2. L69
    specialize nonzero_remainder_not_multiple (43)
  3. L70
    specialize nonzero_remainder_not_multiple 8
  4. L71
    specialize nonzero_remainder_not_multiple 3
  5. L72
    apply nonzero_remainder_not_multiple
34Calculate and transport equalitiesL73–73

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L73
    norm_num
35Fix variables and assumptionsL74–74

Work with arbitrary variables or the premises of the current implication.

  1. L74
    intro hrem_5_zero
36Use earlier factsL75–76

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L75
    apply PA1
  2. L76
    exact hrem_5_zero
37Construct an explicit witnessL77–77

Supply the displayed value, then prove that it has the required property.

  1. L77
    exists 1
38Calculate and transport equalitiesL78–78

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L78
    norm_num
39Use earlier factsL79–79

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L79
    exact hdivides
40Separate the logical casesL80–80

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L80
    cases hcases_right_right_right
41Establish htoo_large_7L81–81

Establish this local claim before using it. It is not an additional assumption.

  1. L81
    have htoo_large_7 : Lt(6,7)Definitions: Lt(6,7)Original native command in the exact edition
42Construct an explicit witnessL82–82

Supply the displayed value, then prove that it has the required property.

  1. L82
    exists 0
43Calculate and transport equalitiesL83–83

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L83
    norm_num
44Use earlier factsL84–87

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L84
    specialize lt_not_le 6
  2. L85
    specialize lt_not_le 7
  3. L86
    apply lt_not_le
  4. L87
    exact htoo_large_7
45Calculate and transport equalitiesL88–88

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L88
    rewrite hcases_right_right_right_left at hp_bound
46Use earlier factsL89–89

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L89
    exact hp_bound
47Separate the logical casesL90–90

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L90
    cases hcases_right_right_right_right
48Establish htoo_large_11L91–91

Establish this local claim before using it. It is not an additional assumption.

  1. L91
    have htoo_large_11 : Lt(6,11)Definitions: Lt(6,11)Original native command in the exact edition
49Construct an explicit witnessL92–92

Supply the displayed value, then prove that it has the required property.

  1. L92
    exists 4
50Calculate and transport equalitiesL93–93

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L93
    norm_num
51Use earlier factsL94–97

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L94
    specialize lt_not_le 6
  2. L95
    specialize lt_not_le 11
  3. L96
    apply lt_not_le
  4. L97
    exact htoo_large_11
52Calculate and transport equalitiesL98–98

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L98
    rewrite hcases_right_right_right_right_left at hp_bound
53Use earlier factsL99–99

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L99
    exact hp_bound
54Separate the logical casesL100–100

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L100
    cases hcases_right_right_right_right_right
55Establish htoo_large_13L101–101

Establish this local claim before using it. It is not an additional assumption.

  1. L101
    have htoo_large_13 : Lt(6,13)Definitions: Lt(6,13)Original native command in the exact edition
56Construct an explicit witnessL102–102

Supply the displayed value, then prove that it has the required property.

  1. L102
    exists 6
57Calculate and transport equalitiesL103–103

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L103
    norm_num
58Use earlier factsL104–107

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L104
    specialize lt_not_le 6
  2. L105
    specialize lt_not_le 13
  3. L106
    apply lt_not_le
  4. L107
    exact htoo_large_13
59Calculate and transport equalitiesL108–108

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L108
    rewrite hcases_right_right_right_right_right_left at hp_bound
60Use earlier factsL109–109

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L109
    exact hp_bound
61Separate the logical casesL110–110

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L110
    cases hcases_right_right_right_right_right_right
62Establish htoo_large_17L111–111

Establish this local claim before using it. It is not an additional assumption.

  1. L111
    have htoo_large_17 : Lt(6,17)Definitions: Lt(6,17)Original native command in the exact edition
63Construct an explicit witnessL112–112

Supply the displayed value, then prove that it has the required property.

  1. L112
    exists 10
64Calculate and transport equalitiesL113–113

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L113
    norm_num
65Use earlier factsL114–117

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L114
    specialize lt_not_le 6
  2. L115
    specialize lt_not_le 17
  3. L116
    apply lt_not_le
  4. L117
    exact htoo_large_17
66Calculate and transport equalitiesL118–118

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L118
    rewrite hcases_right_right_right_right_right_right_left at hp_bound
67Use earlier factsL119–119

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L119
    exact hp_bound
68Establish htoo_large_19L120–120

Establish this local claim before using it. It is not an additional assumption.

  1. L120
    have htoo_large_19 : Lt(6,19)Definitions: Lt(6,19)Original native command in the exact edition
69Construct an explicit witnessL121–121

Supply the displayed value, then prove that it has the required property.

  1. L121
    exists 12
70Calculate and transport equalitiesL122–122

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L122
    norm_num
71Use earlier factsL123–126

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L123
    specialize lt_not_le 6
  2. L124
    specialize lt_not_le 19
  3. L125
    apply lt_not_le
  4. L126
    exact htoo_large_19
72Calculate and transport equalitiesL127–127

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L127
    rewrite hcases_right_right_right_right_right_right_right at hp_bound
73Use earlier factsL128–128

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L128
    exact hp_bound

Library-wide reading audit

Original defined command ledger · 128 lines
  1. 0001have hn0 : ~(43 = 0)
  2. 0002intro hzero
  3. 0003apply PA1
  4. 0004exact hzero
  5. 0005have hn1 : ~(43 = 1)
  6. 0006intro hone
  7. 0007apply PA1
  8. 0008apply PA2
  9. 0009exact hone
  10. 0010have hsquare : Lt(43,7 · 7)
    Exact native replay linehave hsquare : exists bpr_gap_bb8cert_prime_forty_three_square. bpr_gap_bb8cert_prime_forty_three_square + S (43) = S 6 * S 6
  11. 0011exists 5
  12. 0012norm_num
  13. 0013specialize prime_of_no_small_prime_divisor_below_square 6
  14. 0014specialize prime_of_no_small_prime_divisor_below_square (43)
  15. 0015apply prime_of_no_small_prime_divisor_below_square
  16. 0016exact hn0
  17. 0017exact hn1
  18. 0018exact hsquare
  19. 0019intro p
  20. 0020intro hp
  21. 0021intro hp_bound
  22. 0022intro hdivides
  23. 0023have hbound_22 : Lt(5,22)
    Exact native replay linehave hbound_22 : exists k. k + 6 = 22
  24. 0024exists 16
  25. 0025norm_num
  26. 0026have hp_22 : Le(p,22)
    Exact native replay linehave hp_22 : exists k. k + p = 22
  27. 0027specialize le_trans p
  28. 0028specialize le_trans 6
  29. 0029specialize le_trans 22
  30. 0030apply le_trans
  31. 0031exact hp_bound
  32. 0032exact hbound_22
  33. 0033have hcases : p = 2 \/ (p = 3 \/ (p = 5 \/ (p = 7 \/ (p = 11 \/ (p = 13 \/ (p = 17 \/ (p = 19)))))))
  34. 0034specialize prime_le_twenty_two_cases p
  35. 0035apply prime_le_twenty_two_cases
  36. 0036exact hp
  37. 0037exact hp_22
  38. 0038cases hcases
  39. 0039rewrite hcases_left at hdivides
  40. 0040specialize nonzero_remainder_not_multiple 2
  41. 0041specialize nonzero_remainder_not_multiple (43)
  42. 0042specialize nonzero_remainder_not_multiple 21
  43. 0043specialize nonzero_remainder_not_multiple 1
  44. 0044apply nonzero_remainder_not_multiple
  45. 0045norm_num
  46. 0046intro hrem_2_zero
  47. 0047apply PA1
  48. 0048exact hrem_2_zero
  49. 0049exists 0
  50. 0050norm_num
  51. 0051exact hdivides
  52. 0052cases hcases_right
  53. 0053rewrite hcases_right_left at hdivides
  54. 0054specialize nonzero_remainder_not_multiple 3
  55. 0055specialize nonzero_remainder_not_multiple (43)
  56. 0056specialize nonzero_remainder_not_multiple 14
  57. 0057specialize nonzero_remainder_not_multiple 1
  58. 0058apply nonzero_remainder_not_multiple
  59. 0059norm_num
  60. 0060intro hrem_3_zero
  61. 0061apply PA1
  62. 0062exact hrem_3_zero
  63. 0063exists 1
  64. 0064norm_num
  65. 0065exact hdivides
  66. 0066cases hcases_right_right
  67. 0067rewrite hcases_right_right_left at hdivides
  68. 0068specialize nonzero_remainder_not_multiple 5
  69. 0069specialize nonzero_remainder_not_multiple (43)
  70. 0070specialize nonzero_remainder_not_multiple 8
  71. 0071specialize nonzero_remainder_not_multiple 3
  72. 0072apply nonzero_remainder_not_multiple
  73. 0073norm_num
  74. 0074intro hrem_5_zero
  75. 0075apply PA1
  76. 0076exact hrem_5_zero
  77. 0077exists 1
  78. 0078norm_num
  79. 0079exact hdivides
  80. 0080cases hcases_right_right_right
  81. 0081have htoo_large_7 : Lt(6,7)
    Exact native replay linehave htoo_large_7 : exists k. k + S 6 = 7
  82. 0082exists 0
  83. 0083norm_num
  84. 0084specialize lt_not_le 6
  85. 0085specialize lt_not_le 7
  86. 0086apply lt_not_le
  87. 0087exact htoo_large_7
  88. 0088rewrite hcases_right_right_right_left at hp_bound
  89. 0089exact hp_bound
  90. 0090cases hcases_right_right_right_right
  91. 0091have htoo_large_11 : Lt(6,11)
    Exact native replay linehave htoo_large_11 : exists k. k + S 6 = 11
  92. 0092exists 4
  93. 0093norm_num
  94. 0094specialize lt_not_le 6
  95. 0095specialize lt_not_le 11
  96. 0096apply lt_not_le
  97. 0097exact htoo_large_11
  98. 0098rewrite hcases_right_right_right_right_left at hp_bound
  99. 0099exact hp_bound
  100. 0100cases hcases_right_right_right_right_right
  101. 0101have htoo_large_13 : Lt(6,13)
    Exact native replay linehave htoo_large_13 : exists k. k + S 6 = 13
  102. 0102exists 6
  103. 0103norm_num
  104. 0104specialize lt_not_le 6
  105. 0105specialize lt_not_le 13
  106. 0106apply lt_not_le
  107. 0107exact htoo_large_13
  108. 0108rewrite hcases_right_right_right_right_right_left at hp_bound
  109. 0109exact hp_bound
  110. 0110cases hcases_right_right_right_right_right_right
  111. 0111have htoo_large_17 : Lt(6,17)
    Exact native replay linehave htoo_large_17 : exists k. k + S 6 = 17
  112. 0112exists 10
  113. 0113norm_num
  114. 0114specialize lt_not_le 6
  115. 0115specialize lt_not_le 17
  116. 0116apply lt_not_le
  117. 0117exact htoo_large_17
  118. 0118rewrite hcases_right_right_right_right_right_right_left at hp_bound
  119. 0119exact hp_bound
  120. 0120have htoo_large_19 : Lt(6,19)
    Exact native replay linehave htoo_large_19 : exists k. k + S 6 = 19
  121. 0121exists 12
  122. 0122norm_num
  123. 0123specialize lt_not_le 6
  124. 0124specialize lt_not_le 19
  125. 0125apply lt_not_le
  126. 0126exact htoo_large_19
  127. 0127rewrite hcases_right_right_right_right_right_right_right at hp_bound
  128. 0128exact hp_bound