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
367
leanexplore_declaration
leanexplore:385223
leanexplore_sqlite
leanexplore_declarations
/-- *Third Cuboid conjecture*: For all positive, pairwise different coprime integers $a, b, c$ with $b * c ≠ a ^ 2$ and $a * c ≠ b ^ 2$, the polynomial of the third Cuboid polynomial is irreducible. -/ def CuboidThree : Prop := ∀ ⦃a b c : ℤ⦄, gcd a (gcd b c) = 1 → 0 < a → 0 < b → 0 < c → a ≠ b → b ≠ c → c ≠ a → b * c...
755
leanexplore_declaration
leanexplore:385224
leanexplore_sqlite
leanexplore_declarations
/-- Triplets of natural numbers for which the third Cuboid polynomial is irreducible. -/ def CuboidThreeFor (a b c : ℤ) : Prop := Irreducible (X ^ 12 + C (6 * c ^ 2 - 2 * a ^ 2 - 2 * b ^ 2) * X ^ 10 + C (c ^ 4 + b ^ 4 + a ^ 4 + 4 * a ^ 2 * c ^ 2 + 4 * b ^ 2 * c ^ 2 - 12 * b ^ 2 * a ^ 2) * X ^ 8 + C (6 * a ^ 4...
114
leanexplore_declaration
leanexplore:385225
leanexplore_sqlite
leanexplore_declarations
/-- The second Cuboid conjecture -/ @[category research open, AMS 12] theorem cuboidTwo : CuboidTwo := by sorry
246
leanexplore_declaration
leanexplore:385226
leanexplore_sqlite
leanexplore_declarations
/-- *Second Cuboid conjecture*: For all positive coprime integers $a$, $b$ with $a ≠ b$, the polynomial of the second Cuboid polynomial is irreducible. -/ def CuboidTwo : Prop := ∀ ⦃a b : ℕ⦄, a.Coprime b → 0 < a → 0 < b → a ≠ b → CuboidTwoFor a b
525
leanexplore_declaration
leanexplore:385227
leanexplore_sqlite
leanexplore_declarations
/-- Pairs of natural numbers for which the second Cuboid polynomial is irreducible. -/ def CuboidTwoFor (a b : ℤ) : Prop := Irreducible (X ^ 10 + C ((2 * b ^ 2 + a ^ 2) * (3 * b ^ 2 - 2 * a ^ 2)) * X ^ 8 + C ((b ^ 8 + 10 * a ^ 2 * b ^ 6 + 4 * a ^ 4 * b ^ 4 - 14 * a ^ 6 * b ^ 2 + a ^ 8)) * X ^ 6 - C (a ^ 2 * b...
113
leanexplore_declaration
leanexplore:385228
leanexplore_sqlite
leanexplore_declarations
/-- The first Cuboid conjecture -/ @[category research open, AMS 12] theorem cuboidOne : CuboidOne := by sorry
244
leanexplore_declaration
leanexplore:385229
leanexplore_sqlite
leanexplore_declarations
/-- *First Cuboid conjecture*: For all positive coprime integers $a$, $b$ with $a ≠ b$, the polynomial of the first Cuboid polynomial is irreducible. -/ def CuboidOne : Prop := ∀ ⦃a b : ℤ⦄, gcd a b = 1 → 0 < a → 0 < b → a ≠ b → CuboidOneFor a b
304
leanexplore_declaration
leanexplore:385230
leanexplore_sqlite
leanexplore_declarations
/-- Pairs of natural numbers for which the first Cuboid polynomial is irreducible. -/ def CuboidOneFor (a b : ℤ) : Prop := Irreducible (X ^ 8 + C (6 * (a ^ 2 - b ^ 2)) * X ^ 6 + C (b ^ 4 - 4 * a ^ 2 * b ^ 2 + a ^ 4) * X ^ 4 - C (6 * a ^ 2 * b ^ 2 * (a ^ 2 - b ^ 2)) * X ^ 2 + C (a ^ 4 * b ^ 4))
231
leanexplore_declaration
leanexplore:385231
leanexplore_sqlite
leanexplore_declarations
/-- Is there an Euler brick in $n$-dimensional space for any $n > 3$? -/ @[category research open, AMS 11] theorem n_dim_euler_brick_existence : answer(sorry) ↔ ∀ n > 3, ∃ sides : Fin n → ℕ+, IsEulerHyperBrick n sides := by sorry
212
leanexplore_declaration
leanexplore:385232
leanexplore_sqlite
leanexplore_declarations
/-- Is there an Euler brick in $4$-dimensional space? -/ @[category research open, AMS 11] theorem four_dim_euler_brick_existence : answer(sorry) ↔ ∃ sides : Fin 4 → ℕ+, IsEulerHyperBrick 4 sides:= by sorry
182
leanexplore_declaration
leanexplore:385233
leanexplore_sqlite
leanexplore_declarations
/-- Is there a perfect Euler brick? -/ @[category research open, AMS 11] theorem perfect_euler_brick_existence : answer(sorry) ↔ ∃ a b c : ℕ+, IsPerfectCuboid a b c := by sorry
184
leanexplore_declaration
leanexplore:385234
leanexplore_sqlite
leanexplore_declarations
/-- Generalization of an Euler brick to $n$-dimensional space. -/ def IsEulerHyperBrick (n : ℕ) (sides : Fin n → ℕ+) : Prop := Pairwise fun i j ↦ IsSquare ((sides i)^2 + (sides j)^2)
170
leanexplore_declaration
leanexplore:385235
leanexplore_sqlite
leanexplore_declarations
/-- A **perfect cuboid** is an Euler brick with an integer space diagonal. -/ def IsPerfectCuboid (a b c : ℕ+) : Prop := IsEulerBrick a b c ∧ IsSquare (a^2 + b^2 + c^2)
215
leanexplore_declaration
leanexplore:385236
leanexplore_sqlite
leanexplore_declarations
/-- An **Euler brick** is a rectangular cuboid where all edges and face diagonals have integer lengths. -/ def IsEulerBrick (a b c : ℕ+) : Prop := IsSquare (a^2 + b^2) ∧ IsSquare (a^2 + c^2) ∧ IsSquare (b^2 + c^2)
268
leanexplore_declaration
leanexplore:385237
leanexplore_sqlite
leanexplore_declarations
@[category research solved, AMS 11] theorem eulers_sum_of_powers_conjecture.false_for_k5 : ¬ (∀ (n b : ℕ) (_ : 1 < n) (a: Fin n → ℕ) (_ : ∀ i, a i > 0) (_ : ∑ i, (a i) ^ 5 = b ^ 5), 5 ≤ n) := by push_neg use 4, 144 norm_num use ![27, 84, 110, 133] decide
276
leanexplore_declaration
leanexplore:385238
leanexplore_sqlite
leanexplore_declarations
@[category research solved, AMS 11] theorem eulers_sum_of_powers_conjecture.false_for_k4 : ¬ (∀ (n b : ℕ) (_ : 1 < n) (a: Fin n → ℕ) (_ : ∀ i, a i > 0) (_ : ∑ i, (a i) ^ 4 = b ^ 4), 4 ≤ n) := by push_neg use 3, 422481 norm_num use ![95800, 217519, 414560] decide
516
leanexplore_declaration
leanexplore:385239
leanexplore_sqlite
leanexplore_declarations
/-- Euler's sum of powers conjecture states that for integers $n > 1$ and $k > 1$, if the sum of $n$ positive integers each raised to the $k$-th power equals another integer raised to the $k$-th power, then $n ≥ k$. The conjecture is known to be false for $k = 4$ and $k = 5$, but remains open for $k ≥ 6$. -/ @[categor...
331
leanexplore_declaration
leanexplore:385240
leanexplore_sqlite
leanexplore_declarations
/-- The four exponential conjecture would imply that for any irrational number $t$, at least one of the numbers $2^t$ and $3^t$ is transcendental. -/ @[category research open, AMS 11] theorem two_pow_three_pow_transcendental (t : ℝ) (h : Irrational t) : Transcendental ℚ (2 ^ t : ℝ) ∨ Transcendental ℚ (3 ^ t : ℝ) :=...
409
leanexplore_declaration
leanexplore:385241
leanexplore_sqlite
leanexplore_declarations
/-- **Four exponentials conjecture** Let $x_0, x_1$ and $y_0, y_1$ be $\mathbb Q$-linearly independent pairs of complex numbers, then some $e^{x_i y_j}$ is transcendental. -/ @[category research open, AMS 33] theorem four_exponentials_conjecture (x : Fin 2 → ℂ) (y : Fin 2 → ℂ) (h1 : LinearIndependent ℚ x) (h2 : Lin...
296
leanexplore_declaration
leanexplore:385242
leanexplore_sqlite
leanexplore_declarations
/-- There are no distinct primes $p$ and $q$ such that $\frac{q^p - 1}{q - 1}$ divides $\frac{p^q - 1}{p - 1}$ -/ @[category research open, AMS 11] theorem feit_thompson_primes (p q : ℕ) (hp : p.Prime) (hq : q.Prime) (h : p < q) : ¬ (q ^ p - 1) / (q - 1) ∣ (p ^ q - 1) / (p - 1) := by sorry
177
leanexplore_declaration
leanexplore:385243
leanexplore_sqlite
leanexplore_declarations
/-- Are all Fermat numbers are square-free? -/ @[category research open, AMS 11] theorem all_fermat_squarefree : answer(sorry) ↔ ∀ n : ℕ, Squarefree n.fermatNumber := by sorry
199
leanexplore_declaration
leanexplore:385244
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many composite Fermat numbers? -/ @[category research open, AMS 11] theorem infinite_fermat_composite : answer(sorry) ↔ Infinite {n : ℕ | ¬Prime n.fermatNumber} := by sorry
184
leanexplore_declaration
leanexplore:385245
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many Fermat primes? -/ @[category research open, AMS 11] theorem infinite_fermat_primes : answer(sorry) ↔ Infinite {n : ℕ | Prime n.fermatNumber} := by sorry
185
leanexplore_declaration
leanexplore:385246
leanexplore_sqlite
leanexplore_declarations
/-- Are Fermat numbers composite for all `n > 4`? -/ @[category research open, AMS 11] theorem fermat_number_are_composite : answer(sorry) ↔ ∀ n > 4, ¬Prime n.fermatNumber := by sorry
552
leanexplore_declaration
leanexplore:385247
leanexplore_sqlite
leanexplore_declarations
/-- By the **Darmon-Granville** theorem, for any fixed choice of positive integers m, n and k satisfying $\frac 1 m + \frac 1 n + \frac 1 k < 1$, only finitely many coprime triples $(a, b, c)$ solving $a^m + b^n = c^k$ exist. -/ @[category research solved, AMS 11] theorem fermat_catalan.variants.darmon_granville (m...
414
leanexplore_declaration
leanexplore:385248
leanexplore_sqlite
leanexplore_declarations
/-- The **Fermat–Catalan conjecture** states that the equation $a^m + b^n = c^k$ has only finitely many solutions $(a,b,c,m,n,k)$ with distinct triplets of values $(a^m, b^n, c^k)$ where $a, b, c$ are positive coprime integers and $m, n, k$ are positive integers satisfying $\frac 1 m + \frac 1 n + \frac 1 k < 1$. -/ @[...
130
leanexplore_declaration
leanexplore:385249
leanexplore_sqlite
leanexplore_declarations
/-- The proposition that the Fermat-Catalan Conjecture is true. -/ def fermatCatalanConjecture : Prop := FermatCatalanSet.Finite
123
leanexplore_declaration
leanexplore:385250
leanexplore_sqlite
leanexplore_declarations
def FermatCatalanSet : Set (ℕ × ℕ × ℕ) := (fun f => ((f 0) ^ (f 3), (f 1) ^ (f 4), (f 2) ^ (f 5))) '' FermatCatalanSet'
447
leanexplore_declaration
leanexplore:385251
leanexplore_sqlite
leanexplore_declarations
/-- The set of solutions to the Fermat-Catalan Conjecture, i.e. the set of solutions $(a,b,c,m,n,k)$ to the equation $a^m + b^n = c^k$ where $\frac 1 m + \frac 1 n + \frac 1 k < 1$. -/ def FermatCatalanSet' : Set (Fin 6 → ℕ) := { f : Fin 6 → ℕ | (∀ i, 0 < f i) ∧ (({0, 1, 2} : Set <| Fin 6).Pairwise ...
604
leanexplore_declaration
leanexplore:385252
leanexplore_sqlite
leanexplore_declarations
/-- The two ways of phrasing the conjecture are equivalent. -/ @[category test, AMS 11] theorem indices_infinite_iff_fib_primes_infinite : type_of% fib_primes_infinite.variant ↔ type_of% fib_primes_infinite := by simp only [Set.infinite_iff_exists_gt] constructor · intros h a rcases h (a + 1) with ⟨b', ⟨h...
203
leanexplore_declaration
leanexplore:385253
leanexplore_sqlite
leanexplore_declarations
/-- There are infinitely many indices $i$, such that the $i$-th Fibonacci is prime. -/ @[category research open, AMS 11] theorem fib_primes_infinite.variant : {n : ℕ | n.fib.Prime}.Infinite := by sorry
332
leanexplore_declaration
leanexplore:385254
leanexplore_sqlite
leanexplore_declarations
/-- There are infinitely many Fibonacci primes, i.e., Fibonacci numbers that are prime It is also a barrier to defining a benchmark from this paper: https://arxiv.org/html/2505.13938v1 (see Figure 8). -/ @[category research open, AMS 11] theorem fib_primes_infinite : {n : ℕ | (∃ m : ℕ, m.fib = n) ∧ n.Prime}.Infinite :...
354
leanexplore_declaration
leanexplore:385255
leanexplore_sqlite
leanexplore_declarations
/-- The inequality $p_{n+1}-p_n < (\log p_n)^2-\log p_n$ holds for all $n>4$. A consequence of Firuzbakht's conjecture. -/ @[category research solved, AMS 11] theorem firoozbakht_conjecture_consequence (n : ℕ) (hn : 3 < n) (P : type_of% firoozbakht_conjecture) : (n+1).nth Prime - n.nth Prime < (log (n.nth Prime))^2...
256
leanexplore_declaration
leanexplore:385256
leanexplore_sqlite
leanexplore_declarations
/-- **Firoozbakht's conjecture** The inequality $\sqrt[n+1]{p_{n+1}} < \sqrt[n]{p_n}$ holds for all prime numbers $p_n$. -/ @[category research open, AMS 11] theorem firoozbakht_conjecture (n : ℕ) : firoozbakhtSeq (n+1) < firoozbakhtSeq n := by sorry
156
leanexplore_declaration
leanexplore:385257
leanexplore_sqlite
leanexplore_declarations
/-- The sequence of $\sqrt[n]{p_n}$ where $p_n$ is the n:th prime number. -/ noncomputable def firoozbakhtSeq (n : ℕ) : ℝ := (n.nth Prime)^(1/(n + 1) : ℝ)
284
leanexplore_declaration
leanexplore:385258
leanexplore_sqlite
leanexplore_declarations
/-- The Cookson Hills series summing $sec(n)^2 / n^3$ from $n=1$ to $\infty$ converges. -/ @[category research open, AMS 40] theorem cookson_hills_series_converges : answer(sorry) ↔ Summable (fun n : ℕ => 1 / ((((n + 1) : ℝ)^3) * (Real.cos (n + 1)^2))) := by sorry
321
leanexplore_declaration
leanexplore:385259
leanexplore_sqlite
leanexplore_declarations
/-- The Flint Hills series summing $csc(n)^2 / n^3$ from $n=1$ to $\infty$ converges. (Note that we 0-index the series below.) -/ @[category research open, AMS 40] theorem flint_hills_series_converges : answer(sorry) ↔ Summable (fun n : ℕ => 1 / ((((n + 1) : ℝ)^3) * (Real.sin (n + 1)^2))) := by sorr...
367
leanexplore_declaration
leanexplore:385260
leanexplore_sqlite
leanexplore_declarations
/-- The value of $N(r)$ can be expressed as $$ N(r) = 1 + 4\sum_{i=0}^{\infty}\left(\left\lfloor\frac{r^2}{4i+1}\right\rfloor - \left\lfloor\frac{r^2}{4i + 3}\right\rfloor\right). $$ -/ @[category research solved, AMS 11] theorem exact_form_floor (r : ℝ) (hr : 0 ≤ r) : N r = 1 + 4 * ∑' (i : ℕ), (⌊r ^ 2 / (4 *...
450
leanexplore_declaration
leanexplore:385261
leanexplore_sqlite
leanexplore_declarations
/-- It is conjectured that the correct bound is $$ |E(r)| = O\left(r^{1/2 + o(1)}\right) $$ [Ha59] Hardy, G. H. (1959). _Ramanujan: Twelve Lectures on Subjects Suggested by His Life and Work_(3rd ed.). New York: Chelsea Publishing Company. p. 67 See also https://arxiv.org/abs/2305.03549 -/ @[category research open...
247
leanexplore_declaration
leanexplore:385262
leanexplore_sqlite
leanexplore_declarations
/-- Hardy and Laundau independently found a lower bound by showing that $$ |E(r)| \neq o\left(r^{1/2}(\log r)^{1/4}\right) $$ -/ @[category research solved, AMS 11] theorem error_not_isLittleO : ¬E =o[atTop] (fun r => √r * √√r.log) := by sorry
350
leanexplore_declaration
leanexplore:385263
leanexplore_sqlite
leanexplore_declarations
/-- Gauss proved that $$ |E(r)|\leq 2\sqrt{2}\pi r, $$ for sufficiently large $r$. [Ha59] Hardy, G. H. (1959). _Ramanujan: Twelve Lectures on Subjects Suggested by His Life and Work_(3rd ed.). New York: Chelsea Publishing Company. p. 67 -/ @[category research solved, AMS 11] theorem error_le : ∀ᶠ r in atTop, |E r| ...
206
leanexplore_declaration
leanexplore:385264
leanexplore_sqlite
leanexplore_declarations
/-- Let $E(r)$ be the error term between the number of integral points inside the circle and the area of the circle; that is $N(r) = \pi r^2 + E(r)$. -/ noncomputable abbrev E (r : ℝ) : ℝ := N r - π * r ^ 2
227
leanexplore_declaration
leanexplore:385265
leanexplore_sqlite
leanexplore_declarations
/-- Let $N(r)$ be the number of points $(m, n)$ within a circle of radius $r$, where $m$ and $n$ are both integers. -/ noncomputable abbrev N (r : ℝ) : ℕ := { (m, n) : ℤ × ℤ | !₂[↑m, ↑n] ∈ Metric.closedBall (0 : ℝ²) r }.ncard
228
leanexplore_declaration
leanexplore:385266
leanexplore_sqlite
leanexplore_declarations
/-- **Gilbreath's conjecture** Gilbreath's conjecture states that every term in the sequence $d^k_0$ for $k > 0$ is equal to 1. -/ @[category research open, AMS 11] theorem gilbreath_conjecture (k : ℕ+) : d k 0 = 1 := by sorry
226
leanexplore_declaration
leanexplore:385267
leanexplore_sqlite
leanexplore_declarations
/-- **Gilbreath's nth difference**, $d^n$ Let $d^0(n) = p_n$ and $d^k(n) = |d^{k-1}(n+1) - d^{k-1}(n)| -/ noncomputable def d : ℕ → (ℕ → ℕ) | 0 => fun n ↦ n.nth Nat.Prime | k + 1 => fun n ↦ Int.natAbs (d k (n + 1) - d k n)
427
leanexplore_declaration
leanexplore:385268
leanexplore_sqlite
leanexplore_declarations
/-- Can every odd integer greater than 5 be written as the sum of three primes? (A prime may be used more than once.) NB. While Harald Helfgott's solution is not published in a peer-reviewed journal yet, his results seem generally accepted. -/ @[category research solved, AMS 11] theorem ternaryGoldbach (n : ℕ) (hn : 5...
229
leanexplore_declaration
leanexplore:385269
leanexplore_sqlite
leanexplore_declarations
/-- Can every even integer greater than 2 be written as the sum of two primes? -/ @[category research open, AMS 11] theorem goldbach (n : ℕ) (hn : 2 < n) (hn_even : Even n) : ∃ p q, Prime p ∧ Prime q ∧ n = p + q := by sorry
395
leanexplore_declaration
leanexplore:385270
leanexplore_sqlite
leanexplore_declarations
/-- **Grimm's Conjecture, weaker version** If $n, n+1, \dots, n+k-1$ are all composite numbers, then their product has at least $k$ distinct prime divisors. -/ @[category research open, AMS 11] theorem grimm_conjecture_weak (n k : ℕ) (hn : 1 ≤ n) (hk : 1 ≤ k) (h : ∀ i : Fin k, (n + i).Composite) : ∃ ps : Fin k ...
400
leanexplore_declaration
leanexplore:385271
leanexplore_sqlite
leanexplore_declarations
/-- **Grimm's Conjecture** If $n, n+1, \dots, n+k-1$ are all composite numbers, then there are $k$ distinct primes $p_i$ such that $p_i$ divides $n + i$ for all $0 \le i \le k-1$. -/ @[category research open, AMS 11] theorem grimm_conjecture (n k : ℕ) (hn : 1 ≤ n) (hk : 1 ≤ k) (h : ∀ i : Fin k, (n + i).Composite) :...
302
leanexplore_declaration
leanexplore:385272
leanexplore_sqlite
leanexplore_declarations
/-- **Gromov's Polynomial Growth Theorem** : A finitely generated group has polynomial growth if and only if it is virtually nilpotent. -/ @[category research solved, AMS 20] theorem GromovPolynomialGrowthTheorem [Group.FG G] : HasPolynomialGrowth G ↔ Group.IsVirtuallyNilpotent G := by sorry
322
leanexplore_declaration
leanexplore:385273
leanexplore_sqlite
leanexplore_declarations
/-- A group `HasPolynomialGrowth` if there exists a finite generating set such that the growth function is bounded above by a polynomial. -/ def HasPolynomialGrowth : Prop := ∃ (S : Set G), Set.Finite S ∧ Subgroup.closure S = ⊤ ∧ ∃ (C : ℝ) (d : ℕ), C > 0 ∧ ∀ n > 0, (GrowthFunction S n : ℝ) ≤ C * (n : ℝ) ^...
832
leanexplore_declaration
leanexplore:385274
leanexplore_sqlite
leanexplore_declarations
/-- Infinite groups do not satisfy polynomial growth over `ℕ` for any degree `d` because when `d = 0` this reduces to the unbounded nature of `growthFunction` while `n = 0` works when `d ≠ 0`. Thus a finitely-generated infinite nilpotent group would be a counter-example to Gromov's theorem when quantifying over all of ...
938
leanexplore_declaration
leanexplore:385275
leanexplore_sqlite
leanexplore_declarations
/-- In an infinite group, the growth function with respect to a finite generating set is unbounded. -/ @[category API, AMS 20] theorem tendsto_atTop_growthFunction_of_infinite [Infinite G] {S : Set G} (hS : S.Finite) (h : Subgroup.closure S = ⊤) : atTop.Tendsto (GrowthFunction S) atTop := by delta GrowthFunction ...
530
leanexplore_declaration
leanexplore:385276
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 20] lemma exists_cayleyBall_mem_of_closure_eq_top {S : Set G} (h : Subgroup.closure S = ⊤) (g : G) : ∃ n, g ∈ CayleyBall S n := by induction h ▸ Subgroup.mem_top g using Subgroup.closure_induction with | mem => exact ⟨1, mem_cayleyBall_one_of_mem ‹_›⟩ | one => exact ⟨0, one_mem_cayleyBall ...
133
leanexplore_declaration
leanexplore:385277
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 20] lemma mem_cayleyBall_one_of_mem {S : Set G} {g : G} (hg : g ∈ S) : g ∈ CayleyBall S 1 := ⟨[g], by simp_all⟩
625
leanexplore_declaration
leanexplore:385278
leanexplore_sqlite
leanexplore_declarations
/-- If `g ∈ CayleyBall S n`, then `g⁻¹ ∈ CayleyBall S n`. -/ @[category API, AMS 20] lemma cayleyBall_inv (S : Set G) {g : G} {n : ℕ} (hg : g ∈ CayleyBall S n) : g⁻¹ ∈ CayleyBall S n := by simp only [CayleyBall, Set.mem_setOf_eq] at hg ⊢ obtain ⟨lg, lgLength, lgSubS, lgProd⟩ := hg refine ⟨lg.reverse.map (...
677
leanexplore_declaration
leanexplore:385279
leanexplore_sqlite
leanexplore_declarations
/-- Closure property: if g, h ∈ CayleyBall S m, CayleyBall S n respectively, then gh ∈ CayleyBall S (m + n). -/ @[category API, AMS 20] lemma cayleyBall_mul (S : Set G) {g h : G} {m n : ℕ} (hg : g ∈ CayleyBall S m) (hh : h ∈ CayleyBall S n) : g * h ∈ CayleyBall S (m + n) := by simp only [CayleyBall, Set.m...
324
leanexplore_declaration
leanexplore:385280
leanexplore_sqlite
leanexplore_declarations
/-- The Cayley ball is monotonic in radius. -/ @[category API, AMS 20] lemma cayleyBall_monotone (S : Set G) {m n : ℕ} (h : m ≤ n) : CayleyBall S m ⊆ CayleyBall S n := by simp only [CayleyBall, Set.setOf_subset_setOf, forall_exists_index, and_imp] exact fun g l lLength LSubS lProdG ↦ ⟨l, by linarith, LSubS, lPr...
235
leanexplore_declaration
leanexplore:385281
leanexplore_sqlite
leanexplore_declarations
/-- The identity is always in the Cayley ball of radius n for any $n ≥ 0$. -/ @[category API, AMS 20] lemma one_mem_cayleyBall (S : Set G) (n : ℕ) : 1 ∈ CayleyBall S n := by simp only [CayleyBall, Set.mem_setOf_eq] use ∅ simp
134
leanexplore_declaration
leanexplore:385282
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 20] theorem growthFunction_zero (S : Set G) : GrowthFunction S 0 = 1 := by simp [GrowthFunction, CayleyBall]
252
leanexplore_declaration
leanexplore:385283
leanexplore_sqlite
leanexplore_declarations
/-- The `GrowthFunction` of a group `G` with respect to a set `S` counts the number of group elements that can be reached by words of length at most `n` in `S`. -/ noncomputable def GrowthFunction (S : Set G) (n : ℕ) : ℕ := (CayleyBall S n).ncard
631
leanexplore_declaration
leanexplore:385284
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 20] lemma cayleyBall_finite {S : Set G} (hS : S.Finite) (n : ℕ) : (CayleyBall S n).Finite := by have hu : (S ∪ (·)⁻¹ '' S).Finite := hS.union (by simpa using hS.preimage inv_injective.injOn) have hf (m : ℕ) : {f : Fin m → G | ∀ i, f i ∈ S ∨ (f i)⁻¹ ∈ S}.Finite := by simpa using Set.Finite.pi...
110
leanexplore_declaration
leanexplore:385285
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 20] theorem cayleyBall_zero (S : Set G) : CayleyBall S 0 = {1} := by simp [CayleyBall]
242
leanexplore_declaration
leanexplore:385286
leanexplore_sqlite
leanexplore_declarations
/-- The `CayleyBall` is the ball of radius `n` in the Cayley graph of a group `G` with generating set `S`. -/ def CayleyBall (S : Set G) (n : ℕ) : Set G := {g : G | ∃ (l : List G), l.length ≤ n ∧ (∀ s ∈ l, s ∈ S ∨ s⁻¹ ∈ S) ∧ l.prod = g}
218
leanexplore_declaration
leanexplore:385287
leanexplore_sqlite
leanexplore_declarations
/-- The smallest order for which no Hadamard matrix is presently known is $668 = 4 * 167$. -/ @[category research open, AMS 15] theorem HadamardConjecture.variants.«167» : ∃ M, IsHadamard (n := 4 * 167) M := by sorry
249
leanexplore_declaration
leanexplore:385288
leanexplore_sqlite
leanexplore_declarations
/-- For all $k ≤ 166$, it is known there that there is a Hadamard matrix of size $4 * k$. -/ @[category research solved, AMS 15] theorem HadamardConjecture.variants.first_cases (k : ℕ) (h : k ≤ 166) : ∃ M, IsHadamard (n := 4 * k) M := by sorry
117
leanexplore_declaration
leanexplore:385289
leanexplore_sqlite
leanexplore_declarations
/-- which satisifies the condition. -/ @[category test, AMS 15] theorem isHadamard_H12 : IsHadamard H12 := by sorry
748
leanexplore_declaration
leanexplore:385290
leanexplore_sqlite
leanexplore_declarations
/-- Hadamard constructs a 12 x 12 matrix ... -/ def H12 : Matrix (Fin 12) (Fin 12) ℝ := !![ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1; 1, 1, 1, -1, -1, -1, -1, -1, -1, 1, 1, 1; 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, -1, -1; 1, -1, -1, 1, -1, -1, -1, 1, 1, -1, 1, 1; 1, -1, ...
116
leanexplore_declaration
leanexplore:385291
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 15] theorem exists_hadamard_zero : ∃ M, IsHadamard (n := 0) M := by use 0 simp [IsHadamard]
171
leanexplore_declaration
leanexplore:385292
leanexplore_sqlite
leanexplore_declarations
/-- There exists a Hadamard matrix for all $n = 4k$. -/ @[category research open, AMS 15] theorem HadamardConjecture (k : ℕ) : ∃ M, IsHadamard (n := 4 * k) M := by sorry
1,151
leanexplore_declaration
leanexplore:385293
leanexplore_sqlite
leanexplore_declarations
/-- Both definitions are equivalent. TOOD(firsching): complete and golf the proof -/ @[category test, AMS 15] theorem isHadamard_equiv_isHadamard' (n : ℕ) (M : Matrix (Fin n) (Fin n) ℝ) : IsHadamard' M ↔ IsHadamard M := by simp [IsHadamard, IsHadamard'] intro h let N := M.transpose * M constructor · intro h ...
309
leanexplore_declaration
leanexplore:385294
leanexplore_sqlite
leanexplore_declarations
/-- Equivalently, a square matrix $M$ with $±1$-entries $|A| ≤ n^\frac{n}{2}.$ if it satisfies the equality $M^TM = n \cdot 1$, where $1$ denotes the unit matrix. -/ def IsHadamard' {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) : Prop := (∀ (i j : Fin n), M i j ∈ ({1, -1} : Finset ℝ)) ∧ M.transpose * M = ↑n
275
leanexplore_declaration
leanexplore:385295
leanexplore_sqlite
leanexplore_declarations
/-- A square matrix $M$ with $±1$-entries that satisfies the equality $|M| ≤ n^\frac{n}{2}$ is called a *Hadamard matrix*. -/ def IsHadamard {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) : Prop := (∀ (i j : Fin n), M i j ∈ ({1, -1} : Finset ℝ)) ∧ |M.det| = n ^ ((n : ℝ) / 2)
220
leanexplore_declaration
leanexplore:385296
leanexplore_sqlite
leanexplore_declarations
/-- Weak form of Hall's conjecture: relax the exponent from $1/2$ to $1/2 - \varepsilon$. -/ @[category research open, AMS 11] theorem weak_hall_conjecture (ε : ℝ) (hε : ε > 0) : HallConjectureExp (2⁻¹ - ε) := by sorry
365
leanexplore_declaration
leanexplore:385297
leanexplore_sqlite
leanexplore_declarations
/-- Danilov proved that one cannot replace the exponent $1/2$ with larger number. In other words, for any $\delta > 0$, there is no positive constant $C$ such that $|y^2 - x^3| > C |x| ^ {1/2 + \delta}$ for all integers $x, y$ with $y^2 \ne x^3$. -/ @[category research solved, AMS 11] theorem danilov (δ : ℝ) (h : δ > 0...
632
leanexplore_declaration
leanexplore:385298
leanexplore_sqlite
leanexplore_declarations
/-- Elkies' example $(x, y) = (5853886516781223, 447884928428402042307918)$ shows that such $C$ must be less than $0.0215$. Note that simple `linarith` does not work here. -/ @[category test, AMS 11] theorem elkies_bound (C : ℝ) : HallIneq C 2⁻¹ → C < 0.0215 := by intro h by_cases hC : C ≤ 0 · linarith · rw [Ha...
150
leanexplore_declaration
leanexplore:385299
leanexplore_sqlite
leanexplore_declarations
/-- Original Hall's conjecture with exponent $1/2$. -/ @[category research open, AMS 11] theorem hall_conjecture : HallConjectureExp 2⁻¹ := by sorry
69
leanexplore_declaration
leanexplore:385300
leanexplore_sqlite
leanexplore_declarations
def HallConjectureExp (e : ℝ) : Prop := ∃ C : ℝ, C > 0 ∧ HallIneq C e
103
leanexplore_declaration
leanexplore:385301
leanexplore_sqlite
leanexplore_declarations
def HallIneq (C : ℝ) (e : ℝ) : Prop := ∀ x y : ℤ, y ^ 2 ≠ x ^ 3 → |y ^ 2 - x ^ 3| > C * (|x| : ℝ) ^ e
494
leanexplore_declaration
leanexplore:385302
leanexplore_sqlite
leanexplore_declarations
/-- Richards [Ri74] showed that only one of the two Hardy-Littlewood conjectures can be true. [Ri74] Richards, Ian (1974). _On the Incompatibility of Two Conjectures Concerning Primes_. Bull. Amer. Math. Soc. 80: 419–438. -/ @[category research solved, AMS 11] theorem not_first_and_secondHardyLittlewoodConjecture : ...
352
leanexplore_declaration
leanexplore:385303
leanexplore_sqlite
leanexplore_declarations
/-- For integers $x, y \geq 2$, $$ \pi(x + y) \leq \pi(x) + \pi(y), $$ where $\pi(z)$ denotes the prime-counting function, giving the number of primes up to and including $z$. -/ @[category research open, AMS 11] theorem second_hardy_littlewood_conjecture {x y : ℕ} (hx : 2 ≤ x) (hy : 2 ≤ y) : SecondHardyLittlewoo...
82
leanexplore_declaration
leanexplore:385304
leanexplore_sqlite
leanexplore_declarations
def SecondHardyLittlewoodConjectureFor (x y : ℕ) : Prop := π (x + y) ≤ π x + π y
689
leanexplore_declaration
leanexplore:385305
leanexplore_sqlite
leanexplore_declarations
/-- Let $P = (m_1, \dots, m_k)$ be a tuple of positive even integers. Let $\pi_P(n)$ denote the number of primes $p\leq n$ such that $(p, p + m_1, \dots, p + m_k)$ forms an admissible prime constellation. Let $w(q; m_1, \dots, m_k)$ denote the number of distinct residues of $0, m_1, \dots, m_k$ modulo $q$, and let $$ ...
340
leanexplore_declaration
leanexplore:385306
leanexplore_sqlite
leanexplore_declarations
def FirstHardyLittlewoodConjectureFor {k : ℕ} (m : Fin k.succ → ℕ) : Prop := let C : ℝ := 2 ^ k * ∏' (q : { q : ℕ // q.Prime ∧ 3 ≤ q}), (1 - (Nat.numResidues q m : ℝ) / q) / (1 - 1 / q) ^ k.succ let π_P : ℕ → ℝ := fun n => (Nat.primeTupleCounting m n : ℝ) π_P =O[atTop] fun n => C * ∫ t in (2)..n...
287
leanexplore_declaration
leanexplore:385307
leanexplore_sqlite
leanexplore_declarations
/-- For a given tuple $(m_1, \dots, m_k)$, this counts number of admissible prime constellations $(p, p + m_1, \dots, p + m_k)$ where $p \leq n$. -/ noncomputable def Nat.primeTupleCounting {k : ℕ} (m : Fin k.succ → ℕ) (n : ℕ) : ℕ := Nat.count (IsAdmissiblePrimeConstellation m) n.succ
223
leanexplore_declaration
leanexplore:385308
leanexplore_sqlite
leanexplore_declarations
/-- The number of distinct residue classes amongst a tuple $(m_0, \dots, m_k)$ for a prime $q$. -/ noncomputable def Nat.numResidues (q : ℕ) {k : ℕ} (m : Fin k.succ → ℕ) : ℕ := Set.range (fun i => (m i : ZMod q)) |>.ncard
320
leanexplore_declaration
leanexplore:385309
leanexplore_sqlite
leanexplore_declarations
/-- A prime constellation is said to be admissible if its elements do not form a complete set of residue classes with respect to any prime. -/ def IsAdmissiblePrimeConstellation {k : ℕ} (m : Fin k.succ → ℕ) (p : ℕ) : Prop := IsPrimeConstellation m p ∧ ∀ (q : ℕ), q.Prime → ¬(fun i => (p + 2 * m i : ZMod q)).Surjective
289
leanexplore_declaration
leanexplore:385310
leanexplore_sqlite
leanexplore_declarations
/-- A prime constellation is a tuple $(p, p + m_1, \dots, p + m_k)$ such that the $m_i$ are all positive even integers and every entry is a prime number. -/ def IsPrimeConstellation {k : ℕ} (m : Fin k.succ → ℕ) (p : ℕ) : Prop := m 0 = 0 ∧ (∀ i ≠ 0, 0 < m i) ∧ (∀ i, p + 2 * m i |>.Prime)
207
leanexplore_declaration
leanexplore:385311
leanexplore_sqlite
leanexplore_declarations
/-- Idoneal numbers completeness conjecture. -/ @[category research open, AMS 11] theorem idoneal_numbers_completeness : answer(sorry) ↔ ∀ n : ℕ, IsIdoneal n → n ∈ knownIdonealNumbers := by sorry
175
leanexplore_declaration
leanexplore:385312
leanexplore_sqlite
leanexplore_declarations
/-- All 65 known idoneal numbers are indeed idoneal. -/ @[category test, AMS 11] theorem knownIdonealNumbers_are_idoneal : ∀ n ∈ knownIdonealNumbers, IsIdoneal n := by sorry
421
leanexplore_declaration
leanexplore:385313
leanexplore_sqlite
leanexplore_declarations
/-- The 65 known idoneal numbers that are conjectured to be the only idoneal numbers. -/ def knownIdonealNumbers : Finset ℕ := {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 18, 21, 22, 24, 25, 28, 30, 33, 37, 40, 42, 45, 48, 57, 58, 60, 70, 72, 78, 85, 88, 93, 102, 105, 112, 120, 130, 133, 165, 168, 177, 190,...
282
leanexplore_declaration
leanexplore:385314
leanexplore_sqlite
leanexplore_declarations
/-- Equivalent definition: A positive integer $n$ is idoneal if and only if it cannot be written as $ab + bc + ac$ for distinct positive integers $a, b,$ and $c$. -/ def IsIdoneal (n : ℕ) : Prop := 0 < n ∧ ¬ ∃ a b c : ℕ, 0 < a ∧ a < b ∧ b < c ∧ n = a * b + b * c + a * c
309
leanexplore_declaration
leanexplore:385315
leanexplore_sqlite
leanexplore_declarations
/-- It is also known that every $C^2$ Jordan curve admits an inscribed square. -/ @[category research solved, AMS 51] theorem exists_inscribed_square_of_C2 (γ : Circle → ℝ²) (hγ : IsEmbedding γ) (hγ' : ContMDiff (𝓡 1) (𝓡 2) 2 γ) : ∃ t₁ t₂ t₃ t₄, IsRectangle (γ t₁) (γ t₂) (γ t₃) (γ t₄) 1 := by sorry
357
leanexplore_declaration
leanexplore:385316
leanexplore_sqlite
leanexplore_declarations
/-- It is known that every *smooth* Jordan curve admits inscribed rectangles of all aspect ratios. -/ @[category research solved, AMS 51] theorem exists_inscribed_rectangle_of_smooth (γ : Circle → ℝ²) (hγ : IsEmbedding γ) (hγ' : ContMDiff (𝓡 1) (𝓡 2) ∞ γ) (r : ℝ) (hr : r > 0) : ∃ t₁ t₂ t₃ t₄, IsRectangle (γ t...
272
leanexplore_declaration
leanexplore:385317
leanexplore_sqlite
leanexplore_declarations
/-- It is known that every Jordan curve admits at least one inscribed rectangle. -/ @[category research solved, AMS 51] theorem exists_inscribed_rectangle (γ : Circle → ℝ²) (hγ : IsEmbedding γ) : ∃ t₁ t₂ t₃ t₄ r, IsRectangle (γ t₁) (γ t₂) (γ t₃) (γ t₄) r := by sorry
348
leanexplore_declaration
leanexplore:385318
leanexplore_sqlite
leanexplore_declarations
/-- **Inscribed rectangle problem** Does every Jordan curve admit inscribed rectangles of any given aspect ratio? -/ @[category research open, AMS 51] theorem inscribed_rectangle_problem : answer(sorry) ↔ ∀ (γ : Circle → ℝ²) (hγ : IsEmbedding γ) (r : ℝ) (hr : r > 0), ∃ t₁ t₂ t₃ t₄, IsRectangle (γ t₁) (γ t₂) (...
294
leanexplore_declaration
leanexplore:385319
leanexplore_sqlite
leanexplore_declarations
/-- **Inscribed square problem** Does every Jordan curve admit an inscribed square? -/ @[category research open, AMS 51] theorem inscribed_square_problem : answer(sorry) ↔ ∀ (γ : Circle → ℝ²) (hγ : IsEmbedding γ), ∃ t₁ t₂ t₃ t₄, IsRectangle (γ t₁) (γ t₂) (γ t₃) (γ t₄) 1 := by sorry
43
leanexplore_declaration
leanexplore:385320
leanexplore_sqlite
leanexplore_declarations
has_ratio : (dist a b) / (dist b c) = ratio
41
leanexplore_declaration
leanexplore:385323
leanexplore_sqlite
leanexplore_declarations
diagonal_lengths_eq : dist a c = dist b d
551
leanexplore_declaration
leanexplore:385325
leanexplore_sqlite
leanexplore_declarations
/-- Four points `a b c d` in the plane form a rectangle with `a` opposite to `c` iff the line segments from `a` to `c` and from `b` to `d` have both the same length and the same midpoint, acting as the diagonals of the rectangle. We also require the rectangle to be nondegenerate and have a given aspect ratio `ratio : ℝ...