Title:Taxicab numbers
Statement:Taxicab number for , , and is not known. Whether such a number exists is also not known.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.08550 [math.NT] · NS.08550v1 for this version |
| Declaration: | Taxicab.taxicab_for_5_2_2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100; accepted critique: up to 100 |
| Statement hash: | bc211bcd2b81b242e312158df062a7a132cee9a03618f3378419ecaf67a33e01 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/Wikipedia/Taxicab.lean |
Formal statement
theorem taxicab_for_5_2_2 : ∃ x : ℕ, IsTaxicabFor 5 2 2 xShow the full Challenge.lean (111 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Taxicab numbers
A *taxicab number* for natural numbers $k, m, n$ is the
smallest number $x$ that can be expressed as a sum of $m$
positive $k$-th powers in at least $n$ distinct ways. The
most famous taxicab number is
$ 1729 = 1³ + 12³ = 9³ + 10³, $
also known as the Hardy–Ramanujan number.
However, a taxicab number is not known for $k=5$, $m=2$, and any $n ≥ 2$:
No positive integer is known that can be written as the
sum of two 5th powers in more than one way, and it is not
known whether such a number exists.
In particular, it is not known whether there exists a
taxicab number for $k=5$, $m=2$, and $n=2$.
*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Taxicab_number)
- [Generalized taxicab number](https://en.wikipedia.org/wiki/Generalized_taxicab_number)
- [OEIS taxicab cubes](https://oeis.org/A001235)
- [OEIS taxicab 4th powers](https://oeis.org/A018786)
- [OEIS taxicab conjecture](https://oeis.org/A088703)
-/
@[expose] public section
namespace Taxicab
/-- $x$ is a candidate for being a taxicab number for $k, m, n$ if there exist at least $n$
distinct multisets of $m$ positive integers such that the sum of the $k$-th powers of the
elements of each multiset is $x$. Using multisets means that two representations that
differ only in the order of their terms count as one way.
-/
def IsTaxicabFor' (k m n x : ℕ) : Prop :=
∃ S : Finset (Multiset ℕ), n ≤ S.card ∧
∀ L ∈ S, Multiset.card L = m ∧ 0 ∉ L ∧ (L.map (· ^ k)).sum = x
/-- $1729$ is a possible taxicab number for $k=3, m=2, n=2$.
-/
@[category test, AMS 11]
theorem taxicab_1729 : IsTaxicabFor' 3 2 2 1729 := by
use {{1, 12}, {9, 10}}
decide
/-- $x$ is a taxicab number if it is the smallest number
that can be expressed as a sum of $m$ positive $k$-th
powers in at least $n$ distinct ways.
-/
def IsTaxicabFor (k m n : ℕ) (x : ℕ) : Prop :=
IsLeast { x : ℕ | IsTaxicabFor' k m n x } x
@[category test, AMS 11]
theorem taxicab_4' : IsTaxicabFor' 1 2 2 4 := by
use {{1, 3}, {2, 2}}
decide
/-- $4$ is the taxicab number for $k=1, m=2, n=2$. -/
@[category test, AMS 11]
theorem taxicab_4 : IsTaxicabFor 1 2 2 4 := by
constructor
· exact taxicab_4'
· rintro x ⟨S, hS₁, hS₂⟩
obtain ⟨s, hs, t, ht, hst⟩ := Finset.one_lt_card.mp hS₁
obtain ⟨hs₁, hs₂, hs₃⟩ := hS₂ s hs
obtain ⟨ht₁, ht₂, ht₃⟩ := hS₂ t ht
obtain ⟨a, b, rfl⟩ := Multiset.card_eq_two.mp hs₁
obtain ⟨c, d, rfl⟩ := Multiset.card_eq_two.mp ht₁
simp at hs₂ ht₂ hs₃ ht₃
by_contra h
have ha : a ≤ 2 := by omega
have hb : b ≤ 2 := by omega
have hc : c ≤ 2 := by omega
have hd : d ≤ 2 := by omega
interval_cases a <;> interval_cases b <;> interval_cases c <;> interval_cases d <;>
first | omega | exact hst (by decide)
/-- Taxicab number for $k=5$, $m=2$, and $n=2$ is not known.
Whether such a number exists is also not known. -/
@[category research open, question, AMS 11]
theorem taxicab_for_5_2_2 : ∃ x : ℕ, IsTaxicabFor 5 2 2 x := by
sorry
/-- Taxicab number for $k=5$ and $m=2$ is not-known for any $n ≥ 2$.
Whether such a number exists is also not known. -/
@[category research open, question, AMS 11]
theorem taxicab_for_5_2_n : ∃ n : ℕ, n ≥ 2 ∧ (∃ x : ℕ, IsTaxicabFor 5 2 n x)
:= by sorry
end Taxicab
To prove it: keep every definition of Challenge.lean unchanged and prove Taxicab.taxicab_for_5_2_2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_taxicab_for_5_2_2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk wikipedia-taxicab # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch wikipedia-taxicab nosorry submit wikipedia-taxicab nosorry/wikipedia-taxicab/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- taxicab-for-5-2-n — open
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.