Lean / janjarosz05/0kwas / Erdos1094K35.lean
Lean readerKwas/Erdos1094K35.lean
Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports Kwas.Erdos1094Split, which it does not have: you can read it there, but it will not check. Build the project itself to check it.
import Kwas.Erdos1094Split/-! Erdős Problem 1094: no exception with `k = 35` (kernel check in 4 parts). -/namespace Erdos1093theorem part35_0_0 : chkM ps 1 [(2, 5), (3, 3), (5, 2), (7, 1), (11, 1), (13, 1), (17, 1), (19, 1), (23, 1)] 35 [] = true := by decide +kerneltheorem part35_0_1 : chkM ps 29 [(2, 5), (3, 3), (5, 2), (7, 1), (11, 1), (13, 1), (17, 1), (19, 1), (23, 1)] 35 [] = true := by decide +kerneltheorem part35_1_0 : chkM ps 31 [(2, 5), (3, 3), (5, 2), (7, 1), (11, 1), (13, 1), (17, 1), (19, 1), (23, 1)] 35 [] = true := by decide +kerneltheorem part35_1_1 : chkM ps 899 [(2, 5), (3, 3), (5, 2), (7, 1), (11, 1), (13, 1), (17, 1), (19, 1), (23, 1)] 35 [] = true := by decide +kerneltheorem chk35 : chk ps [(31, 1), (29, 1), (2, 5), (3, 3), (5, 2), (7, 1), (11, 1), (13, 1), (17, 1), (19, 1), (23, 1)] 35 [] = true := byrw [← chkM_one]rw [chkM_cons, List.all_eq_true]intro j0 hj0rw [List.mem_range] at hj0interval_cases j0· rw [chkM_cons, List.all_eq_true]intro j1 hj1rw [List.mem_range] at hj1interval_cases j1· exact part35_0_0· exact part35_0_1· rw [chkM_cons, List.all_eq_true]intro j1 hj1rw [List.mem_range] at hj1interval_cases j1· exact part35_1_0· exact part35_1_1theorem exc_k35 {n : ℕ} (he : (n, 35) ∈ Exc) : n ∈ ([] : List ℕ) :=mem_known_of_chk (ps := ps) (l := [(31, 1), (29, 1), (2, 5), (3, 3), (5, 2), (7, 1), (11, 1), (13, 1), (17, 1), (19, 1), (23, 1)]) ps_prime (by decide +kernel) (by decide +kernel) chk35 heend Erdos1093