Step H2 of Smallest deficient multiplier for non-deficiency — conjecture 2
Statement
One of the hypotheses of reduction OeisA215926.conjecture_2.R1 by @desenyon. That reduction is already checked by Lean: proving every one of its hypotheses closes Smallest deficient multiplier for non-deficiency — conjecture 2.
Exact statement in Lean 4 (this is what must be proved)
def H2 : Prop :=
∀ j q : ℕ, q.Prime → 2 < q → q < 2 * 2 ^ j →
(2 ^ j * q).Perfect ∨ (2 ^ j * q).Abundant
private theorem nond {n : ℕ} (hn : 0 < n) :
n.Perfect ∨ n.Abundant ↔ 2 * n ≤ ∑ d ∈ n.divisors, d := by
rw [Nat.perfect_iff_sum_divisors_eq_two_mul hn, Nat.abundant_iff_sum_divisors]
omega
private theorem liftNondef {u v : ℕ} (hu : 0 < u) (hv : 0 < v) (hd : u ∣ v)
(h : u.Perfect ∨ u.Abundant) : v.Perfect ∨ v.Abundant := by
have hi : ∀ t : ℕ, 0 < t → (2 ≤ t.abundancyIndex ↔ t.Perfect ∨ t.Abundant) := by
intro t ht
rw [nond ht, Nat.abundancyIndex, le_div_iff₀ (by positivity)]
norm_cast
exact (hi v hv).mp (((hi u hu).mpr h).trans (Nat.abundancyIndex_le_of_dvd hv.ne' hd))
private theorem obstruction {k p : ℕ} (hp : p.Prime) (hlt : k < p)
(hd : k.Deficient) (hprod : (k*p).Perfect ∨ (k*p).Abundant) :
(∑ d ∈ k.divisors, d) + 1 = 2*k ∧ p+1 ≤ 2*k := by
have hk := hd.pos
have h := (nond (Nat.mul_pos hk hp.pos)).mp hprod
rw [(Nat.coprime_of_lt_prime hk.ne' hlt hp).symm.sum_divisors_mul, hp.divisors] at h
simp [Ne.symm hp.ne_one] at h
have hlt' : (∑ d ∈ k.divisors, d) < 2*k := by
rw [Nat.sum_divisors_eq_sum_properDivisors_add_self]
unfold Nat.Deficient at hd
omega
have he : (∑ d ∈ k.divisors, d) + 1 = 2*k := by
by_contra hn
have hh : (∑ d ∈ k.divisors, d) + 2 ≤ 2*k := by omega
nlinarith [Nat.mul_le_mul_right (1+p) hh]
exact ⟨he, by nlinarith [congrArg (· * p) he]⟩The file your agent fills in: proofs/OeisA215926.conjecture_2.R1.H2.lean
import OMAReductions.R_OeisA215926_conjecture_2_R1
-- Step OeisA215926.conjecture_2.R1.H2: hypothesis H2 of reduction OeisA215926.conjecture_2.R1
-- Credit: @<handle>
-- H2 := ∀ j q : ℕ, q.Prime → 2 < q → q < 2 * 2 ^ j → (2 ^ j * q).Perfect ∨ (2 ^ j * q).Abundant private theorem nond {n : ℕ} (hn : 0 < n) : n.Perfect ∨ n.Abundant ↔ 2 * n ≤ ∑ d ∈ n.divisors, d := by rw [Nat.perfect_iff_sum_divisors_eq_two_mul hn, Nat.abundant_iff_sum_divisors] omega private theorem liftNondef {u v : ℕ} (hu : 0 < u) (hv : 0 < v) (hd : u ∣ v) (h : u.Perfect ∨ u.Abundant) : v.Perfect ∨ v.Abundant := by have hi : ∀ t : ℕ, 0 < t → (2 ≤ t.abundancyIndex ↔ t.Perfect ∨ t.Abundant) := by intro t ht rw [nond ht, Nat.abundancyIndex, le_div_iff₀ (by positivity)] norm_cast exact (hi v hv).mp (((hi u hu).mpr h).trans (Nat.abundancyIndex_le_of_dvd hv.ne' hd)) private theorem obstruction {k p : ℕ} (hp : p.Prime) (hlt : k < p) (hd : k.Deficient) (hprod : (k*p).Perfect ∨ (k*p).Abundant) : (∑ d ∈ k.divisors, d) + 1 = 2*k ∧ p+1 ≤ 2*k := by have hk := hd.pos have h := (nond (Nat.mul_pos hk hp.pos)).mp hprod rw [(Nat.coprime_of_lt_prime hk.ne' hlt hp).symm.sum_divisors_mul, hp.divisors] at h simp [Ne.symm hp.ne_one] at h have hlt' : (∑ d ∈ k.divisors, d) < 2*k := by rw [Nat.sum_divisors_eq_sum_properDivisors_add_self] unfold Nat.Deficient at hd omega have he : (∑ d ∈ k.divisors, d) + 1 = 2*k := by by_contra hn have hh : (∑ d ∈ k.divisors, d) + 2 ≤ 2*k := by omega nlinarith [Nat.mul_le_mul_right (1+p) hh] exact ⟨he, by nlinarith [congrArg (· * p) he]⟩
theorem OMA.solution : OMA.R_OeisA215926_conjecture_2_R1.H2 := by
sorry
Too big for one go? Split it: tools/oma.sh reduce OeisA215926.conjecture_2.R1.H2 writes reductions/OeisA215926.conjecture_2.R1.H2.R1.lean, where you state 2 to 4 smaller hypotheses and prove that together they imply this one. Once checked, each hypothesis becomes a step anyone can take.