/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
import FormalConjecturesUtilErdős Problem 275
[CrVE70] R.B. Crittenden and C.L. Vanden Eynden,
open Set
namespace Erdos275
If a finite system of $r$ congruences ${ a_i\pmod{n_i} : 1\leq i\leq r}$ (the $n_i$ are not necessarily distinct) covers $2^r$ consecutive integers then it covers all integers.
This is best possible as the system $2^{i-1}\pmod{2^i}$ shows. This was proved independently by Selfridge and Crittenden and Vanden Eynden [CrVE70].
This was formalized in Lean by Alexeev using Aristotle.
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos275.lean"]
theorem erdos_275 (r : ℕ) (a : Fin r → ℤ) (n : Fin r → ℕ)
(H : ∃ k : ℤ, ∀ x ∈ Ico k (k + 2 ^ r), ∃ i, x ≡ a i [ZMOD n i]) (x : ℤ) :
∃ i, x ≡ a i [ZMOD n i] := r:ℕa:Fin r → ℤn:Fin r → ℕH:∃ k, ∀ x ∈ Ico k (k + 2 ^ r), ∃ i, x ≡ a i [ZMOD ↑(n i)]x:ℤ⊢ ∃ i, x ≡ a i [ZMOD ↑(n i)]
All goals completed! 🐙
end Erdos275