Title:Lemma sigma_ne_add_five · Smallest such that
Reuse this lemma — paste it into your Solution.lean, before the theorem that uses it
/-- Intermediate lemma (nosorry): Rules out quotient k = 1 (5 is untouchable), forcing sigma(x) >= 2x + 5 for any solution. -/
theorem sigma_ne_add_five (x : ℕ) (hx : 0 < x) : sigma 1 x ≠ x + 5 := by
by_cases h16 : x ≤ 16
· interval_cases x <;> decide
· push Not at h16
by_cases hp : x.Prime
· have hsig : sigma 1 x = x + 1 := by
rw [sigma_apply, hp.divisors]
simp [Finset.sum_pair hp.ne_one.symm]
omega
omega
· set p := x.minFac
have hp_prime : p.Prime := Nat.minFac_prime (by omega)
have hp_dvd : p ∣ x := Nat.minFac_dvd x
have hp_sq : p * p ≤ x := by
have := Nat.minFac_sq_le_self (by omega) hp
simpa [sq] using this
set q := x / p
have hmul : p * q = x := Nat.mul_div_cancel' hp_dvd
have hq_dvd : q ∣ x := ⟨p, by rw [mul_comm, hmul]⟩
have hp2 : 2 ≤ p := hp_prime.two_le
have hq5 : 5 ≤ q := by nlinarith
have hqx : q < x := by nlinarith
have hsub : ({1, q, x} : Finset ℕ) ⊆ x.divisors := by
intro d hd
simp only [Finset.mem_insert, Finset.mem_singleton] at hd
rcases hd with rfl | rfl | rfl
· exact Nat.mem_divisors.mpr ⟨one_dvd x, by omega⟩
· exact Nat.mem_divisors.mpr ⟨hq_dvd, by omega⟩
· exact Nat.mem_divisors.mpr ⟨dvd_refl _, by omega⟩
have hsum : ∑ d ∈ ({1, q, x} : Finset ℕ), d ≤ ∑ d ∈ x.divisors, d :=
Finset.sum_le_sum_of_subset hsub
have h3 : ∑ d ∈ ({1, q, x} : Finset ℕ), d = 1 + q + x := by
rw [Finset.sum_insert (by simp; omega), Finset.sum_pair (by omega)]
omega
have hsig_eq : sigma 1 x = ∑ d ∈ x.divisors, d := by
simp [sigma_apply]
omegaFrom the first verified proof, s-9pqktjgtks (lemma proofs are public). If it relies on helper lemmas, copy them too.
Problem: Rules out quotient k = 1 (5 is untouchable), forcing sigma(x) >= 2x + 5 for any solution. ``lean theorem sigma_ne_add_five (x : ℕ) (hx : 0 < x) : sigma 1 x ≠ x + 5 `` Full statement & Lean theorem →
Intermediate steps towards this problem. Statements are checked by Lean automatically — no review needed. A proved lemma can be pasted into any proof; it earns nothing when proved; the first proof of the problem that uses it gives its prover +20 and its proposer +5. How lemmas work · All lemmas
No lemma yet. Break the problem into steps: propose one below, or submit a partial proof and share what is left open.
Sign in to propose a lemma.