/-
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 FormalConjecturesUtilDescartes Numbers
A Descartes number (or spoof odd perfect integer) is an odd integer $n = m \cdot w$ where $w$ is
composite (Nat.Composite), $\gcd(m, w) = 1$, and $\sigma_1(m)(w + 1) = 2 m w$, so treating $w$ as
a prime factor would yield $\sigma_1(n) = 2n$. René Descartes (1638) found
$$D = 3^2 \cdot 7^2 \cdot 11^2 \cdot 13^2 \cdot 22021 = 198{,}585{,}576{,}189,$$
with composite spoof factor $22021 = 19^2 \cdot 61$; no further example is known [KW91]. Banks,
Güloğlu, Nevans, and Saidak [BGNS08] proved that $D$ is the unique cube-free Descartes integer with
fewer than seven distinct prime divisors and that every cube-free Descartes integer coprime to $3$
has over $10^6$ distinct prime divisors; Tóth [To21] showed that any other Descartes factorization
$n = m \cdot w \ne D$ satisfies $m > 10^{12}$.
References:
[KW91] V. Klee and S. Wagon (1991), Dolciani Math. Expositions 11, Math. Assoc. America.
[BGNS08] W. D. Banks, A. M. Güloğlu, C. W. Nevans, and F. Saidak (2008), CRM Proc. Lecture Notes 46, Amer. Math. Soc., 167–173.
[To21] L. Tóth (2021), Comput. Methods Sci. Technol. 27, no. 1, 25–31.
@[expose] public sectionnamespace DescartesNumberopen scoped ArithmeticFunction.sigmaDescartes's 1638 example $3^2 \cdot 7^2 \cdot 11^2 \cdot 13^2 \cdot 22021 = 198{,}585{,}576{,}189$.
def descartesExample : ℕ := 198585576189
(m, w) is a Descartes factorization if $w$ is composite (Nat.Composite), $m \cdot w$ is odd,
$\gcd(m, w) = 1$, and $\sigma_1(m)(w + 1) = 2 m w$ (which together force $m > 1$).
def IsDescartesFactorization (m w : ℕ) : Prop :=
w.Composite ∧ Odd (m * w) ∧ Nat.Coprime m w ∧ σ 1 m * (w + 1) = 2 * m * w
IsDescartesNumber n holds when $n = m \cdot w$ for some IsDescartesFactorization m w.
def IsDescartesNumber (n : ℕ) : Prop :=
∃ m w : ℕ, n = m * w ∧ IsDescartesFactorization m wEvery Descartes number is odd and strictly greater than $1$.
m:ℕw:ℕhw1:1 < wright✝¹:¬Nat.Prime whodd:Odd (m * w)right✝:m.Coprime w ∧ (σ 1) m * (w + 1) = 2 * m * whm0:0 < m⊢ Odd (m * w) ∧ 1 < m * w
exact ⟨hodd, by m:ℕw:ℕhw1:1 < wright✝¹:¬Nat.Prime whodd:Odd (m * w)right✝:m.Coprime w ∧ (σ 1) m * (w + 1) = 2 * m * whm0:0 < m⊢ 1 < m * w nlinarith All goals completed! 🐙⟩
For any odd integer $m$ satisfying $\sigma_1(m) = 2m - 1$ (almost perfect, cf.
AlmostPerfectNumbers) such that $2m - 1$ is composite, the product $m(2m - 1)$ satisfies
IsDescartesNumber.
@[category API, AMS 11]
theorem isDescartesNumber_of_odd_almostPerfect {m : ℕ} (hodd : Odd m)
(hap : σ 1 m = 2 * m - 1) (hcomp : (2 * m - 1).Composite) :
IsDescartesNumber (m * (2 * m - 1)) := by m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Composite⊢ IsDescartesNumber (m * (2 * m - 1))
have hm1 : 1 < m := by have := hcomp.1 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositethis:1 < 2 * m - 1⊢ 1 < m m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ IsDescartesNumber (m * (2 * m - 1)); omega m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ IsDescartesNumber (m * (2 * m - 1)) m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ IsDescartesNumber (m * (2 * m - 1))
refine ⟨m, 2 * m - 1, rfl, hcomp, ?_, ?_, ?_⟩ refine_1 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ Odd (m * (2 * m - 1))refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ m.Coprime (2 * m - 1)refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ (σ 1) m * (2 * m - 1 + 1) = 2 * m * (2 * m - 1)
· refine_1 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ Odd (m * (2 * m - 1)) refine hodd.mul ?_ refine_1 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ Odd (2 * m - 1)
rcases hodd with ⟨k, rfl⟩ refine_1 k:ℕhap:(σ 1) (2 * k + 1) = 2 * (2 * k + 1) - 1hcomp:(2 * (2 * k + 1) - 1).Compositehm1:1 < 2 * k + 1⊢ Odd (2 * (2 * k + 1) - 1)
exact ⟨2 * k, by k:ℕhap:(σ 1) (2 * k + 1) = 2 * (2 * k + 1) - 1hcomp:(2 * (2 * k + 1) - 1).Compositehm1:1 < 2 * k + 1⊢ 2 * (2 * k + 1) - 1 = 2 * (2 * k) + 1 omega All goals completed! 🐙⟩
· refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ m.Coprime (2 * m - 1) have hcop : Nat.Coprime m (2 * m - 1) := by m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Composite⊢ IsDescartesNumber (m * (2 * m - 1)) refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)
have h1 : (2 * m - 1) + 1 = 2 * m := by m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Composite⊢ IsDescartesNumber (m * (2 * m - 1)) m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * m⊢ m.Coprime (2 * m - 1)refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1) omega m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * m⊢ m.Coprime (2 * m - 1)refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1) m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * m⊢ m.Coprime (2 * m - 1)refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)
rw [Nat.coprime_iff_gcd_eq_one m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * m⊢ m.gcd (2 * m - 1) = 1 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * m⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)] m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * m⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)
have hdvd1 : Nat.gcd m (2 * m - 1) ∣ 2 * m :=
(Nat.gcd_dvd_left m (2 * m - 1)).trans ⟨2, by m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * m⊢ 2 * m = m * 2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * mhdvd1:m.gcd (2 * m - 1) ∣ 2 * m⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1) ring All goals completed! 🐙 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * mhdvd1:m.gcd (2 * m - 1) ∣ 2 * m⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)⟩ m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * mhdvd1:m.gcd (2 * m - 1) ∣ 2 * m⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)
have hdvd2 : Nat.gcd m (2 * m - 1) ∣ 2 * m - 1 := Nat.gcd_dvd_right m (2 * m - 1) m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * mhdvd1:m.gcd (2 * m - 1) ∣ 2 * mhdvd2:m.gcd (2 * m - 1) ∣ 2 * m - 1⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)
have hdvd_diff : Nat.gcd m (2 * m - 1) ∣ 2 * m - (2 * m - 1) := Nat.dvd_sub hdvd1 hdvd2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * mhdvd1:m.gcd (2 * m - 1) ∣ 2 * mhdvd2:m.gcd (2 * m - 1) ∣ 2 * m - 1hdvd_diff:m.gcd (2 * m - 1) ∣ 2 * m - (2 * m - 1)⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)
rwa [show 2 * m - (2 * m - 1) = 1 by m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Composite⊢ IsDescartesNumber (m * (2 * m - 1))refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1) omega All goals completed! 🐙refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1), Nat.dvd_one m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * mhdvd1:m.gcd (2 * m - 1) ∣ 2 * mhdvd2:m.gcd (2 * m - 1) ∣ 2 * m - 1hdvd_diff:m.gcd (2 * m - 1) = 1⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)] m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mh1:2 * m - 1 + 1 = 2 * mhdvd1:m.gcd (2 * m - 1) ∣ 2 * mhdvd2:m.gcd (2 * m - 1) ∣ 2 * m - 1hdvd_diff:m.gcd (2 * m - 1) = 1⊢ m.gcd (2 * m - 1) = 1refine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1) at hdvd_diffrefine_2 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mhcop:m.Coprime (2 * m - 1)⊢ m.Coprime (2 * m - 1)
exact hcop All goals completed! 🐙
· refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ (σ 1) m * (2 * m - 1 + 1) = 2 * m * (2 * m - 1) rw [hap refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ (2 * m - 1) * (2 * m - 1 + 1) = 2 * m * (2 * m - 1) refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ (2 * m - 1) * (2 * m - 1 + 1) = 2 * m * (2 * m - 1)]refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < m⊢ (2 * m - 1) * (2 * m - 1 + 1) = 2 * m * (2 * m - 1)
have : 2 * m - 1 + 1 = 2 * m := by m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Composite⊢ IsDescartesNumber (m * (2 * m - 1)) refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mthis:2 * m - 1 + 1 = 2 * m⊢ (2 * m - 1) * (2 * m - 1 + 1) = 2 * m * (2 * m - 1) omegarefine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mthis:2 * m - 1 + 1 = 2 * m⊢ (2 * m - 1) * (2 * m - 1 + 1) = 2 * m * (2 * m - 1)refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mthis:2 * m - 1 + 1 = 2 * m⊢ (2 * m - 1) * (2 * m - 1 + 1) = 2 * m * (2 * m - 1)
rw [this refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mthis:2 * m - 1 + 1 = 2 * m⊢ (2 * m - 1) * (2 * m) = 2 * m * (2 * m - 1) refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mthis:2 * m - 1 + 1 = 2 * m⊢ (2 * m - 1) * (2 * m) = 2 * m * (2 * m - 1)]refine_3 m:ℕhodd:Odd mhap:(σ 1) m = 2 * m - 1hcomp:(2 * m - 1).Compositehm1:1 < mthis:2 * m - 1 + 1 = 2 * m⊢ (2 * m - 1) * (2 * m) = 2 * m * (2 * m - 1)
ring All goals completed! 🐙
Descartes's classical integer descartesExample satisfies IsDescartesNumber.
@[category test, AMS 11]
theorem isDescartesNumber_descartesExample : IsDescartesNumber descartesExample := by ⊢ IsDescartesNumber descartesExample
refine ⟨3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2, 22021, by ⊢ descartesExample = 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 22021 norm_num [descartesExample] All goals completed! 🐙,
⟨by ⊢ 1 < 22021 norm_num All goals completed! 🐙, ?_⟩, ⟨99292788094, by ⊢ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 22021 = 2 * 99292788094 + 1 norm_num All goals completed! 🐙⟩, by ⊢ (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2).Coprime 22021 norm_num All goals completed! 🐙, ?_⟩
· refine_1 ⊢ ¬Nat.Prime 22021 intro hp refine_1 hp:Nat.Prime 22021⊢ False
rcases hp.eq_one_or_self_of_dvd 361 ⟨61, by hp:Nat.Prime 22021⊢ 22021 = 361 * 61 norm_num All goals completed! 🐙⟩ with h | h <;> refine_1.inl hp:Nat.Prime 22021h:361 = 1⊢ Falserefine_1.inr hp:Nat.Prime 22021h:361 = 22021⊢ False omega All goals completed! 🐙
· refine_2 ⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 have hmul := ArithmeticFunction.isMultiplicative_sigma (k := 1) refine_2 hmul:(σ 1).IsMultiplicative⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
have hs1 : σ 1 (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) =
σ 1 (3 ^ 2) * (σ 1 (7 ^ 2) * (σ 1 (11 ^ 2) * σ 1 (13 ^ 2))) := by ⊢ IsDescartesNumber descartesExample refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
rw [hmul.map_mul_of_coprime (by hmul:(σ 1).IsMultiplicative⊢ (3 ^ 2).gcd (7 ^ 2 * (11 ^ 2 * 13 ^ 2)) = 1 refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 norm_num All goals completed! 🐙refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021), hmul.map_mul_of_coprime (by hmul:(σ 1).IsMultiplicative⊢ (7 ^ 2).gcd (11 ^ 2 * 13 ^ 2) = 1refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 norm_num All goals completed! 🐙refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021),
hmul.map_mul_of_coprime (by hmul:(σ 1).IsMultiplicative⊢ (11 ^ 2).gcd (13 ^ 2) = 1refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 norm_num All goals completed! 🐙refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021)]refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
have h3 : σ 1 (3 ^ 2) = 13 := by ⊢ IsDescartesNumber descartesExample refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
rw [ArithmeticFunction.sigma_apply_prime_pow (by hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ Nat.Prime 3 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ ∑ j ∈ Finset.range (2 + 1), 3 ^ (j * 1) = 13refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 norm_num All goals completed! 🐙 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ ∑ j ∈ Finset.range (2 + 1), 3 ^ (j * 1) = 13refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 : Nat.Prime 3)] hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))⊢ ∑ j ∈ Finset.range (2 + 1), 3 ^ (j * 1) = 13refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021; norm_numrefine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
have h7 : σ 1 (7 ^ 2) = 57 := by ⊢ IsDescartesNumber descartesExample refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
rw [ArithmeticFunction.sigma_apply_prime_pow (by hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ Nat.Prime 7 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ ∑ j ∈ Finset.range (2 + 1), 7 ^ (j * 1) = 57refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 norm_num All goals completed! 🐙 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13⊢ ∑ j ∈ Finset.range (2 + 1),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 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
have h11 : σ 1 (11 ^ 2) = 133 := by ⊢ IsDescartesNumber descartesExample refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
rw [ArithmeticFunction.sigma_apply_prime_pow (by hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57⊢ Nat.Prime 11 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57⊢ ∑ j ∈ Finset.range (2 + 1), 11 ^ (j * 1) = 133refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 norm_num All goals completed! 🐙 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57⊢ ∑ j ∈ Finset.range (2 + 1), 11 ^ (j * 1) = 133refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 : Nat.Prime 11)] hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2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 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
have h13 : σ 1 (13 ^ 2) = 183 := by ⊢ IsDescartesNumber descartesExample refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
rw [ArithmeticFunction.sigma_apply_prime_pow (by hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133⊢ Nat.Prime 13 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133⊢ ∑ j ∈ Finset.range (2 + 1), 13 ^ (j * 1) = 183refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 norm_num All goals completed! 🐙 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133⊢ ∑ j ∈ Finset.range (2 + 1), 13 ^ (j * 1) = 183refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021 : Nat.Prime 13)] hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133⊢ ∑ j ∈ Finset.range (2 + 1), 13 ^ (j * 1) = 183refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021; norm_numrefine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ (σ 1) (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * (22021 + 1) = 2 * (3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2) * 22021
rw [show 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 = 3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2)) by ⊢ IsDescartesNumber descartesExample refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021 norm_num All goals completed! 🐙refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021,
hs1, refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2))) * (22021 + 1) =
2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021 h3, refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2))) * (22021 + 1) =
2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021 h7, refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2))) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021 h11, refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * (σ 1) (13 ^ 2))) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021 h13 refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021]refine_2 hmul:(σ 1).IsMultiplicativehs1:(σ 1) (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) = (σ 1) (3 ^ 2) * ((σ 1) (7 ^ 2) * ((σ 1) (11 ^ 2) * (σ 1) (13 ^ 2)))h3:(σ 1) (3 ^ 2) = 13h7:(σ 1) (7 ^ 2) = 57h11:(σ 1) (11 ^ 2) = 133h13:(σ 1) (13 ^ 2) = 183⊢ 13 * (57 * (133 * 183)) * (22021 + 1) = 2 * (3 ^ 2 * (7 ^ 2 * (11 ^ 2 * 13 ^ 2))) * 22021
norm_num All goals completed! 🐙
descartesExample is cube-free (Powerfree 3 descartesExample).
@[category test, AMS 11]
theorem powerfree_three_descartesExample : Powerfree 3 descartesExample := by ⊢ Powerfree 3 descartesExample
intro x hx x:ℕhx:x ^ 3 ∣ descartesExample⊢ IsUnit x
rw [Nat.isUnit_iff x:ℕhx:x ^ 3 ∣ descartesExample⊢ x = 1 x:ℕhx:x ^ 3 ∣ descartesExample⊢ x = 1] x:ℕhx:x ^ 3 ∣ descartesExample⊢ x = 1
by_contra hx1 x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1⊢ False
obtain ⟨q, hqp, hqdvd⟩ := Nat.exists_prime_and_dvd hx1 x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1q:ℕhqp:Nat.Prime qhqdvd:q ∣ x⊢ False
have hq3 : q ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61 :=
(pow_dvd_pow_of_dvd hqdvd 3).trans (by x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1q:ℕhqp:Nat.Prime qhqdvd:q ∣ x⊢ x ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61 x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1q:ℕhqp:Nat.Prime qhqdvd:q ∣ xhq3:q ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61⊢ False simpa [descartesExample] using hx All goals completed! 🐙 x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1q:ℕhqp:Nat.Prime qhqdvd:q ∣ xhq3:q ^ 3 ∣ 3 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2⊢ ¬19 ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61 norm_num All goals completed! 🐙)
rcases (by x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1q:ℕhqp:Nat.Prime qhqdvd:q ∣ xhq3:q ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61hp_abs:∀ {p : ℕ}, Nat.Prime p → q ∣ p ^ 2 → ¬p ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61 → Falseh61:q ∣ 61⊢ Nat.Prime 61 norm_num All goals completed! 🐙 : Nat.Prime 61).eq_one_or_self_of_dvd q h61 with rfl | rfl
· inr.inl x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1hqp:Nat.Prime 1hqdvd:1 ∣ xhq3:1 ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61hp_abs:∀ {p : ℕ}, Nat.Prime p → 1 ∣ p ^ 2 → ¬p ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61 → Falseh61:1 ∣ 61⊢ False exact hqp.ne_one rfl All goals completed! 🐙
· inr.inr x:ℕhx:x ^ 3 ∣ descartesExamplehx1:¬x = 1hqp:Nat.Prime 61hqdvd:61 ∣ xhq3:61 ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61hp_abs:∀ {p : ℕ}, Nat.Prime p → 61 ∣ p ^ 2 → ¬p ^ 3 ∣ 3 ^ 2 * 7 ^ 2 * 11 ^ 2 * 13 ^ 2 * 19 ^ 2 * 61 → Falseh61:61 ∣ 61⊢ False norm_num at hq3 All goals completed! 🐙Banks–Güloğlu–Nevans–Saidak Theorem [BGNS08]: every cube-free Descartes integer not divisible by $3$ has strictly more than $10^6$ distinct prime factors.
@[category research solved, AMS 11]
theorem descartes_cubeFree_not_dvd_three_primeFactors_gt_million (n : ℕ)
(hd : IsDescartesNumber n) (hcf : Powerfree 3 n) (h3 : ¬ 3 ∣ n) :
10 ^ 6 < n.primeFactors.card := by n:ℕhd:IsDescartesNumber nhcf:Powerfree 3 nh3:¬3 ∣ n⊢ 10 ^ 6 < n.primeFactors.card
sorry All goals completed! 🐙Tóth's Lower Bound on Spoof Factorizations [To21]: every Descartes factorization $m \cdot w \ne 198{,}585{,}576{,}189$ satisfies $m > 10^{12}$.
@[category research solved, AMS 11]
theorem descartes_non_example_factor_gt_ten_pow_twelve (m w : ℕ)
(hf : IsDescartesFactorization m w) (hne : m * w ≠ descartesExample) :
10 ^ 12 < m := by m:ℕw:ℕhf:IsDescartesFactorization m whne:m * w ≠ descartesExample⊢ 10 ^ 12 < m
sorry All goals completed! 🐙Banks–Güloğlu–Nevans–Saidak Uniqueness Theorem [BGNS08] (see also [To21, §1]): $198{,}585{,}576{,}189$ is the unique cube-free Descartes integer with fewer than seven distinct prime divisors.
@[category research solved, AMS 11]
theorem descartes_cubeFree_lt_seven_primeFactors_unique (n : ℕ)
(hd : IsDescartesNumber n) (hcf : Powerfree 3 n) (hcard : n.primeFactors.card < 7) :
n = descartesExample := by n:ℕhd:IsDescartesNumber nhcf:Powerfree 3 nhcard:n.primeFactors.card < 7⊢ n = descartesExample
sorry All goals completed! 🐙Is $198{,}585{,}576{,}189$ the only Descartes number?
@[category research open, question, AMS 11]
theorem descartes_number_unique :
∀ n : ℕ, IsDescartesNumber n → n = descartesExample := by ⊢ ∀ (n : ℕ), IsDescartesNumber n → n = descartesExample
sorry All goals completed! 🐙end DescartesNumber