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
130
leanexplore_declaration
leanexplore:384193
leanexplore_sqlite
leanexplore_declarations
/-- The type of complexity classes. We define these as sets of decision problems. -/ abbrev ComplexityClass := Set DecisionProblem
186
leanexplore_declaration
leanexplore:384194
leanexplore_sqlite
leanexplore_declarations
/-- The type of decision problems. We define these as functions from lists of booleans to booleans, implictly assuming the usual encodings. -/ abbrev DecisionProblem := List Bool → Bool
1,125
leanexplore_declaration
leanexplore:384195
leanexplore_sqlite
leanexplore_declarations
/-- A common formulation of ERH: every zero of $\zeta_K$ in the critical strip lies on the critical line. -/ @[category test, AMS 11 12 30] theorem extended_riemann_hypothesis_dedekindZeta_of_isInCriticalStrip (K : Type*) [Field K] [NumberField K] (s : ℂ) (hs_strip : IsInCriticalStrip s) (hs : NumberField.dedek...
733
leanexplore_declaration
leanexplore:384196
leanexplore_sqlite
leanexplore_declarations
/-- The **Extended Riemann Hypothesis** (ERH) for Dedekind zeta functions asserts that if $K$ is a number field and $\zeta_K(s)$ is its Dedekind zeta function, then every zero of $\zeta_K(s)$ is either a *trivial* zero (at a non-positive integer) or lies on the critical line $\Re(s) = \tfrac12$. In the formal statemen...
754
leanexplore_declaration
leanexplore:384197
leanexplore_sqlite
leanexplore_declarations
/-- A convenient (over-)approximation to the set of *trivial* zeros of a Dedekind zeta function. When $K$ is totally real, the only poles in the completed zeta function come from $\Gamma(s/2)$, so the trivial zeros occur at non-positive even integers; otherwise $\Gamma(s)$ also appears, giving trivial zeros at all non...
140
leanexplore_declaration
leanexplore:384198
leanexplore_sqlite
leanexplore_declarations
/-- The (open) critical strip $\{ s \in \mathbb{C} \mid 0 < \Re(s) < 1 \}$. -/ def IsInCriticalStrip (s : ℂ) : Prop := 0 < s.re ∧ s.re < 1
314
leanexplore_declaration
leanexplore:384199
leanexplore_sqlite
leanexplore_declarations
/-- GRH for $\chi = 1$ is `RiemannHypothesis`. -/ @[category test, AMS 11] theorem implies_riemannHypothesis : type_of% (generalized_riemann_hypothesis 1 1) ↔ RiemannHypothesis := by aesop (add simp [DirichletCharacter.isPrimitive_one_level_one, trivialZeros, RiemannHypothesis, riemannZeta_one_ne_zero])
464
leanexplore_declaration
leanexplore:384200
leanexplore_sqlite
leanexplore_declarations
/-- The **Generalized Riemann Hypothesis** asserts that all the non-trivial zeros of the Dirichlet $L$-function $L(\chi, s)$ of a primitive Dirichlet character $\chi$ have real part $\frac{1}{2}$. -/ @[category research open, AMS 11] theorem generalized_riemann_hypothesis (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q)...
663
leanexplore_declaration
leanexplore:384201
leanexplore_sqlite
leanexplore_declarations
/-- Let $\chi$ be a Dirichlet character, `trivialZeros` is the set of trivial zeros of the Dirichlet $L$-function of $\chi$ which is always a set of non-positive integers. - $\chi = 1$ then the Dirichlet $L$-function is the Riemann zeta function, having trivial zeroes at all negative even integers (exclude $0$). - $\...
679
leanexplore_declaration
leanexplore:384202
leanexplore_sqlite
leanexplore_declarations
/-- The **Riemann Hypothesis**: all non-trivial zeros of the Riemann zeta function have real part $\frac{1}{2}$. That is, if $\zeta(s) = 0$, $s \neq 1$, and $s$ is not a trivial zero $-2(n+1)$ for some $n \in \mathbb{N}$, then $\operatorname{Re}(s) = \frac{1}{2}$. This is the official Millennium Prize Problem as posed...
140
leanexplore_declaration
leanexplore:384203
leanexplore_sqlite
leanexplore_declarations
/-- Conjecture: the sequence A228828 is infinite. -/ @[category research open, AMS 11] theorem a.infinite : {a n | n}.Infinite := by sorry
198
leanexplore_declaration
leanexplore:384204
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] lemma a_two : a 2 = 7 := by unfold a convert Nat.nth_count _ · norm_num [Nat.count_succ] rfl · exact Classical.decPred fun n ↦ Nat.Prime (n ^ 2 + π n) · decide
201
leanexplore_declaration
leanexplore:384205
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] lemma a_one : a 1 = 3 := by unfold a convert Nat.nth_count _ · norm_num [Nat.count_succ] decide · exact Classical.decPred fun n ↦ Nat.Prime (n ^ 2 + π n) · decide
191
leanexplore_declaration
leanexplore:384206
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] lemma a_zero : a 0 = 2 := by unfold a convert Nat.nth_count _ · norm_num [Nat.count_succ] · exact Classical.decPred fun n ↦ Nat.Prime (n ^ 2 + π n) · decide
123
leanexplore_declaration
leanexplore:384207
leanexplore_sqlite
leanexplore_declarations
/-- Numbers n such that $n^2 + \pi(n)$ is prime. -/ noncomputable def a (n : ℕ) : ℕ := n.nth (fun n => (n ^ 2 + π n).Prime)
106
leanexplore_declaration
leanexplore:384208
leanexplore_sqlite
leanexplore_declarations
@[category research open, AMS 11] theorem conjecture (n : ℕ) (hn : 1 < n) : PrimeCondition n := by sorry
136
leanexplore_declaration
leanexplore:384209
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem primeCondition_53 : PrimeCondition 53 := ⟨20, 33, by norm_num, by norm_num, by norm_num, by norm_num⟩
132
leanexplore_declaration
leanexplore:384210
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem primeCondition_8 : PrimeCondition 8 := ⟨3, 5, by norm_num, by norm_num, by norm_num, by norm_num⟩
192
leanexplore_declaration
leanexplore:384211
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $x + y$ with $x,y >0$ such that $2^x + y$ is prime -/ def PrimeCondition (n : ℕ) : Prop := ∃ x y : ℕ, 0 < x ∧ 0 < y ∧ n = x + y ∧ (2^x + y).Prime
275
leanexplore_declaration
leanexplore:384212
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's Conjecture (A232174)**: Any integer $n > 1$ can be written as $x + y$ with $x, y > 0$ such that both $x + ny$ and $x^2 + ny^2$ are prime. -/ @[category research open, AMS 11] theorem conjecture (n : ℕ) (hn : 1 < n) : HasPrimeRepresentation n := by sorry
161
leanexplore_declaration
leanexplore:384213
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem hasPrimeRepresentation_8 : HasPrimeRepresentation 8 := ⟨5, 3, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩
161
leanexplore_declaration
leanexplore:384214
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem hasPrimeRepresentation_5 : HasPrimeRepresentation 5 := ⟨3, 2, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩
161
leanexplore_declaration
leanexplore:384215
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem hasPrimeRepresentation_2 : HasPrimeRepresentation 2 := ⟨1, 1, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩
255
leanexplore_declaration
leanexplore:384216
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $x + y$ with $x, y > 0$ such that both $x + ny$ and $x^2 + ny^2$ are prime. -/ def HasPrimeRepresentation (n : ℕ) : Prop := ∃ x y : ℕ, 0 < x ∧ 0 < y ∧ n = x + y ∧ (x + n * y).Prime ∧ (x ^ 2 + n * y ^ 2).Prime
307
leanexplore_declaration
leanexplore:384217
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's Conjecture (A239957)**: Every prime $p$ has a primitive root $0 < g < p$ of the form $k^2 + 1$, where $k$ is an integer. -/ @[category research open, AMS 11] theorem conjecture (p : ℕ) (hp : p.Prime) : ∃ k : ℤ, k ^ 2 + 1 < p ∧ orderOf (k ^ 2 + 1 : ZMod p) = p - 1 := by sorry
296
leanexplore_declaration
leanexplore:384218
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's 1680-Conjecture (A280831)**: Any nonnegative integer can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative integers such that $x^4 + 1680 y^3 z$ is a square. -/ @[category research open, AMS 11] theorem conjecture (n : ℕ) : HasSquareCondition n := by sorry
127
leanexplore_declaration
leanexplore:384219
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem hasSquareCondition_95 : HasSquareCondition 95 := ⟨6, 3, 1, 7, by norm_num, 216, by norm_num⟩
124
leanexplore_declaration
leanexplore:384220
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem hasSquareCondition_7 : HasSquareCondition 7 := ⟨1, 1, 1, 2, by norm_num, 41, by norm_num⟩
123
leanexplore_declaration
leanexplore:384221
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem hasSquareCondition_0 : HasSquareCondition 0 := ⟨0, 0, 0, 0, by norm_num, 0, by norm_num⟩
282
leanexplore_declaration
leanexplore:384222
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative integers such that $x^4 + 1680 y^3 z$ is a square. -/ def HasSquareCondition (n : ℕ) : Prop := ∃ x y z w : ℕ, n = x ^ 2 + y ^ 2 + z ^ 2 + w ^ 2 ∧ IsSquare (x ^ 4 + 1680 * y ^ 3 * z)
330
leanexplore_declaration
leanexplore:384223
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's Conjecture (A281976)**: Any integer $n \geq 0$ can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative integers and $z \leq w$, such that both $x$ and $x + 24y$ are squares. -/ @[category research open, AMS 11] theorem conjecture (n : ℕ) : IsSumOfFourSquaresWithSquareConditions n := ...
198
leanexplore_declaration
leanexplore:384224
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithSquareConditions_24 : IsSumOfFourSquaresWithSquareConditions 24 := ⟨4, 0, 2, 2, by norm_num, by norm_num, ⟨2, by norm_num⟩, ⟨2, by norm_num⟩⟩
198
leanexplore_declaration
leanexplore:384225
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithSquareConditions_23 : IsSumOfFourSquaresWithSquareConditions 23 := ⟨1, 2, 3, 3, by norm_num, by norm_num, ⟨1, by norm_num⟩, ⟨7, by norm_num⟩⟩
198
leanexplore_declaration
leanexplore:384226
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithSquareConditions_12 : IsSumOfFourSquaresWithSquareConditions 12 := ⟨1, 1, 1, 3, by norm_num, by norm_num, ⟨1, by norm_num⟩, ⟨5, by norm_num⟩⟩
196
leanexplore_declaration
leanexplore:384227
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithSquareConditions_8 : IsSumOfFourSquaresWithSquareConditions 8 := ⟨0, 0, 2, 2, by norm_num, by norm_num, ⟨0, by norm_num⟩, ⟨0, by norm_num⟩⟩
147
leanexplore_declaration
leanexplore:384228
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithSquareConditions_0 : IsSumOfFourSquaresWithSquareConditions 0 := ⟨0, 0, 0, 0, by norm_num⟩
326
leanexplore_declaration
leanexplore:384229
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative integers, $z \leq w$, such that both $x$ and $x + 24y$ are squares. -/ def IsSumOfFourSquaresWithSquareConditions (n : ℕ) : Prop := ∃ x y z w : ℕ, n = x ^ 2 + y ^ 2 + z ^ 2 + w ^ 2 ∧ z ≤ w ∧ IsSquare x ∧ IsSquare (x + 2...
387
leanexplore_declaration
leanexplore:384230
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's Conjecture (A287616)**: Any nonnegative integer can be written as the sum of a triangular number $x(x+1)/2$, a generalized pentagonal number $y(3y+1)/2$, and a generalized heptagonal number $z(5z+1)/2$, where $x, y, z$ are nonnegative integers. -/ @[category research open, AMS 11] theorem conjecture...
152
leanexplore_declaration
leanexplore:384231
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfTriangularAndGeneralizedPolygonal_4 : IsSumOfTriangularAndGeneralizedPolygonal 4 := ⟨1, 0, 1, by norm_num⟩
152
leanexplore_declaration
leanexplore:384232
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfTriangularAndGeneralizedPolygonal_2 : IsSumOfTriangularAndGeneralizedPolygonal 2 := ⟨0, 1, 0, by norm_num⟩
152
leanexplore_declaration
leanexplore:384233
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfTriangularAndGeneralizedPolygonal_1 : IsSumOfTriangularAndGeneralizedPolygonal 1 := ⟨1, 0, 0, by norm_num⟩
152
leanexplore_declaration
leanexplore:384234
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfTriangularAndGeneralizedPolygonal_0 : IsSumOfTriangularAndGeneralizedPolygonal 0 := ⟨0, 0, 0, by norm_num⟩
260
leanexplore_declaration
leanexplore:384235
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $x(x+1)/2 + y(3y+1)/2 + z(5z+1)/2$ for nonnegative integers $x, y, z$. -/ def IsSumOfTriangularAndGeneralizedPolygonal (n : ℕ) : Prop := ∃ x y z : ℕ, n = x * (x + 1) / 2 + y * (3 * y + 1) / 2 + z * (5 * z + 1) / 2
266
leanexplore_declaration
leanexplore:384236
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's Conjecture (A303656)**: Any integer $n > 1$ can be written as the sum of two squares, a power of 3, and a power of 5. -/ @[category research open, AMS 11] theorem conjecture (n : ℕ) (hn : 1 < n) : IsSumOfTwoSquaresAndPowersOf3And5 n := by sorry
139
leanexplore_declaration
leanexplore:384237
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfTwoSquaresAndPowersOf3And5_25 : IsSumOfTwoSquaresAndPowersOf3And5 25 := ⟨1, 4, 1, 1, by norm_num⟩
137
leanexplore_declaration
leanexplore:384238
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfTwoSquaresAndPowersOf3And5_5 : IsSumOfTwoSquaresAndPowersOf3And5 5 := ⟨0, 1, 1, 0, by norm_num⟩
137
leanexplore_declaration
leanexplore:384239
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfTwoSquaresAndPowersOf3And5_2 : IsSumOfTwoSquaresAndPowersOf3And5 2 := ⟨0, 0, 0, 0, by norm_num⟩
204
leanexplore_declaration
leanexplore:384240
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $a^2 + b^2 + 3^c + 5^d$ for nonnegative integers. -/ def IsSumOfTwoSquaresAndPowersOf3And5 (n : ℕ) : Prop := ∃ a b c d : ℕ, n = a ^ 2 + b ^ 2 + 3 ^ c + 5 ^ d
308
leanexplore_declaration
leanexplore:384241
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's 2-4-6-8 Conjecture (A306477)**: Any integer $n > 0$ can be written as $\binom{w+2}{2} + \binom{x+3}{4} + \binom{y+5}{6} + \binom{z+7}{8}$ for nonnegative integers $w, x, y, z$. -/ @[category research open, AMS 11] theorem conjecture (n : ℕ) (hn : 0 < n) : IsSumOfBinomials n := by sorry
108
leanexplore_declaration
leanexplore:384242
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfBinomials_6 : IsSumOfBinomials 6 := ⟨2, 0, 0, 0, by native_decide⟩
108
leanexplore_declaration
leanexplore:384243
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfBinomials_3 : IsSumOfBinomials 3 := ⟨1, 0, 0, 0, by native_decide⟩
101
leanexplore_declaration
leanexplore:384244
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfBinomials_1 : IsSumOfBinomials 1 := ⟨0, 0, 0, 0, by decide⟩
288
leanexplore_declaration
leanexplore:384245
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $\binom{w+2}{2} + \binom{x+3}{4} + \binom{y+5}{6} + \binom{z+7}{8}$ for nonnegative integers $w, x, y, z$. -/ def IsSumOfBinomials (n : ℕ) : Prop := ∃ w x y z : ℕ, n = (w + 2).choose 2 + (x + 3).choose 4 + (y + 5).choose 6 + (z + 7).choose 8
314
leanexplore_declaration
leanexplore:384246
leanexplore_sqlite
leanexplore_declarations
/-- **Zhi-Wei Sun's Four-Square Conjecture (A308734)**: Any integer $n > 1$ can be written as $(2^a \cdot 3^b)^2 + (2^c \cdot 5^d)^2 + x^2 + y^2$ for nonnegative integers $a, b, c, d, x, y$. -/ @[category research open, AMS 11] theorem conjecture (n : ℕ) (hn : 1 < n) : IsSumOfFourSquaresWithPowers n := by sorry
133
leanexplore_declaration
leanexplore:384247
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithPowers_5 : IsSumOfFourSquaresWithPowers 5 := ⟨1, 0, 0, 0, 0, 0, by norm_num⟩
133
leanexplore_declaration
leanexplore:384248
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithPowers_3 : IsSumOfFourSquaresWithPowers 3 := ⟨0, 0, 0, 0, 0, 1, by norm_num⟩
133
leanexplore_declaration
leanexplore:384249
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isSumOfFourSquaresWithPowers_2 : IsSumOfFourSquaresWithPowers 2 := ⟨0, 0, 0, 0, 0, 0, by norm_num⟩
278
leanexplore_declaration
leanexplore:384250
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that `n` can be written as $(2^a \cdot 3^b)^2 + (2^c \cdot 5^d)^2 + x^2 + y^2$ for nonnegative integers $a, b, c, d, x, y$. -/ def IsSumOfFourSquaresWithPowers (n : ℕ) : Prop := ∃ a b c d x y : ℕ, n = (2 ^ a * 3 ^ b) ^ 2 + (2 ^ c * 5 ^ d) ^ 2 + x ^ 2 + y ^ 2
227
leanexplore_declaration
leanexplore:384251
leanexplore_sqlite
leanexplore_declarations
/-- Counter-conjecture to `a_isBigO`: $a(n) / (\log n \log \log n)$ is unbounded. -/ @[category research open, AMS 11] theorem a_unbounded : ¬BddAbove (Set.range fun n ↦ a n / (Real.log n * Real.log (Real.log n))) := by sorry
194
leanexplore_declaration
leanexplore:384252
leanexplore_sqlite
leanexplore_declarations
/-- Conjecture: $a(n) = O(\log(n)\log(\log(n)))$. -/ @[category research open, AMS 11] theorem a_isBigO : (fun n ↦ (a n : ℝ)) =O[atTop] (fun n ↦ Real.log n * Real.log (Real.log n)) := by sorry
237
leanexplore_declaration
leanexplore:384253
leanexplore_sqlite
leanexplore_declarations
/-- The expression $1 + n^{0.74}$ does not work as an upper bound. -/ @[category research solved, AMS 11] theorem exists_k_best_possible : ∃ n > (0 : ℕ), ∀ (k : ℕ), k < 1 + (Real.nthRoot 100 n) ^ 74 → ¬(n * k + 1).Prime := by sorry
274
leanexplore_declaration
leanexplore:384254
leanexplore_sqlite
leanexplore_declarations
/-- A stronger conjecture: for every n there exists a number $k < 1 + n^{0.75}$ such that $nk + 1$ is a prime. -/ @[category research open, AMS 11] theorem exists_k_stronger {n : ℕ} (hn : 0 < n) : ∃ k : ℕ, k < 1 + (Real.nthRoot 4 n) ^ 3 ∧ (n * k + 1).Prime := by sorry
212
leanexplore_declaration
leanexplore:384255
leanexplore_sqlite
leanexplore_declarations
/-- Conjecture: for every $n > 1$ there exists a number $k < n$ such that $nk + 1$ is a prime. -/ @[category research open, AMS 11] theorem exists_k {n : ℕ} (hn : 1 < n) : ∃ k < n, (n * k + 1).Prime := by sorry
168
leanexplore_declaration
leanexplore:384256
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem seven : a 7 = 4 := by conv_rhs => rw [← Nat.nth_count (p := fun k ↦ (k * 7 + 1).Prime) (n := 4) (by norm_num)] aesop (add simp [a])
168
leanexplore_declaration
leanexplore:384257
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem three : a 3 = 2 := by conv_rhs => rw [← Nat.nth_count (p := fun k ↦ (k * 3 + 1).Prime) (n := 2) (by norm_num)] aesop (add simp [a])
166
leanexplore_declaration
leanexplore:384258
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem two : a 2 = 1 := by conv_rhs => rw [← Nat.nth_count (p := fun k ↦ (k * 2 + 1).Prime) (n := 1) (by norm_num)] aesop (add simp [a])
162
leanexplore_declaration
leanexplore:384259
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem one : a 1 = 1 := by conv_rhs => rw [← Nat.nth_count (p := fun k ↦ (k + 1).Prime) (n := 1) (by norm_num)] aesop (add simp [a])
144
leanexplore_declaration
leanexplore:384260
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem zero : a 0 = 0 := by simpa [a] using Nat.nth_eq_zero.2 <| .inr ⟨by convert Set.finite_empty; aesop, by aesop⟩
128
leanexplore_declaration
leanexplore:384261
leanexplore_sqlite
leanexplore_declarations
/-- Smallest number $k$ such that $kn + 1$ is prime. -/ noncomputable def a (n : ℕ) : ℕ := Nat.nth (fun k ↦ (k * n + 1).Prime) 0
403
leanexplore_declaration
leanexplore:384262
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem general_supercongruence_one_of_a357513_supercongruence : type_of% a357513_supercongruence → type_of% (general_supercongruence 1) := by intro h use {2, 7} intro p hp h_exception convert h p hp ?_ ?_ · unfold a u zify [ZMod.intCast_zmod_eq_zero_iff_dvd, Int.modEq_zero_iff_...
310
leanexplore_declaration
leanexplore:384263
leanexplore_sqlite
leanexplore_declarations
/-- We conjecture that $u(p-1) == 0 (mod p^4)$ for all primes $p$, with a finite number of exceptions that depend on $m$. -/ @[category research open, AMS 11] theorem general_supercongruence (m : ℕ) : ∃ (exceptions : Finset ℕ), ∀ p, p.Prime → p ∉ exceptions → u m (p - 1) = (0 : ZMod (p ^ 4)) := by sorry
443
leanexplore_declaration
leanexplore:384264
leanexplore_sqlite
leanexplore_declarations
/-- Let m be a nonnegative integer and set $u(n) = $$the numerator of $$\sum{k=1}^{n} \frac{1}{k^{2m+1}} \binom{n}{k}^2 \binom{n+k}{k}^2$$ (seems like a typo in the OEIS entry: the sum starts with $k=0$ there. In order to avoid a division by zero, we replace start the sum at $k=1$.) -/ noncomputable def u (m : ℕ) (n : ...
438
leanexplore_declaration
leanexplore:384265
leanexplore_sqlite
leanexplore_declarations
/-- We have $a(p-1) \equiv 0 \pmod{p^4}$ for all primes $p \ge 3$ except $p=7$. proved by AlphaProof -/ @[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/google-deepmind/formal-conjectures/commit/9c7f21e7d4445637538bc1817b058b9b3f31bd2b"] theorem a357513_supercongruence ...
166
leanexplore_declaration
leanexplore:384266
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem five : a 5 = 1335793103 := by unfold a norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]
162
leanexplore_declaration
leanexplore:384267
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem four : a 4 = 956875 := by unfold a norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]
162
leanexplore_declaration
leanexplore:384268
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem three : a 3 = 14651 := by unfold a norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]
157
leanexplore_declaration
leanexplore:384269
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem two : a 2 = 81 := by unfold a norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]
156
leanexplore_declaration
leanexplore:384270
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem one : a 1 = 4 := by unfold a norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]
54
leanexplore_declaration
leanexplore:384271
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem zero : a 0 = 0 := rfl
272
leanexplore_declaration
leanexplore:384272
leanexplore_sqlite
leanexplore_declarations
/-- A357513: $a(n) = \text{numerator of } \sum_{k = 1..n} \frac{1}{k^3} \binom{n}{k}^2 \binom{n+k}{k}^2 \text{ for } n \ge 1 \text{ with } a(0) = 0$. -/ def a (n : ℕ) : ℕ := ∑ k ∈ (Finset.Icc 1 n), ((n.choose k : ℚ) ^ 2 * ((n + k).choose k : ℚ) ^ 2) / k ^ 3 |>.num.natAbs
1,118
leanexplore_declaration
leanexplore:384273
leanexplore_sqlite
leanexplore_declarations
/-- Conjecture: the dyadic valuation of A93179(n) - 1 does not exceed 2^n - a(n). A93179(n) is minFac(fermatNumber n), the smallest prime factor of the n-th Fermat number. The conjecture states that if $P_n$ is the smallest prime factor of the $n$-th Fermat number, then $\nu_2(P_n - 1) \le 2^n - a(n)$. Substituting th...
63
leanexplore_declaration
leanexplore:384274
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem seven : a 7 = 73 := by sorry
70
leanexplore_declaration
leanexplore:384275
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem six : a 6 = 46 := by decide +native
103
leanexplore_declaration
leanexplore:384276
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem five : a 5 = 23 := by norm_num [a, fermatNumber,Nat.log2_eq_log_two]
83
leanexplore_declaration
leanexplore:384277
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem four : a 0 = 0 := by norm_num [a]; simp [log2_def]
112
leanexplore_declaration
leanexplore:384278
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem three : a 3 = 0 := by norm_num only [a, Nat.log2_eq_log_two,Nat.fermatNumber]
82
leanexplore_declaration
leanexplore:384279
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem two : a 2 = 0 := by norm_num [a]; simp [log2_def]
82
leanexplore_declaration
leanexplore:384280
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem one : a 1 = 0 := by norm_num [a]; simp [log2_def]
83
leanexplore_declaration
leanexplore:384281
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem zero : a 0 = 0 := by norm_num [a]; simp [log2_def]
1,041
leanexplore_declaration
leanexplore:384282
leanexplore_sqlite
leanexplore_declarations
/-- The minimization definition is equivalent to the closed form. -/ @[category API, AMS 11] theorem a_equiv_a' (n : ℕ) : a n = a' n := by unfold a a'; set Pn := (fermatNumber n).minFac rw [Eq.comm, Nat.find_eq_iff] constructor · rw [tsub_tsub_cancel_of_le (log2_minFac_le n), log2_eq_log_two] refine lt_of_l...
443
leanexplore_declaration
leanexplore:384283
leanexplore_sqlite
leanexplore_declarations
/-- The "original" definition: $a'(n)$ is the minimum $k$ such that $P_n > 2^{2^n - k}$. We use `Nat.find` which returns the smallest natural number satisfying a predicate. -/ noncomputable def a' (n : ℕ) : ℕ := letI Pn := minFac (fermatNumber n) Nat.find (show ∃ k, Pn > 2 ^ (2 ^ n - k) from by use 2^n simp...
587
leanexplore_declaration
leanexplore:384284
leanexplore_sqlite
leanexplore_declarations
/-- A358684: $a(n)$ is the minimum integer $k$ such that the smallest prime factor of the $n$-th Fermat number exceeds $2^{2^n - k}$. Let $F_n = 2^{2^n} + 1$ be the $n$-th Fermat number, and $P_n$ be its smallest prime factor. The definition of $a(n)$ is equivalent to the closed form: $$a(n) = 2^n - \lfloor \log_2(P_n)...
255
leanexplore_declaration
leanexplore:384285
leanexplore_sqlite
leanexplore_declarations
/-- There are no partition numbers $p(k)$ of the form $x^m$, with $x,m$ integers $>1$. See comment by Zhi-Wei Sun (Dec 02 2013). -/ @[category research open, AMS 11] theorem noPowerPartitionNumber : answer(sorry) ↔ ∀ k, ¬IsPerfectPower (p k) := by sorry
87
leanexplore_declaration
leanexplore:384286
leanexplore_sqlite
leanexplore_declarations
/-- The `n`-th partition number. -/ def p (n : ℕ) : ℕ := Fintype.card (Nat.Partition n)
2,470
leanexplore_declaration
leanexplore:384287
leanexplore_sqlite
leanexplore_declarations
/-- Numbers coming from prime quadruples satisfy $n \equiv 9 \pmod{100}$, except the first value "65". -/ @[category undergraduate, AMS 11] theorem mod_100_of_comesFromPrimeQuadruple {n : ℕ} (h65 : 65 < n) (h : ComesFromPrimeQuadruple n) : n % 100 = 9 := by obtain ⟨p, hp, hp2, hp6, hp8, rfl⟩ := h have hp5 : 5 ≤...
1,476
leanexplore_declaration
leanexplore:384288
leanexplore_sqlite
leanexplore_declarations
/-- Numbers coming from prime quadruples satisfy $n \equiv 65 \pmod{72}$. -/ @[category undergraduate, AMS 11] theorem mod_72_of_comesFromPrimeQuadruple {n : ℕ} (h : ComesFromPrimeQuadruple n) : n % 72 = 65 := by obtain ⟨p, hp, hp2, hp6, hp8, rfl⟩ := h have hp5 : 5 ≤ p := by by_contra hlt; push_neg at hlt ...
200
leanexplore_declaration
leanexplore:384289
leanexplore_sqlite
leanexplore_declarations
/-- All members of the sequence A56777 come from prime quadruples. -/ @[category research open, AMS 11] theorem comesFromPrimeQuadruple_of_a {n : ℕ} (h : a n) : ComesFromPrimeQuadruple n := by sorry
202
leanexplore_declaration
leanexplore:384290
leanexplore_sqlite
leanexplore_declarations
/-- Numbers coming from prime quadruples are in the sequence A56777. -/ @[category undergraduate, AMS 11] theorem a_of_comesFromPrimeQuadruple {n : ℕ} (h : ComesFromPrimeQuadruple n) : a n := by sorry
287
leanexplore_declaration
leanexplore:384291
leanexplore_sqlite
leanexplore_declarations
/-- $209$ is in the sequence A56777. -/ @[category test, AMS 11] theorem a_209 : a 209 := by set_option maxRecDepth 1000 in refine ⟨?_, by norm_num, ?_, ?_⟩ · simp only [show (209 : ℕ) = 11 * 19 by norm_num] exact not_prime_mul (by norm_num) (by norm_num) · decide · decide
249
leanexplore_declaration
leanexplore:384292
leanexplore_sqlite
leanexplore_declarations
/-- $65$ is in the sequence A56777. -/ @[category test, AMS 11] theorem a_65 : a 65 := by refine ⟨?_, by norm_num, ?_, ?_⟩ · simp only [show (65 : ℕ) = 5 * 13 by norm_num] exact not_prime_mul (by norm_num) (by norm_num) · decide · decide