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
469
leanexplore_declaration
leanexplore:384087
leanexplore_sqlite
leanexplore_declarations
/-- Let $G$ and $H$ be finite groups of the same order with $\sum_{g \in G} \phi(|g|) = \sum_{h \in H} \phi(|h|)$, where $\phi$ is the Euler totient function. Suppose that $G$ is simple. Is $H$ necessarily simple? -/ @[category research open, AMS 20] theorem kourovka.«19.25» : answer(sorry) ↔ ∀ (G H : Type) [Group ...
526
leanexplore_declaration
leanexplore:384088
leanexplore_sqlite
leanexplore_declarations
/-- Let $G$ be a finite $p$-group and assume that all abelian normal subgroups of $G$ have order at most $p^k$. Is it true that every abelian subgroup of $G$ has order at most $p^{2k}$? -/ @[category research open, AMS 20] theorem kourovka.«20.76» : answer(sorry) ↔ ∀ᵉ (p : ℕ) (hp : p.Prime) (G : Type) (_ : Group G)...
206
leanexplore_declaration
leanexplore:384089
leanexplore_sqlite
leanexplore_declarations
/-- The edge boundary is zero for the full family. -/ @[category test, AMS 5] theorem edgeBoundary_univ (n : ℕ) (p : ℝ) : edgeBoundary n p Finset.univ = 0 := by simp [edgeBoundary, boundaryCount_univ]
254
leanexplore_declaration
leanexplore:384090
leanexplore_sqlite
leanexplore_declarations
/-- The boundary count is zero for the full family (every set is in $\mathcal F$). -/ @[category test, AMS 5] theorem boundaryCount_univ (n : ℕ) (S : Finset (Fin n)) : boundaryCount n Finset.univ S = 0 := by simp [boundaryCount, Xor', filter_false]
199
leanexplore_declaration
leanexplore:384091
leanexplore_sqlite
leanexplore_declarations
/-- The edge boundary is zero for the empty family. -/ @[category test, AMS 5] theorem edgeBoundary_empty (n : ℕ) (p : ℝ) : edgeBoundary n p ∅ = 0 := by simp [edgeBoundary, boundaryCount_empty]
243
leanexplore_declaration
leanexplore:384092
leanexplore_sqlite
leanexplore_declarations
/-- The boundary count is zero for the empty family (no set is in $\mathcal F$). -/ @[category test, AMS 5] theorem boundaryCount_empty (n : ℕ) (S : Finset (Fin n)) : boundaryCount n ∅ S = 0 := by simp [boundaryCount, Xor', filter_false]
217
leanexplore_declaration
leanexplore:384093
leanexplore_sqlite
leanexplore_declarations
/-- The measure of the full power set is $1$. -/ @[category test, AMS 5] theorem μFamily_univ (n : ℕ) (p : ℝ) : μFamily p (Finset.univ : Finset (Finset (Fin n))) = 1 := by unfold μFamily exact μ_sum_eq_one n p
366
leanexplore_declaration
leanexplore:384094
leanexplore_sqlite
leanexplore_declarations
/-- The $p$-biased measure is a probability distribution: it sums to $1$ over all subsets. This is the binomial identity $(p + (1-p))^n = 1$. -/ @[category test, AMS 5] theorem μ_sum_eq_one (n : ℕ) (p : ℝ) : ∑ S : Finset (Fin n), μ p S = 1 := by unfold μ have h := Fintype.sum_pow_mul_eq_add_pow (Fin n) p (1 - p...
880
leanexplore_declaration
leanexplore:384095
leanexplore_sqlite
leanexplore_declarations
/-- Now a famous isoperimetric relation asserts that (IR) $I^p(F) \ge \frac{1}{p} \mu_p(F) \log_p \mu_p(F)$ This relation is true for every family $F$ and every $p$. It is especially famous and simple when $p=1/2$ and $\mu_p(F)=1/2$. In this case, it says that given a set of half the vertices of the discrete cube $2^X$...
520
leanexplore_declaration
leanexplore:384096
leanexplore_sqlite
leanexplore_declarations
/-- Weaker version proven by Kahn–Kalai: the same conclusion holds when $1000 \log n$ is replaced by $C_\varepsilon \, n^\varepsilon$ for every fixed $\varepsilon > 0$. -/ @[category research solved, AMS 5 60] theorem mathoverflow_10799.variants.weak_kahn_kalai : ∀ ε > (0 : ℝ), ∃ C > (0 : ℝ), ∀ (n : ℕ) (_ : 2 ≤ n) ...
567
leanexplore_declaration
leanexplore:384097
leanexplore_sqlite
leanexplore_declarations
/-- Conjecture 7 from Kahn–Kalai 2006: the same statement as the original conjecture, but with the additional assumption that $t$ is the critical probability for $F$, namely $\mu_t(F) = 1/2$. -/ @[category research open, AMS 5 60] theorem mathoverflow_10799.variants.kahn_kalai_conjecture_7 : answer(sorry) ↔ ∀ (n : ...
1,094
leanexplore_declaration
leanexplore:384098
leanexplore_sqlite
leanexplore_declarations
/-- Problem: For every monotone increasing family $F$, given an interval $[s,t]$ of real numbers so that $t/s > 1000 \log n$ we have some $p$ in the interval $[s,t]$ so that $F$ is optimal with respect to $\mu_p$. This was a "missing lemma" in the work of Kahn and Kalai on threshold behavior of monotone properties. Th...
599
leanexplore_declaration
leanexplore:384099
leanexplore_sqlite
leanexplore_declarations
/-- We say that a family is optimal for $\mu_p$ if the isoperimetric inequality (IR) is sharp up to a multiplicative constant $1000 \log (1/p)$. Since the lower bound from (IR) is $$\frac{\mu_p(\mathcal F) \cdot \log(1/\mu_p(\mathcal F))}{p \cdot \log(1/p)},$$ multiplying by $1000 \log(1/p)$ gives the condition $$I^p(...
547
leanexplore_declaration
leanexplore:384100
leanexplore_sqlite
leanexplore_declarations
/-- A family $F$ of subsets of $2^X$ is monotone increasing if when $S$ belongs to $F$ and $T$ contains $S$ then $T$ also belongs to $F$. (Monotone increasing families also also called "filtes" and "up-families".) From now on we will restrict our attention to the case of monotone increasing families. This is Mathlib's...
275
leanexplore_declaration
leanexplore:384101
leanexplore_sqlite
leanexplore_declarations
/-- The edge-boundary of $F$ is the expectation of $h(S)$ (according to $\mu_p$) over all subsets $S$ of $X$. It is denoted by $I^p(F)$. -/ noncomputable def edgeBoundary (n : ℕ) (p : ℝ) (F : Finset (Finset (Fin n))) : ℝ := ∑ S : Finset (Fin n), μ p S * boundaryCount n F S
427
leanexplore_declaration
leanexplore:384102
leanexplore_sqlite
leanexplore_declarations
/-- Test lemma showing that `boundaryCount` is equivalent to counting subsets $T$ that differ from $S$ in exactly one element and exactly one of $S, T$ belongs to $F$. -/ @[category test, AMS 5] theorem boundaryCount_equiv (n : ℕ) (F : Finset (Finset (Fin n))) (S : Finset (Fin n)) : boundaryCount n F S = (Finset.un...
377
leanexplore_declaration
leanexplore:384103
leanexplore_sqlite
leanexplore_declarations
/-- Given a family $F$, for a subset $S$ of $X$, we write $h(S)$ as the number of subsets $T$ in $X$ such that (1) $T$ differs from $S$ in exactly one element (2) Exactly one set among $S$ and $T$ belongs to $F$. -/ def boundaryCount (n : ℕ) (F : Finset (Finset (Fin n))) (S : Finset (Fin n)) : ℕ := (Finset.univ.filte...
230
leanexplore_declaration
leanexplore:384104
leanexplore_sqlite
leanexplore_declarations
/-- The $p$-biased measure of a family $\mathcal F \subseteq 2^{[n]}$, i.e. $\mu_p(\mathcal F) = \sum_{S \in \mathcal F} \mu_p(S)$. -/ noncomputable def μFamily {n : ℕ} (p : ℝ) (F : Finset (Finset (Fin n))) : ℝ := ∑ S ∈ F, μ p S
409
leanexplore_declaration
leanexplore:384105
leanexplore_sqlite
leanexplore_declarations
/-- For $p = 1/2$, the $p$-biased measure is the uniform distribution: $\mu_{1/2}(S) = (1/2)^n$ for every $S \subseteq [n]$. -/ @[category test, AMS 5] theorem μ_half_eq_uniform {n : ℕ} (S : Finset (Fin n)) : μ (1/2) S = (1/2 : ℝ) ^ n := by have h : #S ≤ n := S.card_le_univ.trans_eq (Fintype.card_fin n) simp on...
522
leanexplore_declaration
leanexplore:384106
leanexplore_sqlite
leanexplore_declarations
/-- Start with a set $X=\{1,2,...,n\}$ of $n$ elements and the family $2^X$ of all subsets of $X$. For a real number $p$ between zero and one, we consider a probability distribution $\mu_p$ on $2^X$ where the probability that $i \in S$ is $p$, independently for different $i$'s. Thus for $p=1/2$ we get the uniform proba...
372
leanexplore_declaration
leanexplore:384107
leanexplore_sqlite
leanexplore_declarations
/-- Does the 6-sphere admit a complex structure, i.e. an atlas of holomorphically compatible charts relating it to `EuclideanSpace ℂ (Fin 3)`? -/ @[category research open, AMS 32] theorem mathoverflow_1973 : answer(sorry) ↔ ∃ atlas : ChartedSpace (EuclideanSpace ℂ (Fin 3)) (unitSphere 6), IsManifold 𝓘(ℂ, Euc...
181
leanexplore_declaration
leanexplore:384108
leanexplore_sqlite
leanexplore_declarations
/-- The unit `n`-sphere, defined as `Metric.sphere 0 1` in `EuclideanSpace ℝ (Fin (n + 1))`. -/ abbrev unitSphere (n : ℕ) : Set (EuclideanSpace ℝ (Fin (n + 1))) := Metric.sphere 0 1
308
leanexplore_declaration
leanexplore:384109
leanexplore_sqlite
leanexplore_declarations
/-- Is there any polynomial $f(x, y) \in \mathbb{Q}[x, y]$ such that $f : \mathbb{Q} \times \mathbb{Q} \rightarrow \mathbb{Q}$ is a bijection? -/ @[category research open, AMS 12] theorem mathoverflow_21003 : answer(sorry) ↔ ∃ f : MvPolynomial (Fin 2) ℚ, Function.Bijective fun x ↦ f.eval x := by sorry
372
leanexplore_declaration
leanexplore:384110
leanexplore_sqlite
leanexplore_declarations
/-- There exists a connected bijection ℝ → ℝ^2 where the inverse is not connected, proven in [mathoverflow/260589](https://mathoverflow.net/questions/260589) by user [Gro-Tsen](https://mathoverflow.net/users/17064/gro-tsen). -/ @[category research solved, AMS 26 54] theorem mathoverflow_260589 : ∃ f : ℝ ≃ ℝ^2, IsCo...
274
leanexplore_declaration
leanexplore:384111
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist a bijection $f : ℝ^n → ℝ^n$ such that $f$ is connected but the inverse is not? -/ @[category research open, AMS 26 54] theorem mathoverflow_235893 : answer(sorry) ↔ ∀ n > 0, ∃ (f : ℝ^n ≃ ℝ^n), IsConnectedMap f ∧ ¬ IsConnectedMap f.symm := by sorry
298
leanexplore_declaration
leanexplore:384112
leanexplore_sqlite
leanexplore_declarations
/-- By a standard result, every continuous map is connected -/ @[category test, AMS 54] theorem Continuous.isConnectedMap {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {f : X → Y} (hf : Continuous f) : IsConnectedMap f := fun _ h ↦ IsConnected.image h f (Continuous.continuousOn hf)
283
leanexplore_declaration
leanexplore:384113
leanexplore_sqlite
leanexplore_declarations
/-- For topological spaces $X$ and $Y$ we say a function $f : X → Y$ is *connected* is it sends connected sets to connected sets. -/ def IsConnectedMap {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] (f : X → Y) : Prop := ∀ ⦃s : Set X⦄, IsConnected s → IsConnected (f '' s)
338
leanexplore_declaration
leanexplore:384114
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist a category that is pretriangulated but not triangulated? -/ @[category research open, AMS 18] theorem mathoverflow_31809 : answer(sorry) ↔ (∀ (C : Type*) [Category C] [Preadditive C] [HasZeroObject C] [HasShift C ℤ] [∀ (n : ℤ), (shiftFunctor C n).Additive] [Pretriangulated C], IsTriangulate...
664
leanexplore_declaration
leanexplore:384115
leanexplore_sqlite
leanexplore_declarations
/-- Green's Open Problem 28 is the probabilistic reformulation of Mathoverflow 339137. Suppose that $X, Y$ are two finitely-supported independent random variables taking integer values, and such that $X + Y$ is uniformly distributed on its range. Are $X$ and $Y$ themselves uniformly distributed on their ranges? Mathe...
471
leanexplore_declaration
leanexplore:384116
leanexplore_sqlite
leanexplore_declarations
/-- Let $P(x), Q(x) ∈ ℝ[x]$ be two monic polynomials with non-negative coefficients. If $R(x) = P(x)Q(x)$ is a $0,1$ polynomial (coefficients only from $\{0,1\}$), then $P(x)$ and $Q(x)$ are also $0, 1$ polynomials. -/ @[category research open, AMS 12] theorem mathoverflow_339137 (P Q R : ℝ[X]) (hP: P.Monic) (hQ : Q.Mo...
343
leanexplore_declaration
leanexplore:384117
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that all coefficients of a polynomial are either zero or one. `P.coeffs` is the finite set of all *nonzero* coefficients of the polynomial `P`. So `IsZeroOne P` means that every nonzero coefficient of `P` is equal to 1. Note that zero coefficients are not included in `P.coeffs`. -/ def IsZeroOne (P : ...
398
leanexplore_declaration
leanexplore:384118
leanexplore_sqlite
leanexplore_declarations
/-- It is known that packing the rectangles into a square of side length `501/500` is possible. Reference: https://www.sciencedirect.com/science/article/pii/S0167506008706009 -/ @[category research solved, AMS 51] theorem rectangles_pack_square_501_div_500 : (∃ c : Configuration, (∀ n, (c.rect n).toSet ⊆ Rec...
397
leanexplore_declaration
leanexplore:384119
leanexplore_sqlite
leanexplore_declarations
/-- It is known that packing the rectangles into a square of side length `133/132` is possible. Reference: https://www.sciencedirect.com/science/article/pii/0097316594901163 -/ @[category research solved, AMS 51] theorem rectangles_pack_square_133_div_132 : (∃ c : Configuration, (∀ n, (c.rect n).toSet ⊆ Rect...
291
leanexplore_declaration
leanexplore:384120
leanexplore_sqlite
leanexplore_declarations
/-- Equivalently, can a unit square be packed with rectangles of width `1 / (n + 1)` and height `1 / (n + 2)`? -/ @[category research open, AMS 51] theorem rectangles_pack_unit_square : answer(sorry) ↔ ∃ c : Configuration, (∀ n, (c.rect n).toSet ⊆ unitSquare) ∧ c.IsPacking := by sorry
270
leanexplore_declaration
leanexplore:384121
leanexplore_sqlite
leanexplore_declarations
/-- Can a unit square be covered by rectangles of width `1 / (n + 1)` and height `1 / (n + 2)`? -/ @[category research open, AMS 51] theorem rectangles_cover_unit_square : answer(sorry) ↔ ∃ c : Configuration, ∀ p ∈ unitSquare, ∃ n, p ∈ (c.rect n).toSet := by sorry
216
leanexplore_declaration
leanexplore:384122
leanexplore_sqlite
leanexplore_declarations
/-- A "packing" means that the interiors of any two rectangles are disjoint. -/ def Configuration.IsPacking (c : Configuration) : Prop := Pairwise fun m n ↦ interior (c.rect m).toSet ∩ interior (c.rect n).toSet = ∅
51
leanexplore_declaration
leanexplore:384123
leanexplore_sqlite
leanexplore_declarations
rect_height (n : ℕ) : (rect n).height = 1 / (n + 2)
49
leanexplore_declaration
leanexplore:384124
leanexplore_sqlite
leanexplore_declarations
rect_width (n : ℕ) : (rect n).width = 1 / (n + 1)
248
leanexplore_declaration
leanexplore:384126
leanexplore_sqlite
leanexplore_declarations
/-- A configuration of rectangles of sides `1 / (n + 1)` and `1 / (n + 2)`. -/ structure Configuration : Type where rect (n : ℕ) : Rectangle rect_width (n : ℕ) : (rect n).width = 1 / (n + 1) rect_height (n : ℕ) : (rect n).height = 1 / (n + 2)
592
leanexplore_declaration
leanexplore:384127
leanexplore_sqlite
leanexplore_declarations
/-- The areas of the required rectangles sum to 1. -/ @[category test, AMS 51] lemma tsum_area_eq_one : ∑' (n : ℕ), ((1 / (n + 1)) * (1 / (n + 2)) : ℝ) = 1 := by have (n : ℕ) : ∑ i ∈ Finset.range n, (1 / (i + 1) * (1 / (i + 2)) : ℝ) = 1 - 1 / (n + 1) := by induction n with | zero => simp | succ n ih => rw...
302
leanexplore_declaration
leanexplore:384128
leanexplore_sqlite
leanexplore_declarations
/-- The Lebesgue measure of the a rectangle `r` is `r.width * r.height` -/ @[category test, AMS 51] lemma lbMeasure_rectangle_toSet (r : Rectangle) : lbMeasure r.toSet = .ofReal |r.width * r.height| := by rw [Rectangle.toSet, lbMeasure_rigidMotion, lbMeasure_scale, lbMeasure_unitSquare, mul_one]
625
leanexplore_declaration
leanexplore:384129
leanexplore_sqlite
leanexplore_declarations
/-- The Lebesgue measure of the unit square is `1`. -/ @[category test, AMS 51] lemma lbMeasure_unitSquare : lbMeasure unitSquare = 1 := by convert (Basis.addHaar_eq_iff (Basis.finTwoProd ℝ) _).1 rfl ext p simp only [unitSquare, Set.mem_setOf_eq, Basis.coe_parallelepiped, mem_parallelepiped_iff, Set.mem_Icc, ...
651
leanexplore_declaration
leanexplore:384130
leanexplore_sqlite
leanexplore_declarations
/-- `lbMeasure` is scaled by `scale`. -/ @[category test, AMS 51] lemma lbMeasure_scale (x y : ℝ) (s : Set (ℝ × ℝ)) : lbMeasure (scale x y '' s) = .ofReal |x * y| * lbMeasure s := by let scaleLinear : (ℝ × ℝ) →ₗ[ℝ] (ℝ × ℝ) := { toFun p := (x * p.1, y * p.2) map_add' p q := by simp [mul_add] map_smul' c ...
813
leanexplore_declaration
leanexplore:384131
leanexplore_sqlite
leanexplore_declarations
/-- `lbMeasure` is invariant under `rigidMotion start θ`. -/ @[category test, AMS 51] lemma lbMeasure_rigidMotion (start : ℝ × ℝ) (θ : Angle) (s : Set (ℝ × ℝ)) : lbMeasure (rigidMotion start θ '' s) = lbMeasure s := by let α (x : ℝ × ℝ) := (x.1 * θ.cos - x.2 * θ.sin, x.1 * θ.sin + x.2 * θ.cos) trans (Basis.finT...
128
leanexplore_declaration
leanexplore:384132
leanexplore_sqlite
leanexplore_declarations
/-- The standard Lebesgue measure on `ℝ²`. -/ noncomputable abbrev lbMeasure : Measure (ℝ × ℝ) := (Basis.finTwoProd ℝ).addHaar
176
leanexplore_declaration
leanexplore:384133
leanexplore_sqlite
leanexplore_declarations
/-- Converts a rectangle to a set in `ℝ × ℝ`. -/ def Rectangle.toSet (r : Rectangle) : Set (ℝ × ℝ) := rigidMotion r.start r.rotation '' (scale r.width r.height '' unitSquare)
103
leanexplore_declaration
leanexplore:384134
leanexplore_sqlite
leanexplore_declarations
/-- The unit square. -/ def unitSquare : Set (ℝ × ℝ) := { p | 0 ≤ p.1 ∧ p.1 ≤ 1 ∧ 0 ≤ p.2 ∧ p.2 ≤ 1 }
144
leanexplore_declaration
leanexplore:384135
leanexplore_sqlite
leanexplore_declarations
/-- A scaling to map the unit square to a standard rectangle. -/ noncomputable def scale (x y : ℝ) (p : ℝ × ℝ) : (ℝ × ℝ) := (x * p.1, y * p.2)
349
leanexplore_declaration
leanexplore:384136
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 51] lemma rigidMotion_test : rigidMotion (sqrt 2, sqrt 11) (2 * π / 3 : ℝ) (sqrt 5, sqrt 7) = (sqrt 2 - sqrt 5 / 2 - sqrt 21 / 2, -sqrt 7 / 2 + sqrt 11 + sqrt 15 / 2) := by simp [rigidMotion, mul_div_assoc, cos_two_mul, sin_two_mul, show (21 : ℝ) = 3 * 7 by norm_num, show (15 : ℝ) = 3 * 5...
268
leanexplore_declaration
leanexplore:384137
leanexplore_sqlite
leanexplore_declarations
/-- A combination of a rotation and a translation to map the standard rectangle to the desired rectangle. -/ noncomputable def rigidMotion (start : ℝ × ℝ) (θ : Angle) (p : ℝ × ℝ) : (ℝ × ℝ) := (start.1 + p.1 * θ.cos - p.2 * θ.sin, start.2 + p.1 * θ.sin + p.2 * θ.cos)
351
leanexplore_declaration
leanexplore:384142
leanexplore_sqlite
leanexplore_declarations
/-- A rectangle is specified by its width, height, starting point, and rotation. The rectangle is assumed to start in the lower left corner. For example, the unit square $\{ (x, y) \mid 0 \le x \le 1, 0 \le y \le 1 \}$ is specified as `⟨1, 1, (0, 0), 0⟩` -/ structure Rectangle : Type where width : ℝ height : ℝ s...
506
leanexplore_declaration
leanexplore:384143
leanexplore_sqlite
leanexplore_declarations
/-- Let $f : \mathbb R^n \to \mathbb R, n \geq 2$ be a $C^1$ function. Does the equality $$\sup_{x \in \mathbb R^n}f(x) = \sup_{x\in \mathbb R^n} f(x+\nabla f(x))$$ hold when both suprema are finite? -/ @[category research open, AMS 26] theorem mathoverflow_347178.variants.bounded_only : answer(sorry) ↔ ∀ᵉ (n ≥ 2)...
428
leanexplore_declaration
leanexplore:384144
leanexplore_sqlite
leanexplore_declarations
/-- Let $f : \mathbb R^n \to \mathbb R, n \geq 2$ be a $C^1$ function. Is the boundedness of $\sup_{x \in \mathbb R^n}f(x)$ and $\sup_{x\in \mathbb R^n} f(x+\nabla f(x))$ equivalent? -/ @[category research open, AMS 26] theorem mathoverflow_347178.variants.bounded_iff : answer(sorry) ↔ ∀ᵉ (n ≥ 2) (f : ℝ^n → ℝ) (hf...
461
leanexplore_declaration
leanexplore:384145
leanexplore_sqlite
leanexplore_declarations
/-- Let $f : \mathbb R^n \to \mathbb R, n \geq 2$ be a $C^1$ function. Is it true that $$\sup_{x \in \mathbb R^n}f(x) = \sup_{x\in \mathbb R^n} f(x+\nabla f(x))$$? -/ @[category research open, AMS 26] theorem mathoverflow_347178 : answer(sorry) ↔ ∀ᵉ (n ≥ 2) (f : ℝ^n → ℝ) (hf : ContDiff ℝ 1 f), (BddAbove (r...
811
leanexplore_declaration
leanexplore:384146
leanexplore_sqlite
leanexplore_declarations
/-- There exists a semiring with a unique left maximal ideal and a unique right maximal ideal which are not the same as sets. This has been shown by Goran Žužić and Moritz Firsching using an experimental pipeline: An example is the monoid algebra of the monoid of maps from $\mathbb{N}$ to $\mathbb{N}$ over $\mathbb{N}...
351
leanexplore_declaration
leanexplore:384147
leanexplore_sqlite
leanexplore_declarations
/-- There exists a semiring with a unique left maximal ideal but more than one right maximal ideals. -/ @[category research solved, AMS 16] theorem exists_semiring_unique_left_maximal_not_unique_right_maximal : ∃ (R : Type) (_ : Semiring R), (∃! I : Ideal R, I.IsMaximal) ∧ ∃ I J : Ideal Rᵐᵒᵖ, I.IsMaximal ∧ J....
188
leanexplore_declaration
leanexplore:384148
leanexplore_sqlite
leanexplore_declarations
/-- Is `2n` the complexity of `2^n` for `0 < n`? -/ @[category research open, AMS 11] theorem complexity_two_pow : answer(sorry) ↔ ∀ n : ℕ, 0 < n → complexity (2 ^ n) = 2 * n := by sorry
267
leanexplore_declaration
leanexplore:384149
leanexplore_sqlite
leanexplore_declarations
/-- Is `3n` the complexity of `3^n` for `0 < n`? Answer: Yes, by John Selfridge. Reference: https://arxiv.org/abs/1207.4841 -/ @[category research solved, AMS 11] theorem complexity_three_pow : answer(True) ↔ ∀ n : ℕ, 0 < n → complexity (3 ^ n) = 3 * n := by sorry
320
leanexplore_declaration
leanexplore:384150
leanexplore_sqlite
leanexplore_declarations
/-- Is `5n` the complexity of `5^n` for `0 < n`? Answer: No. -/ @[category research solved, AMS 11] theorem complexity_five_pow : answer(False) ↔ ∀ n : ℕ, 0 < n → complexity (5 ^ n) = 5 * n := by simp [false_iff, not_forall] exact ⟨6, by decide, fun h ↦ absurd (h ▸ Reachable.five_pow_six.complexity_le) (by decide)⟩
316
leanexplore_declaration
leanexplore:384151
leanexplore_sqlite
leanexplore_declarations
/-- `5^6 = 15625 = 1 + 2^3 * 3^2 * (1 + 2^3 * 3^3)`! -/ @[category test, AMS 11] theorem Reachable.five_pow_six : Reachable (5^6) 29 := have h8 : Reachable 8 6 := .pow' 2 3 have h9 : Reachable 9 6 := .pow' 3 2 have h27 : Reachable 27 9 := .pow' 3 3 .add .one <| .mul h8 <| .mul h9 <| .add .one <| .mul h8 h27
122
leanexplore_declaration
leanexplore:384152
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.pow' (m n : ℕ+) : Reachable (m ^ (n : ℕ) : ℕ) (m * n) := .pow _ _ m.pos n.pos
230
leanexplore_declaration
leanexplore:384153
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.pow (m n : ℕ) (hm : 0 < m) (hn : 0 < n) : Reachable (m ^ n) (m * n) := by induction hn with | refl => convert Reachable.self m hm <;> simp | step hn ih => exact .mul ih (.self m hm)
305
leanexplore_declaration
leanexplore:384154
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem complexity_two : complexity 2 = 2 := (Reachable.add .one .one).complexity_eq fun n' hn' ↦ by interval_cases n' · exact not_reachable_zero_snd 2 · rw [reachable_iff_of_two_le 2 1 (by omega)] rintro ⟨m₁, hm₁, m₂, hm₂, n₁, hn₁, n₂, hn₂, h₁, -⟩ omega
192
leanexplore_declaration
leanexplore:384155
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem complexity_one : complexity 1 = 1 := Reachable.one.complexity_eq fun n' hn' ↦ by have : n' = 0 := by omega subst this; exact not_reachable_zero_snd 1
74
leanexplore_declaration
leanexplore:384156
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem complexity_zero : complexity 0 = 0 := rfl
200
leanexplore_declaration
leanexplore:384157
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.complexity {n : ℕ} (hn : 0 < n) : Reachable n (complexity n) := by unfold Mathoverflow75792.complexity rw [dif_neg (ne_of_gt hn)] exact Nat.find_spec _
322
leanexplore_declaration
leanexplore:384158
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.complexity_eq {m n : ℕ} (h : Reachable m n) (min : ∀ n' < n, ¬ Reachable m n') : complexity m = n := by refine le_antisymm h.complexity_le ?_ unfold complexity split_ifs with h' · subst h'; exact absurd h (not_reachable_zero_fst n) exact (Nat.le_find_iff _ _).2 m...
233
leanexplore_declaration
leanexplore:384159
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.complexity_le {m n : ℕ} (h : Reachable m n) : complexity m ≤ n := by unfold complexity split_ifs with h' · subst h'; exact absurd h (not_reachable_zero_fst n) exact Nat.find_min' _ h
348
leanexplore_declaration
leanexplore:384160
leanexplore_sqlite
leanexplore_declarations
/-- The [(Mahler-Popken) complexity of `n`](https://en.wikipedia.org/wiki/Integer_complexity): the minimum number of `1`s needed to express a given number using only addition and multiplication. E.g. `2 = 1 + 1`, so `complexity 2 = 2`. -/ def complexity (n : ℕ) : ℕ := if h : n = 0 then 0 else Nat.find ⟨n, Reachable.s...
791
leanexplore_declaration
leanexplore:384161
leanexplore_sqlite
leanexplore_declarations
instance Reachable.decide : ∀ m n, Decidable (Reachable m n) | 0, n => isFalse (not_reachable_zero_fst n) | 1, 0 => isFalse (not_reachable_zero_snd 1) | 1, n+1 => isTrue (Reachable.one.le (by omega)) | m+2, n => by let d : ∀ {m₁} (h : m₁ < m + 2) {n}, Decidable (Reachable m₁ n) := fun h ↦ Reachabl...
1,480
leanexplore_declaration
leanexplore:384162
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem reachable_iff_of_two_le (m n : ℕ) (hm : 2 ≤ m) : Reachable m n ↔ ∃ m₁, ∃ _ : m₁ < m, ∃ m₂, ∃ _ : m₂ < m, ∃ n₁, ∃ _ : n₁ < n, ∃ n₂, ∃ _ : n₂ < n, n₁ + n₂ = n ∧ Reachable m₁ n₁ ∧ Reachable m₂ n₂ ∧ (m₁ + m₂ = m ∨ m₁ * m₂ = m) := by refine ⟨fun hmn ↦ ?_, fun ⟨m₁, hm₁, m₂, hm₂, n...
203
leanexplore_declaration
leanexplore:384163
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.le {m n₁ n₂ : ℕ} (hn : n₁ ≤ n₂) (hm : Reachable m n₁) : Reachable m n₂ := by induction hn with | refl => exact hm | step h ih => convert ih.mul .one; simp
278
leanexplore_declaration
leanexplore:384164
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.dec {m n : ℕ} (h : Reachable m n) : ∃ m' n', m' + 1 = m ∧ n' + 1 = n := by obtain _ | m := m · exact absurd h (not_reachable_zero_fst _) obtain _ | n := n · exact absurd h (not_reachable_zero_snd _) exact ⟨_, _, rfl, rfl⟩
294
leanexplore_declaration
leanexplore:384165
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem not_reachable_zero_snd (m : ℕ) : ¬ Reachable m 0 := by intro h; generalize hn : 0 = n at h; induction h with | one => exact absurd hn (by decide) | add h₁ h₂ => rw [eq_comm, add_eq_zero] at hn; aesop | mul h₁ h₂ => rw [eq_comm, add_eq_zero] at hn; aesop
294
leanexplore_declaration
leanexplore:384166
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem not_reachable_zero_fst (n : ℕ) : ¬ Reachable 0 n := by intro h; generalize hm : 0 = m at h; induction h with | one => exact absurd hm (by decide) | add h₁ h₂ => rw [eq_comm, add_eq_zero] at hm; aesop | mul h₁ h₂ => rw [eq_comm, mul_eq_zero] at hm; aesop
144
leanexplore_declaration
leanexplore:384167
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem Reachable.self (n : ℕ) (hn : 0 < n) : Reachable n n := Nat.le_induction .one (fun _ _ ih ↦ .add ih .one) n hn
75
leanexplore_declaration
leanexplore:384168
leanexplore_sqlite
leanexplore_declarations
| mul {m n a b} : Reachable m a → Reachable n b → Reachable (m * n) (a + b)
75
leanexplore_declaration
leanexplore:384169
leanexplore_sqlite
leanexplore_declarations
| add {m n a b} : Reachable m a → Reachable n b → Reachable (m + n) (a + b)
291
leanexplore_declaration
leanexplore:384171
leanexplore_sqlite
leanexplore_declarations
/-- The inductively defined predicate that `m` is reachable in `n` steps. -/ inductive Reachable : ℕ → ℕ → Prop | one : Reachable 1 1 | add {m n a b} : Reachable m a → Reachable n b → Reachable (m + n) (a + b) | mul {m n a b} : Reachable m a → Reachable n b → Reachable (m * n) (a + b)
359
leanexplore_declaration
leanexplore:384172
leanexplore_sqlite
leanexplore_declarations
/-- It is conjectured that the only values of $n > 4$ for which the smooth version of the conjecture holds are $n = 5, 6, 12, 56, 61$. See Conjecture 1.17 in [Wang2017]. -/ @[category research open, AMS 54 57] theorem poincare_conjecture.variants.smooth_other_cases (n : ℕ) (hn : n > 4) (hn' : n ∉ SmoothTrueValues) ...
237
leanexplore_declaration
leanexplore:384173
leanexplore_sqlite
leanexplore_declarations
/-- The four dimensional case of the smooth version of the conjecture is still open. See [Wang2017]. -/ @[category research open, AMS 54 57] theorem poincare_conjecture.variants.smooth_dimension_four : SmoothConjectureFor 4 := by sorry
301
leanexplore_declaration
leanexplore:384174
leanexplore_sqlite
leanexplore_declarations
/-- The smooth version of the Poincaré conjecture is known to hold in dimensions $1, 2, 3, 5, 6, 12, 56, 61$. See [Wang2017]. -/ @[category research solved, AMS 54 57] theorem poincare_conjecture.variants.smooth_known_cases (n : ℕ) (hn : n ∈ SmoothTrueValues) : SmoothConjectureFor n := by sorry
141
leanexplore_declaration
leanexplore:384175
leanexplore_sqlite
leanexplore_declarations
/-- The values at which the smooth version of the conjecture is known to hold. -/ def SmoothTrueValues : Set ℕ := {1, 2, 3, 5, 6, 12, 56, 61}
327
leanexplore_declaration
leanexplore:384176
leanexplore_sqlite
leanexplore_declarations
/-- The smooth formulation of the Millenium Problem implies the general case. This follows from the fact that every topological 3-fold admits a smooth structure [mo296171]. -/ @[category graduate, AMS 54 57] theorem poincare_conjecture.variants.smooth_implication (H : SmoothConjectureFor 3) : ConjectureFor 3 := by ...
204
leanexplore_declaration
leanexplore:384177
leanexplore_sqlite
leanexplore_declarations
/-- A reformulation of the Millenium Problem in terms of smooth 3-folds. -/ @[category undergraduate, AMS 54 57] theorem poincare_conjecture.variants.smooth_for_three : SmoothConjectureFor 3 := by sorry
248
leanexplore_declaration
leanexplore:384178
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that the smooth Poincaré conjecture holds in dimension $n$. -/ def SmoothConjectureFor (n : ℕ) : Prop := ∀ (M : Type) [TopologicalSpace M] [ChartedSpace (ℝ^n) M] [IsManifold (𝓡 n) ∞ M], M ≃ₕ 𝕊ⁿ → Nonempty (M ≃ₘ⟮𝓡 n, 𝓡 n⟯ 𝕊ⁿ)
185
leanexplore_declaration
leanexplore:384179
leanexplore_sqlite
leanexplore_declarations
/-- The Generalized Poincaré Conjecture holds in dimension 4. -/ @[category undergraduate, AMS 54 57] theorem poincare_conjecture.variants.dimension_four : ConjectureFor 4 := by sorry
220
leanexplore_declaration
leanexplore:384180
leanexplore_sqlite
leanexplore_declarations
/-- The Generalized Poincaré Conjecture holds for dimensions at least 5. -/ @[category undergraduate, AMS 54 57] theorem poincare_conjecture.variants.dimension_ge_five (n : ℕ) (hn : 5 ≤ n) : ConjectureFor n := by sorry
182
leanexplore_declaration
leanexplore:384181
leanexplore_sqlite
leanexplore_declarations
/-- The Generalized Poincaré Conjecture holds for surfaces. -/ @[category undergraduate, AMS 54 57] theorem poincare_conjecture.variants.dimension_two : ConjectureFor 2 := by sorry
195
leanexplore_declaration
leanexplore:384182
leanexplore_sqlite
leanexplore_declarations
/-- The Millenium Problem, solved by Grigori Perelman in 2003: the Poincaré Conjecture holds. -/ @[category research solved, AMS 54 57] theorem poincare_conjecture : ConjectureFor 3 := by sorry
342
leanexplore_declaration
leanexplore:384183
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that the generalized Poincaré conjecture holds in dimension $n$, i.e. that any $n$-dimensional manifold that is homotopy equivalent to the sphere is in fact homeomorphic to the sphere. -/ def ConjectureFor (n : ℕ) : Prop := ∀ (M : Type) [TopologicalSpace M] [T2Space M] [ChartedSpace (ℝ^n) M], M ≃ₕ �...
221
leanexplore_declaration
leanexplore:384184
leanexplore_sqlite
leanexplore_declarations
/-- The theorem that P is a subset of coNP. -/ @[category undergraduate, AMS 68] theorem P_subset_coNP : P ⊆ coNP := by rw [coNP, ← coP_eq_P] simp only [Set.setOf_subset_setOf] intros L hL exact P_subset_NP hL
295
leanexplore_declaration
leanexplore:384185
leanexplore_sqlite
leanexplore_declarations
/-- The theorem that P is a subset of NP. This can be proven by observing that for any language in P, we can construct a verifier that ignores the witness and simply runs the poly-time decider for the language. -/ @[category undergraduate, AMS 68] theorem P_subset_NP : P ⊆ NP := by sorry
356
leanexplore_declaration
leanexplore:384186
leanexplore_sqlite
leanexplore_declarations
/-- The theorem that the set of complements of languages in P is itself P. This can be proven by observing that the boolean negation function is computable in polynomial time, and that compositions of poly-time computable functions are also poly-time computable. -/ @[category undergraduate, AMS 68] theorem coP_eq_P : ...
169
leanexplore_declaration
leanexplore:384187
leanexplore_sqlite
leanexplore_declarations
/-- **NP ≠ coNP**: The conjecture that the complexity classes NP and coNP are not equal. -/ @[category research open, AMS 68] theorem NP_ne_coNP : NP ≠ coNP := by sorry
157
leanexplore_declaration
leanexplore:384188
leanexplore_sqlite
leanexplore_declarations
/-- **P ≠ NP**: The conjecture that the complexity classes P and NP are not equal. -/ @[category research open, AMS 68] theorem P_ne_NP : P ≠ NP := by sorry
130
leanexplore_declaration
leanexplore:384189
leanexplore_sqlite
leanexplore_declarations
/-- The class coNP is the set of decision problems whose complements are in NP. -/ def coNP : ComplexityClass := { L | Lᶜ ∈ NP }
565
leanexplore_declaration
leanexplore:384190
leanexplore_sqlite
leanexplore_declarations
/-- The class NP is the set of decision problems such that there exists a polynomial `p` over ℕ and a poly-time Turing machine where for all `x`, `L x = true` iff there exists a `w` of length at most `p (|x|)` such that the Turing machine accepts the pair `(x,w)`. See Definition 2.1 in Arora-Barak (2009). -/ def NP : ...
216
leanexplore_declaration
leanexplore:384191
leanexplore_sqlite
leanexplore_declarations
/-- The class P is the set of decision problems decidable in polynomial time by a deterministic Turing machine. -/ def P : ComplexityClass := { L | IsComputableInPolyTime finEncodingListBool finEncodingBoolBool L }
239
leanexplore_declaration
leanexplore:384192
leanexplore_sqlite
leanexplore_declarations
/-- A simple definition to abstract the notion of a poly-time Turing machine into a predicate. -/ def IsComputableInPolyTime {α β : Type} (ea : FinEncoding α) (eb : FinEncoding β) (f : α → β) := Nonempty (TM2ComputableInPolyTime ea eb f)