Documentation

FormalConjectures.ErdosProblems.«888»

Erdős Problem 888 #

References:

Condition on the sets $A$ appearing in Erdős 888. Namely, let $A$ be a subset of ${1,...,n}$ such that if $a ≤ b ≤ c ≤ d ∈ A$ and $abcd$ square then $ad=bc$.

Equations
Instances For
    def Erdos888.p (n k : ) :

    Proposition that for a specific $n$ an $A$ with the above defined condition and cardinality $k$ exists.

    Equations
    Instances For
      theorem Erdos888.erdos_888 :
      (fun (n : ) => (Nat.findGreatest (p n) n)) =Θ[Filter.atTop] fun (n : ) => n * Real.log (Real.log n) / Real.log n

      What is the size of the largest $A\subseteq \{1,\ldots,n\}$ such that if $a\leq b\leq c\leq d\in A$ are such that $abcd$ is a square then $ad=bc$?

      This was proved by GPT-5.5 Pro (prompted by Chojecki).

      Erdős claims that Sárközy proved that $\lvert A\rvert =o(n)$ (a proof of this bound is provided by Tao in the comments).

      theorem Erdos888.erdos_888.variants.primes :
      (fun (n : ) => n / Real.log n) =O[Filter.atTop] fun (n : ) => (Nat.findGreatest (p n) n)

      The primes show that $\lvert A\rvert \gg n/\log n$ is possible.

      theorem Erdos888.erdos_888.variants.semiprimes :
      (fun (n : ) => n * Real.log (Real.log n) / Real.log n) =O[Filter.atTop] fun (n : ) => (Nat.findGreatest (p n) n)

      Cambie and Weisenberg have noted in the comments that the set of semiprimes also works, showing $(1+o(1))\frac{\log\log n}{\log n}n \leq \lvert A\rvert$ is achievable.