Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 361 · maxSubsetSumAvoidingCard_three_four

Source:Erdős Problems · erdosproblems.com/361
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Elsewhere:the main problem, on aiXiv: claimed solved — Claimed proved in aiXiv:2611.01372 (2026-11-12); no independent check recorded on aiXiv. · erdosproblems.com: open (a claim recorded elsewhere, not verified on nosorry)
3 results recorded on aiXiv
  1. solves Let fc(n)f_c(n) be the largest size of A⊆{1,…,⌊cn⌋}A\subseteq\{1,\dots,\lfloor cn\rfloor\} such that no subset of AA sums to nn. For c≥1c\ge1, fc(n)=⌊cn⌋−⌈n/2⌉f_c(n)=\lfloor cn\rfloor-\lceil n/2\rceil. For 0<c<10<c<1, lim sup⁡fc(n)/n=c/2\limsup f_c(n)/n=c/2, attained along odd nn. Along nn whose least non-divisor is a prime power qq with 2q−2min⁡{c,1−c}≤12^{q-2}\min\{c,1-c\}\le1, fc(n)/n→max⁡{c/q, c−1/2+(1−c)/q}f_c(n)/n\to\max\{c/q,\,c-1/2+(1-c)/q\}. Hence fc(n)/nf_c(n)/n converges iff c≥1c\ge1. — aiXiv:2611.01372, 2026-11-12 · claimed by its authors; no independent check recorded on aiXiv
  2. Lean formalization The results for c≥1c\ge1, the lim sup⁡\limsup, and the limits and inverse theorem for q∈{2,3}q\in\{2,3\} are formalized in Lean 4. — aiXiv:2611.01372, 2026-11-12 · claimed by its authors; no independent check recorded on aiXiv
  3. computation For c=1/2c=1/2, f1/2(n)/n→1/4f_{1/2}(n)/n\to1/4 along odd nn and f1/2(n)/n→1/6f_{1/2}(n)/n\to1/6 along even nn, so the set of limit points is exactly {1/6,1/4}\{1/6,1/4\}. For 0<c<10<c<1, the number of limit points of fc(n)/nf_c(n)/n tends to infinity as c→0+c\to0^+ or c→1−c\to1^-. — aiXiv:2611.01372, 2026-11-12 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

For target 44 and universe {1,2,3}\{1, 2, 3\}, the maximum is 22: the full set is invalid because its subset {1,3}\{1, 3\} sums to 44.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.01893 [math.NT] · NS.01893v1 for this version
Declaration:Erdos361.maxSubsetSumAvoidingCard_three_four
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:2ec72a00494b343da35b9d3109d44bc5236e34c97f2d53f41ac1f8ac2836df35
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/361.lean

Formal statement

theorem maxSubsetSumAvoidingCard_three_four : maxSubsetSumAvoidingCard 3 4 = 2
Show the full Challenge.lean (75 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 361

*Reference:* [erdosproblems.com/361](https://www.erdosproblems.com/361)
-/

@[expose] public section

namespace Erdos361

/--
`AvoidsSubsetSum n A` means that no subset $B \subseteq A$ has sum equal to $n$.
-/
def AvoidsSubsetSum (n : ℕ) (A : Finset ℕ) : Prop :=
  ∀ B ∈ A.powerset, n ≠ ∑ a ∈ B, a

instance (n : ℕ) (A : Finset ℕ) : Decidable (AvoidsSubsetSum n A) := by
  unfold AvoidsSubsetSum
  infer_instance

/--
The largest cardinality of a set $A \subseteq \{1, \ldots, N\}$ such that no subset of $A$
sums to $n$.
-/
def maxSubsetSumAvoidingCard (N n : ℕ) : ℕ :=
  ((Finset.Icc 1 N).powerset.filter (AvoidsSubsetSum n)).sup Finset.card

/--
For fixed $c$ and $n$, this is the size of the largest set
$A \subseteq \{1, \ldots, \lfloor cn \rfloor\}$ such that no subset of $A$ sums to $n$.
-/
noncomputable def subsetSumAvoidanceNumber (c : ℝ) (n : ℕ) : ℕ :=
  maxSubsetSumAvoidingCard ⌊c * n⌋₊ n

/--
For target $4$ and universe $\{1, 2, 3\}$, the maximum is $2$: the full set is invalid because
its subset $\{1, 3\}$ sums to $4$.
-/
@[category test, AMS 11]
theorem maxSubsetSumAvoidingCard_three_four : maxSubsetSumAvoidingCard 3 4 = 2 := by
  native_decide

def erdos_361.answer (c : ℝ) : ℕ → ℕ := sorry

/--
Let $c > 0$ and $n$ be some large integer. What is the size of the largest set
$A \subseteq \{1, \ldots, \lfloor c n \rfloor\}$ such that $n$ is not a sum of a subset of $A$?
Does this depend on $n$ in an irregular way?
-/
@[category research open, question value, AMS 11]
theorem erdos_361 (c : ℝ) (hc : 0 < c) :
    subsetSumAvoidanceNumber c = erdos_361.answer c := by
  sorry

end Erdos361

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos361.maxSubsetSumAvoidingCard_three_four with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_maxSubsetSumAvoidingCard_three_four : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-361--maxsubsetsumavoidingcard-three-four      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-361--maxsubsetsumavoidingcard-three-four
nosorry submit erdos-361--maxsubsetsumavoidingcard-three-four nosorry/erdos-361--maxsubsetsumavoidingcard-three-four/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.