Exact expanded PA statement
(~(18 * 17 + 11 = 1) /\ forall bpr_left_bb8cert_prime_three_hundred_seventeen bpr_right_bb8cert_prime_three_hundred_seventeen. 18 * 17 + 11 = bpr_left_bb8cert_prime_three_hundred_seventeen * bpr_right_bb8cert_prime_three_hundred_seventeen -> bpr_left_bb8cert_prime_three_hundred_seventeen = 1 \/ bpr_right_bb8cert_prime_three_hundred_seventeen = 1)Structural proof guide
A native checked trial-division certificate for 317.
Direct prerequisites: add_eq_zero_right, le_not_lt, add_assoc, add_comm, scaled_remainder_lift, nonzero_remainder_not_multiple, prime_of_no_small_prime_divisor_below_square, le_trans, prime_le_twenty_two_cases, lt_not_le. The authored body proceeds by case analysis (7), intermediate claims (17), equality transport (9), closed numeral normalization (25).
Proof neighborhood
Direct dependencies
BT000L add_eq_zero_right BT001J le_not_lt BT0003 add_assoc BT0002 add_comm BT011C scaled_remainder_lift BT011B nonzero_remainder_not_multiple BT0119 prime_of_no_small_prime_divisor_below_square BT000F le_trans BT011A prime_le_twenty_two_cases BT001I lt_not_leDirect dependents
Formal native tactic body
Dependencies are hypotheses of this body receipt. The focused endpoint audits separately check the complete empty-context certificates.
- 0001
have hn0 : ~(18 * (17) + 11 = 0) - 0002
intro hzero - 0003
have htail_zero : 11 = 0 - 0004
specialize add_eq_zero_right (18 * (17)) - 0005
specialize add_eq_zero_right 11 - 0006
apply add_eq_zero_right - 0007
exact hzero - 0008
apply PA1 - 0009
exact htail_zero - 0010
have hn1 : ~(18 * (17) + 11 = 1) - 0011
intro hone - 0012
have htail_le_one : exists k. k + 11 = 1 - 0013
exists 18 * (17) - 0014
exact hone - 0015
have hone_lt_tail : exists k. k + S 1 = 11 - 0016
exists 9 - 0017
norm_num - 0018
specialize le_not_lt 11 - 0019
specialize le_not_lt 1 - 0020
apply le_not_lt - 0021
exact htail_le_one - 0022
exact hone_lt_tail - 0023
have hsquare : exists bpr_gap_bb8cert_prime_three_hundred_seventeen_square. bpr_gap_bb8cert_prime_three_hundred_seventeen_square + S (18 * (17) + 11) = S 17 * S 17 - 0024
exists 6 - 0025
trans 18 * 17 + 18 - 0026
rewrite <- PA4 - 0027
trans 18 * 17 + (6 + S 11) - 0028
trans (6 + 18 * 17) + S 11 - 0029
symm - 0030
apply add_assoc - 0031
trans (18 * 17 + 6) + S 11 - 0032
congr - 0033
apply add_comm - 0034
refl - 0035
apply add_assoc - 0036
congr - 0037
refl - 0038
norm_num - 0039
symm - 0040
apply PA6 - 0041
specialize prime_of_no_small_prime_divisor_below_square 17 - 0042
specialize prime_of_no_small_prime_divisor_below_square (18 * 17 + 11) - 0043
apply prime_of_no_small_prime_divisor_below_square - 0044
exact hn0 - 0045
exact hn1 - 0046
exact hsquare - 0047
intro p - 0048
intro hp - 0049
intro hp_bound - 0050
intro hdivides - 0051
have hbound_22 : exists k. k + 17 = 22 - 0052
exists 5 - 0053
norm_num - 0054
have hp_22 : exists k. k + p = 22 - 0055
specialize le_trans p - 0056
specialize le_trans 17 - 0057
specialize le_trans 22 - 0058
apply le_trans - 0059
exact hp_bound - 0060
exact hbound_22 - 0061
have hcases : p = 2 \/ (p = 3 \/ (p = 5 \/ (p = 7 \/ (p = 11 \/ (p = 13 \/ (p = 17 \/ (p = 19))))))) - 0062
specialize prime_le_twenty_two_cases p - 0063
apply prime_le_twenty_two_cases - 0064
exact hp - 0065
exact hp_22 - 0066
cases hcases - 0067
rewrite hcases_left at hdivides - 0068
have hdivision_2 : (18 * 17 + 11) = 2 * (18 * 8 + 14) + 1 - 0069
specialize scaled_remainder_lift 2 - 0070
specialize scaled_remainder_lift 17 - 0071
specialize scaled_remainder_lift 8 - 0072
specialize scaled_remainder_lift 1 - 0073
specialize scaled_remainder_lift 18 - 0074
specialize scaled_remainder_lift 11 - 0075
specialize scaled_remainder_lift 14 - 0076
specialize scaled_remainder_lift 1 - 0077
apply scaled_remainder_lift - 0078
norm_num - 0079
norm_num - 0080
specialize nonzero_remainder_not_multiple 2 - 0081
specialize nonzero_remainder_not_multiple (18 * 17 + 11) - 0082
specialize nonzero_remainder_not_multiple (18 * 8 + 14) - 0083
specialize nonzero_remainder_not_multiple 1 - 0084
apply nonzero_remainder_not_multiple - 0085
exact hdivision_2 - 0086
intro hrem_2_zero - 0087
apply PA1 - 0088
exact hrem_2_zero - 0089
exists 0 - 0090
norm_num - 0091
exact hdivides - 0092
cases hcases_right - 0093
rewrite hcases_right_left at hdivides - 0094
have hdivision_3 : (18 * 17 + 11) = 3 * (18 * 5 + 15) + 2 - 0095
specialize scaled_remainder_lift 3 - 0096
specialize scaled_remainder_lift 17 - 0097
specialize scaled_remainder_lift 5 - 0098
specialize scaled_remainder_lift 2 - 0099
specialize scaled_remainder_lift 18 - 0100
specialize scaled_remainder_lift 11 - 0101
specialize scaled_remainder_lift 15 - 0102
specialize scaled_remainder_lift 2 - 0103
apply scaled_remainder_lift - 0104
norm_num - 0105
norm_num - 0106
specialize nonzero_remainder_not_multiple 3 - 0107
specialize nonzero_remainder_not_multiple (18 * 17 + 11) - 0108
specialize nonzero_remainder_not_multiple (18 * 5 + 15) - 0109
specialize nonzero_remainder_not_multiple 2 - 0110
apply nonzero_remainder_not_multiple - 0111
exact hdivision_3 - 0112
intro hrem_3_zero - 0113
apply PA1 - 0114
exact hrem_3_zero - 0115
exists 0 - 0116
norm_num - 0117
exact hdivides - 0118
cases hcases_right_right - 0119
rewrite hcases_right_right_left at hdivides - 0120
have hdivision_5 : (18 * 17 + 11) = 5 * (18 * 3 + 9) + 2 - 0121
specialize scaled_remainder_lift 5 - 0122
specialize scaled_remainder_lift 17 - 0123
specialize scaled_remainder_lift 3 - 0124
specialize scaled_remainder_lift 2 - 0125
specialize scaled_remainder_lift 18 - 0126
specialize scaled_remainder_lift 11 - 0127
specialize scaled_remainder_lift 9 - 0128
specialize scaled_remainder_lift 2 - 0129
apply scaled_remainder_lift - 0130
norm_num - 0131
norm_num - 0132
specialize nonzero_remainder_not_multiple 5 - 0133
specialize nonzero_remainder_not_multiple (18 * 17 + 11) - 0134
specialize nonzero_remainder_not_multiple (18 * 3 + 9) - 0135
specialize nonzero_remainder_not_multiple 2 - 0136
apply nonzero_remainder_not_multiple - 0137
exact hdivision_5 - 0138
intro hrem_5_zero - 0139
apply PA1 - 0140
exact hrem_5_zero - 0141
exists 2 - 0142
norm_num - 0143
exact hdivides - 0144
cases hcases_right_right_right - 0145
rewrite hcases_right_right_right_left at hdivides - 0146
have hdivision_7 : (18 * 17 + 11) = 7 * (18 * 2 + 9) + 2 - 0147
specialize scaled_remainder_lift 7 - 0148
specialize scaled_remainder_lift 17 - 0149
specialize scaled_remainder_lift 2 - 0150
specialize scaled_remainder_lift 3 - 0151
specialize scaled_remainder_lift 18 - 0152
specialize scaled_remainder_lift 11 - 0153
specialize scaled_remainder_lift 9 - 0154
specialize scaled_remainder_lift 2 - 0155
apply scaled_remainder_lift - 0156
norm_num - 0157
norm_num - 0158
specialize nonzero_remainder_not_multiple 7 - 0159
specialize nonzero_remainder_not_multiple (18 * 17 + 11) - 0160
specialize nonzero_remainder_not_multiple (18 * 2 + 9) - 0161
specialize nonzero_remainder_not_multiple 2 - 0162
apply nonzero_remainder_not_multiple - 0163
exact hdivision_7 - 0164
intro hrem_7_zero - 0165
apply PA1 - 0166
exact hrem_7_zero - 0167
exists 4 - 0168
norm_num - 0169
exact hdivides - 0170
cases hcases_right_right_right_right - 0171
rewrite hcases_right_right_right_right_left at hdivides - 0172
have hdivision_11 : (18 * 17 + 11) = 11 * (18 * 1 + 10) + 9 - 0173
specialize scaled_remainder_lift 11 - 0174
specialize scaled_remainder_lift 17 - 0175
specialize scaled_remainder_lift 1 - 0176
specialize scaled_remainder_lift 6 - 0177
specialize scaled_remainder_lift 18 - 0178
specialize scaled_remainder_lift 11 - 0179
specialize scaled_remainder_lift 10 - 0180
specialize scaled_remainder_lift 9 - 0181
apply scaled_remainder_lift - 0182
norm_num - 0183
norm_num - 0184
specialize nonzero_remainder_not_multiple 11 - 0185
specialize nonzero_remainder_not_multiple (18 * 17 + 11) - 0186
specialize nonzero_remainder_not_multiple (18 * 1 + 10) - 0187
specialize nonzero_remainder_not_multiple 9 - 0188
apply nonzero_remainder_not_multiple - 0189
exact hdivision_11 - 0190
intro hrem_11_zero - 0191
apply PA1 - 0192
exact hrem_11_zero - 0193
exists 1 - 0194
norm_num - 0195
exact hdivides - 0196
cases hcases_right_right_right_right_right - 0197
rewrite hcases_right_right_right_right_right_left at hdivides - 0198
have hdivision_13 : (18 * 17 + 11) = 13 * (18 * 1 + 6) + 5 - 0199
specialize scaled_remainder_lift 13 - 0200
specialize scaled_remainder_lift 17 - 0201
specialize scaled_remainder_lift 1 - 0202
specialize scaled_remainder_lift 4 - 0203
specialize scaled_remainder_lift 18 - 0204
specialize scaled_remainder_lift 11 - 0205
specialize scaled_remainder_lift 6 - 0206
specialize scaled_remainder_lift 5 - 0207
apply scaled_remainder_lift - 0208
norm_num - 0209
norm_num - 0210
specialize nonzero_remainder_not_multiple 13 - 0211
specialize nonzero_remainder_not_multiple (18 * 17 + 11) - 0212
specialize nonzero_remainder_not_multiple (18 * 1 + 6) - 0213
specialize nonzero_remainder_not_multiple 5 - 0214
apply nonzero_remainder_not_multiple - 0215
exact hdivision_13 - 0216
intro hrem_13_zero - 0217
apply PA1 - 0218
exact hrem_13_zero - 0219
exists 7 - 0220
norm_num - 0221
exact hdivides - 0222
cases hcases_right_right_right_right_right_right - 0223
rewrite hcases_right_right_right_right_right_right_left at hdivides - 0224
have hdivision_17 : (18 * 17 + 11) = 17 * (18 * 1 + 0) + 11 - 0225
specialize scaled_remainder_lift 17 - 0226
specialize scaled_remainder_lift 17 - 0227
specialize scaled_remainder_lift 1 - 0228
specialize scaled_remainder_lift 0 - 0229
specialize scaled_remainder_lift 18 - 0230
specialize scaled_remainder_lift 11 - 0231
specialize scaled_remainder_lift 0 - 0232
specialize scaled_remainder_lift 11 - 0233
apply scaled_remainder_lift - 0234
norm_num - 0235
norm_num - 0236
specialize nonzero_remainder_not_multiple 17 - 0237
specialize nonzero_remainder_not_multiple (18 * 17 + 11) - 0238
specialize nonzero_remainder_not_multiple (18 * 1 + 0) - 0239
specialize nonzero_remainder_not_multiple 11 - 0240
apply nonzero_remainder_not_multiple - 0241
exact hdivision_17 - 0242
intro hrem_17_zero - 0243
apply PA1 - 0244
exact hrem_17_zero - 0245
exists 5 - 0246
norm_num - 0247
exact hdivides - 0248
have htoo_large_19 : exists k. k + S 17 = 19 - 0249
exists 1 - 0250
norm_num - 0251
specialize lt_not_le 17 - 0252
specialize lt_not_le 19 - 0253
apply lt_not_le - 0254
exact htoo_large_19 - 0255
rewrite hcases_right_right_right_right_right_right_right at hp_bound - 0256
exact hp_bound