chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
279
leanexplore_declaration
leanexplore:382878
leanexplore_sqlite
leanexplore_declarations
/-- A set $S \subseteq \mathbb{Z}$ has bounded gaps if it is syndetic, meaning there is a uniform bound $M$ such that every interval of length $M$ contains an element of $S$. -/ def HasBoundedGaps (S : Set ℤ) : Prop := ∃ M : ℕ, M > 0 ∧ ∀ z : ℤ, ∃ s ∈ S, z ≤ s ∧ s < z + (M : ℤ)
230
leanexplore_declaration
leanexplore:382879
leanexplore_sqlite
leanexplore_declarations
/-- The set of numbers $D(A)$ which occur infinitely often as $a_1 - a_2$ with $a_1, a_2 \in A$. -/ noncomputable def D_A (A : Set ℕ) : Set ℤ := { d : ℤ | Set.Infinite { (a, b) : ℕ × ℕ | a ∈ A ∧ b ∈ A ∧ (a : ℤ) - (b : ℤ) = d } }
411
leanexplore_declaration
leanexplore:382880
leanexplore_sqlite
leanexplore_declarations
/-- The smallest possible value of `lim sup n → ∞ |A ∩ {1, …, N}| / N^(1/2)` is at most `2φ^(5/2) ≈ 6.66`, with `φ` equal to the golden ratio. Proven by Wouter van Doorn. -/ @[category research solved, AMS 11] theorem erdos_33.variants.vanDoorn : ⨅ A : {A : Set ℕ | AdditiveBasisCondition A}, Filter.atTop.limsup (fu...
250
leanexplore_declaration
leanexplore:382881
leanexplore_sqlite
leanexplore_declarations
/-- Erdos observed that this value is finite and > 1. -/ @[category research solved, AMS 11] theorem erdos_33.variants.one_mem_lowerBounds : ∃ A, AdditiveBasisCondition A ∧ 1 < Filter.atTop.limsup (fun N => (A ∩ Icc 1 N).ncard / √N) := by sorry
395
leanexplore_declaration
leanexplore:382882
leanexplore_sqlite
leanexplore_declarations
/-- Let `A ⊆ ℕ` be a set such that every integer can be written as `n^2 + a` for some `a` in `A` and `n ≥ 0`. What is the smallest possible value of `lim sup n → ∞ |A ∩ {1, …, N}| / N^(1/2)`? -/ @[category research open, AMS 11] theorem erdos_33 : ⨅ A : {A : Set ℕ | AdditiveBasisCondition A}, Filter.atTop.limsup (fun N...
406
leanexplore_declaration
leanexplore:382883
leanexplore_sqlite
leanexplore_declarations
/-- Let `A ⊆ ℕ` be a set such that every integer can be written as `n^2 + a` for some `a` in `A` and `n ≥ 0`. -/ -- Formalisation note: Changed 'every large integer' to 'every integer' as for the statement these -- conditions are equivalent. Also, this was the formulation in the original paper `by Erdos. def AdditiveBa...
275
leanexplore_declaration
leanexplore:382884
leanexplore_sqlite
leanexplore_declarations
/-- It may be true that all or almost all integers are in $A - A$. -/ @[category research open, AMS 5] theorem erdos_340.variants.co_density_zero_sub : answer(sorry) ↔ ∃ S : Set ℕ, S.HasDensity 0 ∧ ∀ n ∈ Sᶜ, n ∈ Set.range greedySidon - Set.range greedySidon := by sorry
246
leanexplore_declaration
leanexplore:382885
leanexplore_sqlite
leanexplore_declarations
/-- It may be true that all or almost all integers are in $A - A$. -/ @[category research open, AMS 5] theorem erdos_340.variants.cofinite_sub : answer(sorry) ↔ ∀ᶠ n in cofinite, n ∈ Set.range greedySidon - Set.range greedySidon := by sorry
432
leanexplore_declaration
leanexplore:382886
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Graham [ErGr80] also asked about the difference set $A - A$ and whether this has positive density. [ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number theory. Monographies de L'Enseignement Mathematique (1980). -/ @[category research open, AMS 5] theorem erdos_340....
297
leanexplore_declaration
leanexplore:382887
leanexplore_sqlite
leanexplore_declarations
/-- It is trivial that this sequence grows at least like $\gg N^{1/3}$. -/ @[category undergraduate, AMS 5] theorem erdos_340.variants.third (ε : ℝ) (hε : ε > 0) : (fun n : ℕ ↦ (n : ℝ) ^ ((1 : ℝ) / 3)) =O[atTop] fun n : ℕ ↦ ((Set.range greedySidon ∩ Set.Icc 1 n).ncard : ℝ) := by sorry
621
leanexplore_declaration
leanexplore:382888
leanexplore_sqlite
leanexplore_declarations
/-- Let $A = \{1, 2, 4, 8, 13, 21, 31, 45, 66, 81, 97, \ldots\}$ be the greedy Sidon sequence: we begin with $1$ and iteratively include the next smallest integer that preserves the Sidon property (i.e. there are no non-trivial solutions to $a + b = c + d$). What is the order of growth of $A$? Is it true that $|A \cap ...
603
leanexplore_declaration
leanexplore:382889
leanexplore_sqlite
leanexplore_declarations
/-- Let $A = \{1, 2, 4, 8, 13, 21, 31, 45, 66, 81, 97, \ldots\}$ be the greedy Sidon sequence: we begin with $1$ and iteratively include the next smallest integer that preserves the Sidon property (i.e. there are no non-trivial solutions to $a + b = c + d$). What is the order of growth of $A$? Is it true that $|A \cap ...
92
leanexplore_declaration
leanexplore:382890
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_ten : greedySidon 10 = 97 := by decide +native
92
leanexplore_declaration
leanexplore:382891
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_five : greedySidon 5 = 21 := by decide +native
92
leanexplore_declaration
leanexplore:382892
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_four : greedySidon 4 = 13 := by decide +native
116
leanexplore_declaration
leanexplore:382893
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_three : greedySidon 3 = 8 := by decide +native @[category test, AMS 5]
90
leanexplore_declaration
leanexplore:382894
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_two : greedySidon 2 = 4 := by decide +native
90
leanexplore_declaration
leanexplore:382895
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_one : greedySidon 1 = 2 := by decide +native
75
leanexplore_declaration
leanexplore:382896
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_zero : greedySidon 0 = 1 := rfl
280
leanexplore_declaration
leanexplore:382897
leanexplore_sqlite
leanexplore_declarations
/-- `greedySidon` is the sequence obtained by the initial set $\{1\}$ and iteratively obtaining then next smallest integer that preserves the Sidon property of the set. This gives the sequence `1, 2, 4, 8, 13, 21, 31, ...`. -/ def greedySidon (n : ℕ) : ℕ := greedySidon.aux n |>.2
136
leanexplore_declaration
leanexplore:382898
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_go_pair_three : (greedySidon.go {1, 2} (by simp [IsSidon]) 3).val = 4 := by decide +native
136
leanexplore_declaration
leanexplore:382899
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem greedySidon_go_singleton_two : (greedySidon.go {1} (by simp [IsSidon]) 2).val = 2 := by decide +native
740
leanexplore_declaration
leanexplore:382900
leanexplore_sqlite
leanexplore_declarations
/-- Let $A=\{a_1 < \cdots < a_k\}$ be a finite set of integers and extend it to an infinite sequence $\overline{A}=\{a_1 < a_2 < \cdots \}$ by defining $a_{n+1}$ for $n \geq k$ to be the least integer exceeding $a_n$ which is not of the form $a_i + a_j$ with $i,j \leq n$. Is it true that the sequence of differences $a_...
237
leanexplore_declaration
leanexplore:382901
leanexplore_sqlite
leanexplore_declarations
/-- Part (iii), is the density of the sequence 0? -/ @[category research open, AMS 05 11 40] theorem erdos_342.parts.iii : answer(sorry) ↔ ∀ a : ℕ → ℕ, IsUlamSequence a → Set.upperDensity (Set.range a) = 0 := by sorry
348
leanexplore_declaration
leanexplore:382902
leanexplore_sqlite
leanexplore_declarations
/-- Does Ulam's sequence eventually have periodic differences? That is, is $a(n+1) - a(n)$ eventually periodic? -/ @[category research open, AMS 05 11 40] theorem erdos_342.parts.ii : answer(sorry) ↔ ∀ a : ℕ → ℕ, IsUlamSequence a → let d (n : ℕ) : ℤ := a (n + 1) - a n ∃ p > 0, ∀ᶠ m in atTop, d...
258
leanexplore_declaration
leanexplore:382903
leanexplore_sqlite
leanexplore_declarations
/-- Do infinitely many pairs $(a, a+2)$ occur in Ulam's sequence? -/ @[category research open, AMS 05 11 40] theorem erdos_342.parts.i : answer(sorry) ↔ ∀ a : ℕ → ℕ, IsUlamSequence a → Set.Infinite {n : ℕ | ∃ m, a m = a n + 2} := by sorry
1,823
leanexplore_declaration
leanexplore:382904
leanexplore_sqlite
leanexplore_declarations
/-- $a(3) = 4$: among sums $> 3$ with a unique representation from $\{1,2,3\}$, the smallest is $4 = 1 + 3$. The candidate $5 = 2 + 3$ is ruled out by minimality since $4$ has a unique representation. -/ @[category test, AMS 05 11 40] theorem erdos_342.test.a3 : ∀ a : ℕ → ℕ, IsUlamSequence a → a 3 = 4 := by intro a ⟨...
347
leanexplore_declaration
leanexplore:382905
leanexplore_sqlite
leanexplore_declarations
/-- $a(2) = 3$: the only pair $(i,j)$ with $i < j < 2$ is $(0,1)$, giving $1 + 2 = 3$. -/ @[category test, AMS 5 11 40] theorem erdos_342.test.a2 : ∀ a : ℕ → ℕ, IsUlamSequence a → a 2 = 3 := by intro a ⟨ha0, ha1, ha⟩ obtain ⟨_, ⟨⟨i, j⟩, ⟨hij, hj, hsum⟩, _⟩, _⟩ := ha 2 (by omega) interval_cases j <;> simp_all only...
169
leanexplore_declaration
leanexplore:382906
leanexplore_sqlite
leanexplore_declarations
/-- $a(1) = 2$ by definition. -/ @[category test, AMS 5 11 40] theorem erdos_342.test.a1 : ∀ a : ℕ → ℕ, IsUlamSequence a → a 1 = 2 := by intro a ⟨_, ha1, _⟩; exact ha1
169
leanexplore_declaration
leanexplore:382907
leanexplore_sqlite
leanexplore_declarations
/-- $a(0) = 1$ by definition. -/ @[category test, AMS 5 11 40] theorem erdos_342.test.a0 : ∀ a : ℕ → ℕ, IsUlamSequence a → a 0 = 1 := by intro a ⟨ha0, _, _⟩; exact ha0
431
leanexplore_declaration
leanexplore:382908
leanexplore_sqlite
leanexplore_declarations
/-- `IsUlamSequence a` means that $a$ is the Ulam sequence (OEIS A002858): $a(0) = 1$, $a(1) = 2$, and for each $n \geq 2$, $a(n)$ is the least integer greater than $a(n-1)$ that has a unique representation as $a(i) + a(j)$ with $i < j < n$. -/ def IsUlamSequence (a : ℕ → ℕ) : Prop := a 0 = 1 ∧ a 1 = 2 ∧ ∀ n, 2 ≤ n...
212
leanexplore_declaration
leanexplore:382909
leanexplore_sqlite
leanexplore_declarations
/-- `UniqueUlamSum a n m` means that $m$ has a unique representation as $a(i) + a(j)$ with $i < j < n$. -/ def UniqueUlamSum (a : ℕ → ℕ) (n m : ℕ) : Prop := ∃! p : ℕ × ℕ, p.1 < p.2 ∧ p.2 < n ∧ m = a p.1 + a p.2
465
leanexplore_declaration
leanexplore:382910
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Graham [ErGr80] also say that it is not hard to construct very irregular sequences satisfying the aforementioned properties. -/ @[category research solved, AMS 11] theorem erdos_346.variants.example : ∃ A : ℕ → ℕ, IsAddStronglyCompleteNatSeq A ∧ (∀ B : Set ℕ, B ⊆ range A → B.Infinite → ¬ IsAddComplete...
409
leanexplore_declaration
leanexplore:382911
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Graham [ErGr80] remark that it is easy to see that if `A (n + 1) / A n > (1 + √5) / 2` then the second property is automatically satisfied. -/ @[category research solved, AMS 11] theorem erdos_346.variants.gt_goldenRatio_not_IsAddComplete {A : ℕ → ℕ} (hA : ∀ n, (1 + √5) / 2 * A n < A (n + 1)) {B : Set...
292
leanexplore_declaration
leanexplore:382912
leanexplore_sqlite
leanexplore_declarations
/-- The sequence `f` is not complete whenever infinitely many terms are removed from it, and this is proved in [Gr64d]. -/ @[category test, AMS 11] theorem erdos_346.variants.f_not_isAddComplete {B : Set ℕ} (h : B ⊆ range f) (hB : B.Infinite) : ¬ IsAddComplete (range f \ B) := by sorry
202
leanexplore_declaration
leanexplore:382913
leanexplore_sqlite
leanexplore_declarations
/-- The sequence `f` is strongly complete, and this is proved in [Gr64d]. -/ @[category test, AMS 11] theorem erdos_346.variants.f_isAddStronglyCompleteNatSeq : IsAddStronglyCompleteNatSeq f := by sorry
128
leanexplore_declaration
leanexplore:382914
leanexplore_sqlite
leanexplore_declarations
/-- The sequence `f` is lacunary. -/ @[category test, AMS 11] theorem erdos_346.variants.f_isLacunary : IsLacunary f := by sorry
134
leanexplore_declaration
leanexplore:382915
leanexplore_sqlite
leanexplore_declarations
/-- We define a sequence `f` by the formula `f n = n.fib - (- 1) ^ n`. -/ def f (n : ℕ) : ℕ := if Even n then n.fib - 1 else n.fib + 1
478
leanexplore_declaration
leanexplore:382916
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that for every lacunary, strongly complete sequence `A` that is not complete whenever infinitely many terms are removed from it, `lim A (n + 1) / A n = (1 + √5) / 2`? -/ @[category research open, AMS 11] theorem erdos_346 : answer(sorry) ↔ ∀ {A : ℕ → ℕ}, IsLacunary A → IsAddStronglyCompleteNatSeq A → ...
812
leanexplore_declaration
leanexplore:382917
leanexplore_sqlite
leanexplore_declarations
/-- Is there a sequence $A=\{a_1\leq a_2\leq \cdots\}$ of integers with \[\lim \frac{a_{n+1}}{a_n}=2\] such that \[P(A')= \left\{\sum_{n\in B}n : B\subseteq A'\textrm{ finite }\right\}\] has density $1$ for every cofinite subsequence $A'$ of $A$? This has been solved in the affirmative by ebarschkis in the comments (b...
574
leanexplore_declaration
leanexplore:382918
leanexplore_sqlite
leanexplore_declarations
/-- For what values of $0 \leq m < n$ is there a complete sequence $A = \{a_1 \leq a_2 \leq \cdots\}$ of integers such that 1. $A$ remains complete after removing any $m$ elements, but 2. $A$ is not complete after removing any $n$ elements. -/ @[category research open, AMS 11] theorem erdos_348 : { (m, n) | (m) (...
253
leanexplore_declaration
leanexplore:382919
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that the terms of the sequence $\lfloor (3/2)^n\rfloor$ are even infinitely often? -/ @[category research open, AMS 11] theorem erdos_349.variants.floor_3_halves_even : answer(sorry) ↔ {n | Even ⌊(3/2 : ℝ) ^ n⌋}.Infinite := by sorry
276
leanexplore_declaration
leanexplore:382920
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that the terms of the sequence $\lfloor (3/2)^n\rfloor$ are odd infinitely often and even infinitely often? -/ @[category research open, AMS 11] theorem erdos_349.variants.floor_3_halves_odd : answer(sorry) ↔ {n | Odd ⌊(3/2 : ℝ) ^ n⌋}.Infinite := by sorry
521
leanexplore_declaration
leanexplore:382921
leanexplore_sqlite
leanexplore_declarations
/-- For any $k$ there exists some $t_k\in (0,1)$ such that the set of $\alpha$ such that the sequence $\lfloor t_k\alpha^n\rfloor$ is complete consists of at least $k$ disjoint line segments. -/ @[category research solved, AMS 11] theorem exists_t_for_k_disjoint_segments (k : ℕ) : ∃ t ∈ Ioo 0 1, ∃ (ι : Type), k ≤ (...
300
leanexplore_declaration
leanexplore:382922
leanexplore_sqlite
leanexplore_declarations
/-- It seems likely that the sequence is complete for all for all $t>0$ and all $1 < \alpha < \frac{1+\sqrt{5}}{2}$. -/ @[category research open, AMS 11] theorem complete_for_alpha_in_Ioo_one_to_goldenRatio (t α : ℝ) (ht : 0 < t) (hα : α ∈ Set.Ioo 1 ((1 + √5) / 2)) : IsGoodPair t α := by sorry
349
leanexplore_declaration
leanexplore:382923
leanexplore_sqlite
leanexplore_declarations
/-- For what values of $t,\alpha \in (0,\infty)$ is the sequence $\lfloor t\alpha^n\rfloor$ complete (that is, all sufficiently large integers are the sum of distinct integers of the form $\lfloor t\alpha^n\rfloor$)? -/ @[category research open, AMS 11] theorem erdos_349 : {(t, α) | 0 < t ∧ 0 < α ∧ IsGoodPair t α} ...
232
leanexplore_declaration
leanexplore:382924
leanexplore_sqlite
leanexplore_declarations
/-- This defines the core property of the problem: For what values of $t,\alpha \in (0,\infty)$ is the sequence $\lfloor t\alpha^n\rfloor$ complete? -/ def IsGoodPair (t α : ℝ) : Prop := IsAddComplete (range (fun n ↦ ⌊t * α ^ n⌋))
578
leanexplore_declaration
leanexplore:382925
leanexplore_sqlite
leanexplore_declarations
/-- If `A ⊂ ℕ` is a finite set of integers all of whose subset sums are distinct then `∑ n ∈ A, 1/n^s < 1/(1 - 2^(-s))`, for any `s > 0`. Proved by Hanson, Steele, and Stenger [HSS77]. We exlude here the case `s = 0`, because in the informal formulation then the right hand side is to be interpreted as `∞`, while the l...
901
leanexplore_declaration
leanexplore:382926
leanexplore_sqlite
leanexplore_declarations
/-- If `A ⊂ ℕ` is a finite set of integers all of whose subset sums are distinct then `∑ n ∈ A, 1/n < 2`. Proved by Ryavec. This was proved by Ryavec, who did not appear to ever publish the proof. Ryavec's proof is reproduced in [BeEr74]. More generally, Ryavec's proof delivers that $\sum_{n\in A}\frac{1}{n}\leq 2-2^{...
377
leanexplore_declaration
leanexplore:382927
leanexplore_sqlite
leanexplore_declarations
/-- Small sanity check: the two predicates are saying the same thing. -/ @[category API, AMS 5 11] theorem DistinctSubsetSums_iff_DecidableDistinctSubsetSums {M : Type*} [AddCommMonoid M] [DecidableEq M] (A : Finset M) : DistinctSubsetSums (A : Set M) ↔ DecidableDistinctSubsetSums A := by rw [DistinctSubsetSu...
394
leanexplore_declaration
leanexplore:382928
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5 11] theorem distinctSubsetSums_1_2 : DistinctSubsetSums ({1, 2} : Set ℕ) := by simp only [DistinctSubsetSums, Set.Pairwise, Set.mem_setOf_eq, ne_eq, id_eq] intro x hx y hy hxy -- FIXME: Why is `norm_cast` useless here? simp_rw [← Finset.coe_singleton, ← Finset.coe_insert, Finset.coe_subse...
153
leanexplore_declaration
leanexplore:382929
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5 11] theorem decidableDistinctSubsetSums_1_2 : DecidableDistinctSubsetSums {1, 2} := by rw [DecidableDistinctSubsetSums] ; decide
242
leanexplore_declaration
leanexplore:382930
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that all (finite) subsets of `A` have distinct sums, decidable version -/ def DecidableDistinctSubsetSums {M : Type*} [AddCommMonoid M] [DecidableEq M] (A : Finset M) : Prop := ∀ X ⊆ A, ∀ Y ⊆ A, X ≠ Y → X.sum id ≠ Y.sum id
218
leanexplore_declaration
leanexplore:382931
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that all (finite) subsets of `A` have distinct sums. -/ def DistinctSubsetSums {M : Type*} [AddCommMonoid M] (A : Set M) : Prop := Set.Pairwise {X : Finset M | ↑X ⊆ A} fun X Y => X.sum id ≠ Y.sum id
409
leanexplore_declaration
leanexplore:382932
leanexplore_sqlite
leanexplore_declarations
/-- Let $p(x) = x ^ 2 \in \mathbb{Q}[x]$. It has been shown that \[A=\{ p(n)+1/n : n \in \mathbb{N}\}\] is strongly complete, in the sense that, for any finite set $B$, \[\left\{\sum_{a \in X} a : X \subseteq A \setminus B, X \textrm{ is finite}\right\}\] contains all sufficiently large integers. -/ @[category research...
406
leanexplore_declaration
leanexplore:382933
leanexplore_sqlite
leanexplore_declarations
/-- Let $p(x) = x \in \mathbb{Q}[x]$. It has been shown that \[A=\{ p(n)+1/n : n \in \mathbb{N}\}\] is strongly complete, in the sense that, for any finite set $B$, \[\left\{\sum_{a \in X} a : X \subseteq A \setminus B, X \textrm{ is finite}\right\}\] contains all sufficiently large integers. -/ @[category research sol...
515
leanexplore_declaration
leanexplore:382934
leanexplore_sqlite
leanexplore_declarations
/-- Let $p(x) \in \mathbb{Q}[x]$ be a non-constant rational polynomial with positive leading coefficient. Is it true that \[A=\{ p(n)+1/n : n \in \mathbb{N}\}\] is strongly complete, in the sense that, for any finite set $B$, \[\left\{\sum_{a \in X} a : X \subseteq A \setminus B, X \textrm{ is finite}\right\}\] contain...
149
leanexplore_declaration
leanexplore:382935
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that the rational polynomial `P` has a complete image. -/ def HasCompleteImage (P : ℚ[X]) : Prop := IsStronglyComplete (imageSet P)
347
leanexplore_declaration
leanexplore:382936
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that a set `A` is strongly complete, i.e. that for every finite set `B`, every sufficiently large integer is a sum of elements of the set `A \ B`. -/ def IsStronglyComplete {α : Type*} [Semiring α] (A : Set α) : Prop := ∀ B : Finset α, ∀ᶠ (m : ℕ) in Filter.atTop, ↑m ∈ { ∑ n ∈ X, n | (X : F...
359
leanexplore_declaration
leanexplore:382937
leanexplore_sqlite
leanexplore_declarations
/-- The set of rational numbers of the form `P(n) + 1 / n` where `n` is a natural number and `P` is a polynomial with rational coefficients. Note: We include `P 0` in there (since `1 / 0 = 0`), but this doesn't change the validity of the conjecture -/ def imageSet {α : Type*} [Semifield α] (P : α[X]) : Set α := Set....
468
leanexplore_declaration
leanexplore:382938
leanexplore_sqlite
leanexplore_declarations
/-- Is there some $c > 0$ such that every measurable $A \subseteq \mathbb{R}^2$ of measure $\geq c$ contains the vertices of a triangle of area 1? -/ @[category research open, AMS 51] theorem erdos_352 : answer(sorry) ↔ ∃ c > (0: ℝ), ∀ A : Set ℝ², MeasurableSet A → ℙ A ≥ c.toEReal → (∃ t : Affine.Triangle ℝ...
504
leanexplore_declaration
leanexplore:382939
leanexplore_sqlite
leanexplore_declarations
/-- Let $\alpha,\beta\in \mathbb{R}_{>0}$ such that $\alpha/\beta$ is irrational. Is \[\{ \lfloor \alpha\rfloor,\lfloor \gamma\alpha\rfloor,\lfloor \gamma^2\alpha\rfloor,\ldots\}\cup \{ \lfloor \beta\rfloor,\lfloor \gamma\beta\rfloor,\lfloor \gamma^2\beta\rfloor,\ldots\}\] complete? -/ @[category research open, AMS 11]...
477
leanexplore_declaration
leanexplore:382940
leanexplore_sqlite
leanexplore_declarations
/-- Let $\alpha,\beta\in \mathbb{R}_{>0}$ such that $\alpha/\beta$ is irrational. Is \[\{ \lfloor \alpha\rfloor,\lfloor \gamma\alpha\rfloor,\lfloor \gamma^2\alpha\rfloor,\ldots\}\cup \{ \lfloor \beta\rfloor,\lfloor \gamma\beta\rfloor,\lfloor \gamma^2\beta\rfloor,\ldots\}\] complete?-/ @[category research open, AMS 11] ...
243
leanexplore_declaration
leanexplore:382941
leanexplore_sqlite
leanexplore_declarations
/-- The sequence `⌊a⌋, ⌊b⌋, ⌊γ * a⌋, ⌊γ * b⌋, ... ⌊γ ^ i * a⌋, ⌊γ ^ i * b⌋, ...` -/ noncomputable def FloorMultiples.interleave (a b γ : ℝ) (n : ℕ) : ℤ := if n % 2 = 0 then FloorMultiples a γ (n / 2) else FloorMultiples b γ (n / 2)
141
leanexplore_declaration
leanexplore:382942
leanexplore_sqlite
leanexplore_declarations
/-- The sequence `⌊a⌋, ⌊γ * a⌋, ⌊γ ^ 2 * a⌋, ..., ⌊γ ^ i * a⌋, ...`. -/ noncomputable def FloorMultiples (a γ : ℝ) (n : ℕ) : ℤ := ⌊γ ^ n * a⌋
909
leanexplore_declaration
leanexplore:382943
leanexplore_sqlite
leanexplore_declarations
/-- Is there a lacunary sequence $A\subseteq \mathbb{N}$ (so that $A=\{a_1 < \cdots\}$ and there exists some $\lambda > 1$ such that $a_{n+1}/a_n\geq \lambda$ for all $n\geq 1$) such that \[\left\{ \sum_{a\in A'}\frac{1}{a} : A'\subseteq A\textrm{ finite}\right\}\] contain all rationals in some open interval? Bleicher...
441
leanexplore_declaration
leanexplore:382944
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow? Can we find a (good) explicit function $g$ such that $h = o(g)$ ? -/ @[category research open, AMS 11] theorem erdos_357....
436
leanexplore_declaration
leanexplore:382945
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow? Can we find a (good) explicit function $g$ such that $g = o(h)$ ? -/ @[category research open, AMS 11] theorem erdos_357....
442
leanexplore_declaration
leanexplore:382946
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow? Can we find a (good) explicit function $g$ such that $h = \Theta(g)$ ? -/ @[category research open, AMS 11] theorem erdos...
438
leanexplore_declaration
leanexplore:382947
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow? Can we find a (good) explicit function $g$ such that $h = O(g)$ ? -/ @[category research open, AMS 11] theorem erdos_357....
433
leanexplore_declaration
leanexplore:382948
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow? Can we find a (good) explicit function $g$ such that $g = O(h)$ ? -/ @[category research open, AMS 11] theorem erdos_357....
337
leanexplore_declaration
leanexplore:382949
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. Is $h(n)=o(n)$? -/ @[category research open, AMS 11] theorem erdos_357.variants.monotone.parts.i : (fun n ↦ (h n : ℝ)) =o[atTop] (fun n ↦ (n : ...
307
leanexplore_declaration
leanexplore:382950
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. -/ noncomputable def h (n : ℕ) : ℕ := sSup {k : ℕ | ∃ a : Fin k → ℤ, Set.range a ⊆ Set.Icc 1 n ∧ Monotone a ∧ HasDistinctSums a}
513
leanexplore_declaration
leanexplore:382951
leanexplore_sqlite
leanexplore_declarations
/-- Let $g(n)$ be the maximal $k$ such that there exist integers $1 \le a_1, \dotsc, a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. It is known that $$\left(\frac 1 3 + o(1) \right)n \leq g(n) \leq \left(\frac 2 3 + o(1) \right)n.$$ -/ @[category research open, AMS 11] theorem erdos...
288
leanexplore_declaration
leanexplore:382952
leanexplore_sqlite
leanexplore_declarations
/-- Let $g(n)$ be the maximal $k$ such that there exist integers $1 \le a_1, \dotsc, a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. -/ noncomputable def g (n : ℕ) : ℕ := sSup {k : ℕ | ∃ a : Fin k → ℕ, (Set.range a ⊆ Set.Icc 1 n) ∧ HasDistinctSums a}
367
leanexplore_declaration
leanexplore:382953
leanexplore_sqlite
leanexplore_declarations
/-- Suppose $A$ is an infinite set such that all finite sums of consecutive terms of $A$ are distinct. Then it is conjectured that the sum $\sum_k \frac{1}{a_k}$ converges. -/ @[category research open, AMS 11] theorem erdos_357.variants.infinite_set_sum (A : ℕ → ℕ) (hA : StrictMono A) (hA : HasDistinctSums A) : ...
343
leanexplore_declaration
leanexplore:382954
leanexplore_sqlite
leanexplore_declarations
/-- Suppose $A$ is an infinite set such that all finite sums of consecutive terms of $A$ are distinct. Then it is conjectured that $A$ has density 0. -/ @[category research open, AMS 11] theorem erdos_357.variants.infinite_set_density (A : ℕ → ℕ) (hA : StrictMono A) (hA : HasDistinctSums A) : (Set.range A).Has...
333
leanexplore_declaration
leanexplore:382955
leanexplore_sqlite
leanexplore_declarations
/-- Suppose $A$ is an infinite set such that all finite sums of consecutive terms of $A$ are distinct. Then $A$ has lower density 0. -/ @[category research solved, AMS 11] theorem erdos_357.variants.infinite_set_lower_density (A : ℕ → ℕ) (hA : StrictMono A) (hA : HasDistinctSums A) : (Set.range A).lowerDensity = 0 ...
485
leanexplore_declaration
leanexplore:382956
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. It is known that $f(n) \geq (2+o(1))\sqrt{n}$. Source: See comment by Desmond Weisenberg here: https://www.erdosproblems.com/forum/thread/357. -/ @[c...
417
leanexplore_declaration
leanexplore:382957
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $f = o(g)$ ? -/ @[category research open, AMS 11] theorem erdos_357.parts....
412
leanexplore_declaration
leanexplore:382958
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $g = o(f)$ ? -/ @[category research open, AMS 11] theorem erdos_357.parts....
418
leanexplore_declaration
leanexplore:382959
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $f = \Theta(g)$ ? -/ @[category research open, AMS 11] theorem erdos_357.p...
414
leanexplore_declaration
leanexplore:382960
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $f = O(g)$ ? -/ @[category research open, AMS 11] theorem erdos_357.parts....
409
leanexplore_declaration
leanexplore:382961
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $g = O(f)$ ? -/ @[category research open, AMS 11] theorem erdos_357.parts....
313
leanexplore_declaration
leanexplore:382962
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. Is $f(n)=o(n)$? -/ @[category research open, AMS 11] theorem erdos_357.parts.i : (fun n ↦ (f n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ)) := by sorry
303
leanexplore_declaration
leanexplore:382963
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$ such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. -/ noncomputable def f (n : ℕ) : ℕ := sSup {k : ℕ | ∃ a : Fin k → ℤ, Set.range a ⊆ Set.Icc 1 n ∧ StrictMono a ∧ HasDistinctSums a}
159
leanexplore_declaration
leanexplore:382964
leanexplore_sqlite
leanexplore_declarations
def HasDistinctSums {ι α : Type*} [Preorder ι] [AddCommMonoid α] (a : ι → α) : Prop := {J : Finset ι | (J : Set ι).OrdConnected}.InjOn (fun J ↦ ∑ x ∈ J, a x)
373
leanexplore_declaration
leanexplore:382965
leanexplore_sqlite
leanexplore_declarations
/-- It is conjectured that if $A =\{a_1 < \cdots\}$ and $g$ counts the number of representations \[n=\sum_{u\leq i\leq v}a_i\] such that the sum has at least two terms, then for all $n$ we have $1 \leq g(n)$ for sufficiently large $n$. -/ @[category research open, AMS 5 11] theorem erdos_358.variants.one_le : ∃ A, ...
398
leanexplore_declaration
leanexplore:382966
leanexplore_sqlite
leanexplore_declarations
/-- When $A =\{a_1 < \cdots\}$ corresponds to the set of primes, it is conjectured that the set of numbers $n$ that have representations \[n=\sum_{u\leq i\leq v}a_i\] has positive upper density. -/ @[category research open, AMS 5 11] theorem erdos_358.variants.prime_set_density_representation : 0 < {n : ℕ | interva...
331
leanexplore_declaration
leanexplore:382967
leanexplore_sqlite
leanexplore_declarations
/-- When $A =\{a_1 < \cdots\}$ corresponds to the set of primes, it is conjectured that the $\limsup$ of the number of representations \[n=\sum_{u\leq i\leq v}a_i\] is infinite. -/ @[category research open, AMS 5 11] theorem erdos_358.variants.prime_set : atTop.limsup (fun n ↦ (f (Nat.nth Nat.Prime) n : ℕ∞)) = ⊤ :=...
345
leanexplore_declaration
leanexplore:382968
leanexplore_sqlite
leanexplore_declarations
/-- Let $A=\{a_1 < \cdots\}$ be an infinite sequence of integers. Let $f(n)$ count the number of solutions to \[n=\sum_{u\leq i\leq v}a_i.\] Is there an $A$ such that $f(n)\geq 2$ for all large $n$? -/ @[category research open, AMS 5 11] theorem erdos_358.parts.ii : answer(sorry) ↔ ∃ A, StrictMono A ∧ ∀ᶠ n in atTop...
353
leanexplore_declaration
leanexplore:382969
leanexplore_sqlite
leanexplore_declarations
/-- Let $A=\{a_1 < \cdots\}$ be an infinite sequence of integers. Let $f(n)$ count the number of solutions to \[n=\sum_{u\leq i\leq v}a_i.\] Is there such an $A$ for which $f(n)\to \infty$ as $n\to \infty$? -/ @[category research open, AMS 5 11] theorem erdos_358.parts.i : answer(sorry) ↔ ∃ A, StrictMono A ∧ atTop....
199
leanexplore_declaration
leanexplore:382970
leanexplore_sqlite
leanexplore_declarations
/-- When $A_n = n$, the function $f$ defined above counts the number of odd divisors of $n$. -/ @[category high_school, AMS 5 11] theorem f_id : f id = fun n ↦ #{d ∈ n.divisors | Odd d} := by sorry
97
leanexplore_declaration
leanexplore:382971
leanexplore_sqlite
leanexplore_declarations
noncomputable def g (A : ℕ → ℕ) (n : ℕ) : ℕ := Nat.card (intervalRepresentationsNonTrivial A n)
134
leanexplore_declaration
leanexplore:382972
leanexplore_sqlite
leanexplore_declarations
def intervalRepresentationsNonTrivial (A : ℕ → ℕ) (n : ℕ) : Set (ℕ × ℕ) := {(u, v) | 0 < u ∧ 0 < v ∧ u < v ∧ n = ∑ i ∈ Icc u v, A i}
87
leanexplore_declaration
leanexplore:382973
leanexplore_sqlite
leanexplore_declarations
noncomputable def f (A : ℕ → ℕ) (n : ℕ) : ℕ := Nat.card (intervalRepresentations A n)
116
leanexplore_declaration
leanexplore:382974
leanexplore_sqlite
leanexplore_declarations
def intervalRepresentations (A : ℕ → ℕ) (n : ℕ) : Set (ℕ × ℕ) := {(u, v) | 0 < u ∧ 0 < v ∧ n = ∑ i ∈ Icc u v, A i}
482
leanexplore_declaration
leanexplore:382975
leanexplore_sqlite
leanexplore_declarations
/-- Suppose monotone sequence $A$ satisfies the following: `A 0 = 1` and for all `j`, `A (j + 1)` is the smallest natural number that cannot be written as a sum of consecutive terms of `A 0, ..., A j`. Then it is conjectured that $$a_k ~ \frac{k \log k}{\log \log k}$$. -/ @[category research open, AMS 11] theorem erdos...
441
leanexplore_declaration
leanexplore:382976
leanexplore_sqlite
leanexplore_declarations
/-- Suppose monotone sequence $A$ satisfies the following: `A 0 = 1` and for all `j`, `A (j + 1)` is the smallest natural number that cannot be written as a sum of consecutive terms of `A 0, ..., A j`. Then the first few terms of $A$ are $1,2,4,5,8,10,14,15,...$. -/ @[category test, AMS 11] theorem erdos_359.variants.i...
409
leanexplore_declaration
leanexplore:382977
leanexplore_sqlite
leanexplore_declarations
/-- Let $a_1< a_2 < ⋯ $ be an infinite sequence of integers such that $a_1=1$ and $a_{i+1}$ is the least integer which is not a sum of consecutive earlier $a_j$s. Show that $a_k / k ^ {1 + c} \to 0$ for any $c > 0$. -/ @[category research open, AMS 11] theorem erdos_359.parts.ii (A : ℕ → ℕ) (hA : IsGoodFor A 1) (c : ℝ)...