/- 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. -/ module public import FormalConjecturesUtil /-! # Erdős Problem 937 *Reference:* [erdosproblems.com/937](https://www.erdosproblems.com/937) *References:* * [BBC24] Bajpai, P., Bennett, M. A. and Chan, T. H., _Arithmetic progressions in squarefull / powerful numbers_, Int. J. Number Theory 20 (2024), 19-45. -/ @[expose] public section namespace Erdos937 open Nat /-- The four numbers $a, a+d, a+2d, a+3d$ form a four-term arithmetic progression ($d > 0$) of pairwise coprime powerful numbers. -/ def IsCoprimePowerfulAP4 (a d : ℕ) : Prop := 0 < d ∧ a.Powerful ∧ (a + d).Powerful ∧ (a + 2 * d).Powerful ∧ (a + 3 * d).Powerful ∧ a.Coprime (a + d) ∧ a.Coprime (a + 2 * d) ∧ a.Coprime (a + 3 * d) ∧ (a + d).Coprime (a + 2 * d) ∧ (a + d).Coprime (a + 3 * d) ∧ (a + 2 * d).Coprime (a + 3 * d) set_option linter.style.formal_proof_palomar false in /-- Are there infinitely many four-term arithmetic progressions of coprime powerful numbers? (A number $n$ is *powerful* if $p \mid n \to p^2 \mid n$; `Nat.Powerful`.) Erdős [Er76d] asked this; the answer is **yes**: Bajpai, Bennett and Chan [BBC24] proved that there are infinitely many four-term arithmetic progressions of pairwise coprime powerful numbers. (Without coprimality this is easy, and by a theorem of Fermat there are no four *squares* in arithmetic progression.) -/ @[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/dfe2d78128b493c572cf525b1b8edf4897fb7664/src/latest/ErdosProblems/Erdos937.lean#L1031"] theorem erdos_937 : {p : ℕ × ℕ | IsCoprimePowerfulAP4 p.1 p.2}.Infinite := by sorry /-- Sanity check for `IsCoprimePowerfulAP4`: the progression $0, 1, 2, 3$ is not a valid example, since $2$ is not powerful. -/ @[category test, AMS 11] theorem not_isCoprimePowerfulAP4_zero_one : ¬ IsCoprimePowerfulAP4 0 1 := by intro h obtain ⟨-, -, -, h2, -⟩ := h exact Nat.not_full_of_prime_mod_prime_sq 2 1 Nat.prime_two (by norm_num) h2 end Erdos937