BT011H · Bertrand theorem

prime_thirteen

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

A native checked trial-division certificate for 13.

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(13)

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

9 occurrences

Exact expanded native-PA statement
(~(13 = 1) /\ forall bpr_left_bb8cert_prime_thirteen bpr_right_bb8cert_prime_thirteen. 13 = bpr_left_bb8cert_prime_thirteen * bpr_right_bb8cert_prime_thirteen -> bpr_left_bb8cert_prime_thirteen = 1 \/ bpr_right_bb8cert_prime_thirteen = 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

124 script commands · 71 reading checkpoints · 12 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 : ~(13 = 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 : ~(13 = 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(13,4 · 4)Definitions: Lt(13,4 · 4)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 2
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 3
  2. L14
    specialize prime_of_no_small_prime_divisor_below_square (13)
  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(2,22)Definitions: Lt(2,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 19
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 3
  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 (13)
  3. L42
    specialize nonzero_remainder_not_multiple 6
  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 (13)
  3. L56
    specialize nonzero_remainder_not_multiple 4
  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
32Establish htoo_large_5L67–67

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

  1. L67
    have htoo_large_5 : Lt(3,5)Definitions: Lt(3,5)Original native command in the exact edition
33Construct an explicit witnessL68–68

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

  1. L68
    exists 1
34Calculate and transport equalitiesL69–69

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

  1. L69
    norm_num
35Use earlier factsL70–73

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

  1. L70
    specialize lt_not_le 3
  2. L71
    specialize lt_not_le 5
  3. L72
    apply lt_not_le
  4. L73
    exact htoo_large_5
36Calculate and transport equalitiesL74–74

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

  1. L74
    rewrite hcases_right_right_left at hp_bound
37Use earlier factsL75–75

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

  1. L75
    exact hp_bound
38Separate the logical casesL76–76

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

  1. L76
    cases hcases_right_right_right
39Establish htoo_large_7L77–77

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

  1. L77
    have htoo_large_7 : Lt(3,7)Definitions: Lt(3,7)Original native command in the exact edition
40Construct an explicit witnessL78–78

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

  1. L78
    exists 3
41Calculate and transport equalitiesL79–79

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

  1. L79
    norm_num
42Use earlier factsL80–83

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

  1. L80
    specialize lt_not_le 3
  2. L81
    specialize lt_not_le 7
  3. L82
    apply lt_not_le
  4. L83
    exact htoo_large_7
43Calculate and transport equalitiesL84–84

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

  1. L84
    rewrite hcases_right_right_right_left at hp_bound
44Use earlier factsL85–85

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

  1. L85
    exact hp_bound
45Separate the logical casesL86–86

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

  1. L86
    cases hcases_right_right_right_right
46Establish htoo_large_11L87–87

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

  1. L87
    have htoo_large_11 : Lt(3,11)Definitions: Lt(3,11)Original native command in the exact edition
47Construct an explicit witnessL88–88

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

  1. L88
    exists 7
48Calculate and transport equalitiesL89–89

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

  1. L89
    norm_num
49Use earlier factsL90–93

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

  1. L90
    specialize lt_not_le 3
  2. L91
    specialize lt_not_le 11
  3. L92
    apply lt_not_le
  4. L93
    exact htoo_large_11
50Calculate and transport equalitiesL94–94

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

  1. L94
    rewrite hcases_right_right_right_right_left at hp_bound
51Use earlier factsL95–95

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

  1. L95
    exact hp_bound
52Separate the logical casesL96–96

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

  1. L96
    cases hcases_right_right_right_right_right
53Establish htoo_large_13L97–97

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

  1. L97
    have htoo_large_13 : Lt(3,13)Definitions: Lt(3,13)Original native command in the exact edition
54Construct an explicit witnessL98–98

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

  1. L98
    exists 9
55Calculate and transport equalitiesL99–99

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

  1. L99
    norm_num
56Use earlier factsL100–103

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

  1. L100
    specialize lt_not_le 3
  2. L101
    specialize lt_not_le 13
  3. L102
    apply lt_not_le
  4. L103
    exact htoo_large_13
57Calculate and transport equalitiesL104–104

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

  1. L104
    rewrite hcases_right_right_right_right_right_left at hp_bound
58Use earlier factsL105–105

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

  1. L105
    exact hp_bound
59Separate the logical casesL106–106

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

  1. L106
    cases hcases_right_right_right_right_right_right
60Establish htoo_large_17L107–107

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

  1. L107
    have htoo_large_17 : Lt(3,17)Definitions: Lt(3,17)Original native command in the exact edition
61Construct an explicit witnessL108–108

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

  1. L108
    exists 13
62Calculate and transport equalitiesL109–109

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

  1. L109
    norm_num
63Use earlier factsL110–113

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

  1. L110
    specialize lt_not_le 3
  2. L111
    specialize lt_not_le 17
  3. L112
    apply lt_not_le
  4. L113
    exact htoo_large_17
64Calculate and transport equalitiesL114–114

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

  1. L114
    rewrite hcases_right_right_right_right_right_right_left at hp_bound
65Use earlier factsL115–115

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

  1. L115
    exact hp_bound
66Establish htoo_large_19L116–116

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

  1. L116
    have htoo_large_19 : Lt(3,19)Definitions: Lt(3,19)Original native command in the exact edition
67Construct an explicit witnessL117–117

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

  1. L117
    exists 15
68Calculate and transport equalitiesL118–118

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

  1. L118
    norm_num
69Use earlier factsL119–122

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

  1. L119
    specialize lt_not_le 3
  2. L120
    specialize lt_not_le 19
  3. L121
    apply lt_not_le
  4. L122
    exact htoo_large_19
70Calculate and transport equalitiesL123–123

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

  1. L123
    rewrite hcases_right_right_right_right_right_right_right at hp_bound
71Use earlier factsL124–124

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

  1. L124
    exact hp_bound

Library-wide reading audit

Original defined command ledger · 124 lines
  1. 0001have hn0 : ~(13 = 0)
  2. 0002intro hzero
  3. 0003apply PA1
  4. 0004exact hzero
  5. 0005have hn1 : ~(13 = 1)
  6. 0006intro hone
  7. 0007apply PA1
  8. 0008apply PA2
  9. 0009exact hone
  10. 0010have hsquare : Lt(13,4 · 4)
    Exact native replay linehave hsquare : exists bpr_gap_bb8cert_prime_thirteen_square. bpr_gap_bb8cert_prime_thirteen_square + S (13) = S 3 * S 3
  11. 0011exists 2
  12. 0012norm_num
  13. 0013specialize prime_of_no_small_prime_divisor_below_square 3
  14. 0014specialize prime_of_no_small_prime_divisor_below_square (13)
  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(2,22)
    Exact native replay linehave hbound_22 : exists k. k + 3 = 22
  24. 0024exists 19
  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 3
  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 (13)
  42. 0042specialize nonzero_remainder_not_multiple 6
  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 (13)
  56. 0056specialize nonzero_remainder_not_multiple 4
  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. 0067have htoo_large_5 : Lt(3,5)
    Exact native replay linehave htoo_large_5 : exists k. k + S 3 = 5
  68. 0068exists 1
  69. 0069norm_num
  70. 0070specialize lt_not_le 3
  71. 0071specialize lt_not_le 5
  72. 0072apply lt_not_le
  73. 0073exact htoo_large_5
  74. 0074rewrite hcases_right_right_left at hp_bound
  75. 0075exact hp_bound
  76. 0076cases hcases_right_right_right
  77. 0077have htoo_large_7 : Lt(3,7)
    Exact native replay linehave htoo_large_7 : exists k. k + S 3 = 7
  78. 0078exists 3
  79. 0079norm_num
  80. 0080specialize lt_not_le 3
  81. 0081specialize lt_not_le 7
  82. 0082apply lt_not_le
  83. 0083exact htoo_large_7
  84. 0084rewrite hcases_right_right_right_left at hp_bound
  85. 0085exact hp_bound
  86. 0086cases hcases_right_right_right_right
  87. 0087have htoo_large_11 : Lt(3,11)
    Exact native replay linehave htoo_large_11 : exists k. k + S 3 = 11
  88. 0088exists 7
  89. 0089norm_num
  90. 0090specialize lt_not_le 3
  91. 0091specialize lt_not_le 11
  92. 0092apply lt_not_le
  93. 0093exact htoo_large_11
  94. 0094rewrite hcases_right_right_right_right_left at hp_bound
  95. 0095exact hp_bound
  96. 0096cases hcases_right_right_right_right_right
  97. 0097have htoo_large_13 : Lt(3,13)
    Exact native replay linehave htoo_large_13 : exists k. k + S 3 = 13
  98. 0098exists 9
  99. 0099norm_num
  100. 0100specialize lt_not_le 3
  101. 0101specialize lt_not_le 13
  102. 0102apply lt_not_le
  103. 0103exact htoo_large_13
  104. 0104rewrite hcases_right_right_right_right_right_left at hp_bound
  105. 0105exact hp_bound
  106. 0106cases hcases_right_right_right_right_right_right
  107. 0107have htoo_large_17 : Lt(3,17)
    Exact native replay linehave htoo_large_17 : exists k. k + S 3 = 17
  108. 0108exists 13
  109. 0109norm_num
  110. 0110specialize lt_not_le 3
  111. 0111specialize lt_not_le 17
  112. 0112apply lt_not_le
  113. 0113exact htoo_large_17
  114. 0114rewrite hcases_right_right_right_right_right_right_left at hp_bound
  115. 0115exact hp_bound
  116. 0116have htoo_large_19 : Lt(3,19)
    Exact native replay linehave htoo_large_19 : exists k. k + S 3 = 19
  117. 0117exists 15
  118. 0118norm_num
  119. 0119specialize lt_not_le 3
  120. 0120specialize lt_not_le 19
  121. 0121apply lt_not_le
  122. 0122exact htoo_large_19
  123. 0123rewrite hcases_right_right_right_right_right_right_right at hp_bound
  124. 0124exact hp_bound