Title:Erdős Problem 425 · rProductsDistinct_two
Statement:Products of two distinct elements are distinct exactly when pairwise products are.
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Cite as: | NS.02109 [math.CO] · NS.02109v1 for this version |
| Declaration: | Erdos425.rProductsDistinct_two |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| Statement hash: | 2c5937e28ca13151752b0efcbbbcb9065ffdfea4bf46e9a5645afb96fc904197 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/425.lean |
Formal statement
theorem rProductsDistinct_two : RProductsDistinct 2 = PairProductDistinctShow the full Challenge.lean (111 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 425
*Reference:* [Erdős Problem 425](https://www.erdosproblems.com/425)
-/
@[expose] public section
namespace Erdos425
open Filter
open scoped Topology
/-- A finite set has distinct pairwise products if $ab = cd$, for elements satisfying
$a < b$ and $c < d$, implies $(a,b) = (c,d)$. -/
def PairProductDistinct (A : Finset ℕ) : Prop :=
∀ ⦃a b c d : ℕ⦄,
a ∈ A → b ∈ A → c ∈ A → d ∈ A → a < b → c < d →
a * b = c * d → a = c ∧ b = d
/-- The maximum cardinality $F(n)$ of a subset of $\{1,\ldots,n\}$ with distinct
pairwise products. -/
noncomputable def pairProductExtremal (n : ℕ) : ℕ := by
classical
exact Nat.findGreatest
(fun m => ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 n ∧ PairProductDistinct A ∧ A.card = m) n
/--
For `r`, all products over `r` distinct elements of `A` are distinct. We use
finite subsets of `A` of cardinality exactly `r`.
-/
def RProductsDistinct (r : ℕ) (A : Finset ℕ) : Prop :=
∀ ⦃S T : Finset ℕ⦄,
S ⊆ A → T ⊆ A → S.card = r → T.card = r → S.prod id = T.prod id → S = T
/-- Products of two distinct elements are distinct exactly when pairwise products are. -/
@[category test, AMS 5 11]
theorem rProductsDistinct_two : RProductsDistinct 2 = PairProductDistinct := by
funext A
apply propext
have sorted_pair (S : Finset ℕ) (hS : S.card = 2) :
∃ a b, a < b ∧ S = {a, b} := by
obtain ⟨a, b, hab, rfl⟩ := Finset.card_eq_two.mp hS
rcases lt_or_gt_of_ne hab with hab | hab
· exact ⟨a, b, hab, rfl⟩
· exact ⟨b, a, hab, Finset.pair_comm a b⟩
constructor
· intro h a b c d ha hb hc hd hab hcd hp
have heq : ({a, b} : Finset ℕ) = {c, d} :=
h (by simpa only [Finset.insert_subset_iff, Finset.singleton_subset_iff] using
And.intro ha hb)
(by simpa only [Finset.insert_subset_iff, Finset.singleton_subset_iff] using
And.intro hc hd)
(Finset.card_pair hab.ne) (Finset.card_pair hcd.ne)
(by simpa [Finset.prod_pair hab.ne, Finset.prod_pair hcd.ne] using hp)
have ha' : a ∈ ({c, d} : Finset ℕ) := heq ▸ (by simp)
have hb' : b ∈ ({c, d} : Finset ℕ) := heq ▸ (by simp)
simp only [Finset.mem_insert, Finset.mem_singleton] at ha' hb'
omega
· intro h S T hSA hTA hS hT hp
obtain ⟨a, b, hab, rfl⟩ := sorted_pair S hS
obtain ⟨c, d, hcd, rfl⟩ := sorted_pair T hT
simp only [Finset.insert_subset_iff, Finset.singleton_subset_iff] at hSA hTA
obtain ⟨rfl, rfl⟩ := h hSA.1 hSA.2 hTA.1 hTA.2 hab hcd
(by simpa [Finset.prod_pair hab.ne, Finset.prod_pair hcd.ne] using hp)
rfl
/-- Let $F(n)$ be the maximum size of a subset of $\{1,\ldots,n\}$ with distinct
pairwise products. Is there a constant $c > 0$ such that
$$F(n) = \pi(n) + (c + o(1)) n^{3/4}(\log n)^{-3/2}?$$ -/
@[category research open, question, AMS 5 11]
theorem erdos_425.parts.i : ∃ c : ℝ, 0 < c ∧
Tendsto
(fun n : ℕ =>
((pairProductExtremal n : ℝ) - (Nat.primeCounting n : ℝ)) /
((n : ℝ) ^ ((3 : ℝ) / 4) * (Real.log n) ^ (-(3 : ℝ) / 2)))
atTop (𝓝 c) := by
sorry
/-- If all products of $r$ distinct elements of $A \subseteq \{1,\ldots,n\}$ are
distinct, must
$$|A| \leq \pi(n) + O\bigl(n^{(r+1)/(2r)}\bigr)?$$ -/
@[category research open, question, AMS 5 11]
theorem erdos_425.parts.ii : ∀ r : ℕ, 1 ≤ r → ∃ C : ℝ, 0 < C ∧
∀ᶠ n in atTop, ∀ A : Finset ℕ, A ⊆ Finset.Icc 1 n → RProductsDistinct r A →
(A.card : ℝ) ≤ (Nat.primeCounting n : ℝ) +
C * (n : ℝ) ^ (((r : ℝ) + 1) / (2 * r)) := by
sorry
end Erdos425
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos425.rProductsDistinct_two with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_rProductsDistinct_two : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk erdos-425--rproductsdistinct-two # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch erdos-425--rproductsdistinct-two nosorry submit erdos-425--rproductsdistinct-two nosorry/erdos-425--rproductsdistinct-two/Solution.lean --wait
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.