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 |
|---|---|---|---|---|---|
288 | leanexplore_declaration | leanexplore:384710 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 10$ and $D = 7$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem10_no_solution_d7 :
answer(sorry) ↔
¬ ∃ W : WeightsN 10 7 ℂ, EqSystemN 10 7 W := by
sorry |
288 | leanexplore_declaration | leanexplore:384711 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 10$ and $D = 6$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem10_no_solution_d6 :
answer(sorry) ↔
¬ ∃ W : WeightsN 10 6 ℂ, EqSystemN 10 6 W := by
sorry |
288 | leanexplore_declaration | leanexplore:384712 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 10$ and $D = 5$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem10_no_solution_d5 :
answer(sorry) ↔
¬ ∃ W : WeightsN 10 5 ℂ, EqSystemN 10 5 W := by
sorry |
288 | leanexplore_declaration | leanexplore:384713 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 10$ and $D = 4$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem10_no_solution_d4 :
answer(sorry) ↔
¬ ∃ W : WeightsN 10 4 ℂ, EqSystemN 10 4 W := by
sorry |
288 | leanexplore_declaration | leanexplore:384714 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 10$ and $D = 3$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem10_no_solution_d3 :
answer(sorry) ↔
¬ ∃ W : WeightsN 10 3 ℂ, EqSystemN 10 3 W := by
sorry |
288 | leanexplore_declaration | leanexplore:384715 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 8$ and $D = 10$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem8_no_solution_d10 :
answer(sorry) ↔
¬ ∃ W : WeightsN 8 10 ℂ, EqSystemN 8 10 W := by
sorry |
284 | leanexplore_declaration | leanexplore:384716 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 8$ and $D = 3$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem8_no_solution_d3 :
answer(sorry) ↔
¬ ∃ W : WeightsN 8 3 ℂ, EqSystemN 8 3 W := by
sorry |
319 | leanexplore_declaration | leanexplore:384717 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 6$ and all $D \geq 3$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem6_no_solution_ge3 :
answer(sorry) ↔
∀ D : Nat, D ≥ 3 →
¬ ∃ W : WeightsN 6 D ℂ, EqSystemN 6 D W := by
sorry |
284 | leanexplore_declaration | leanexplore:384718 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 6$ and $D = 6$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem6_no_solution_d6 :
answer(sorry) ↔
¬ ∃ W : WeightsN 6 6 ℂ, EqSystemN 6 6 W := by
sorry |
284 | leanexplore_declaration | leanexplore:384719 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 6$ and $D = 5$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem6_no_solution_d5 :
answer(sorry) ↔
¬ ∃ W : WeightsN 6 5 ℂ, EqSystemN 6 5 W := by
sorry |
284 | leanexplore_declaration | leanexplore:384720 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 6$ and $D = 4$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem6_no_solution_d4 :
answer(sorry) ↔
¬ ∃ W : WeightsN 6 4 ℂ, EqSystemN 6 4 W := by
sorry |
284 | leanexplore_declaration | leanexplore:384721 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 6$ and $D = 3$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem6_no_solution_d3 :
answer(sorry) ↔
¬ ∃ W : WeightsN 6 3 ℂ, EqSystemN 6 3 W := by
sorry |
319 | leanexplore_declaration | leanexplore:384722 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 4$ and all $D \geq 4$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem4_no_solution_ge4 :
answer(sorry) ↔
∀ D : Nat, D ≥ 4 →
¬ ∃ W : WeightsN 4 D ℂ, EqSystemN 4 D W := by
sorry |
284 | leanexplore_declaration | leanexplore:384723 | leanexplore_sqlite | leanexplore_declarations | /-- For $N = 4$ and $D = 4$, does there exist no solution to the monochromatic quantum graph
equation system over $\mathbb{C}$? -/
@[category research open, AMS 5 14 81]
theorem eqSystem4_no_solution_d4 :
answer(sorry) ↔
¬ ∃ W : WeightsN 4 4 ℂ, EqSystemN 4 4 W := by
sorry |
307 | leanexplore_declaration | leanexplore:384724 | leanexplore_sqlite | leanexplore_declarations | /-- Bogdanov: for all even $N \geq 6$ and $D \geq 3$, no solution exists over $\mathbb{R}_{\geq 0}$. -/
@[category research solved, AMS 5 14 81]
theorem eqSystem_no_solution_nnreal_even_ge6_ge3 :
∀ N D : Nat,
N ≥ 6 → Even N → D ≥ 3 →
¬ ∃ W : WeightsN N D ℝ≥0, EqSystemN N D W := by
sorry |
264 | leanexplore_declaration | leanexplore:384725 | leanexplore_sqlite | leanexplore_declarations | /-- Bogdanov: for $N = 4$ and all $D \geq 4$, no solution exists over $\mathbb{R}_{\geq 0}$. -/
@[category research solved, AMS 5 14 81]
theorem eqSystem4_no_solution_nnreal_ge4 :
∀ D : Nat, D ≥ 4 →
¬ ∃ W : WeightsN 4 D ℝ≥0, EqSystemN 4 D W := by
sorry |
741 | leanexplore_declaration | leanexplore:384726 | leanexplore_sqlite | leanexplore_declarations | @[category test, AMS 5 14 81]
theorem eqSystem6_has_solution_d2 :
∃ W : WeightsN 6 2 α, EqSystemN 6 2 W := by
classical
refine ⟨Witness6_d2 (α := α), ?_⟩
intro ι
have h :
∀ a b c d e f : Fin 2,
pmSumN 6 2 (W := Witness6_d2 (α := α)) ![a, b, c, d, e, f] =
(if allEqual ![a, b, c, d, e... |
322 | leanexplore_declaration | leanexplore:384727 | leanexplore_sqlite | leanexplore_declarations | def Witness6_d2 : WeightsN 6 2 α :=
fun e =>
if e = mkEdge 0 1 0 0 then (1 : α) else
if e = mkEdge 2 3 0 0 then (1 : α) else
if e = mkEdge 4 5 0 0 then (1 : α) else
if e = mkEdge 0 5 1 1 then (1 : α) else
if e = mkEdge 1 2 1 1 then (1 : α) else
if e = mkEdge 3 4 1 1 then (1 : α) else
(0 : ... |
645 | leanexplore_declaration | leanexplore:384728 | leanexplore_sqlite | leanexplore_declarations | @[category test, AMS 5 14 81]
theorem eqSystem4_has_solution_d3 :
∃ W : WeightsN 4 3 ℂ, EqSystemN 4 3 W := by
classical
refine ⟨Witness4_d3, ?_⟩
intro ι
have h :
∀ a b c d : Fin 3,
pmSumN 4 3 (W := Witness4_d3) ![a, b, c, d] =
(if allEqual ![a, b, c, d] then (1 : ℂ) else (0 : ℂ)) :=... |
322 | leanexplore_declaration | leanexplore:384729 | leanexplore_sqlite | leanexplore_declarations | def Witness4_d3 : WeightsN 4 3 ℂ :=
fun e =>
if e = mkEdge 0 1 0 0 then (1 : ℂ) else
if e = mkEdge 2 3 0 0 then (1 : ℂ) else
if e = mkEdge 0 2 1 1 then (1 : ℂ) else
if e = mkEdge 1 3 1 1 then (1 : ℂ) else
if e = mkEdge 0 3 2 2 then (1 : ℂ) else
if e = mkEdge 1 2 2 2 then (1 : ℂ) else
(0 : ... |
663 | leanexplore_declaration | leanexplore:384730 | leanexplore_sqlite | leanexplore_declarations | @[category test, AMS 5 14 81]
theorem eqSystem4_has_solution_d2 :
∃ W : WeightsN 4 2 α, EqSystemN 4 2 W := by
classical
refine ⟨Witness4_d2 (α := α), ?_⟩
intro ι
have h :
∀ a b c d : Fin 2,
pmSumN 4 2 (W := Witness4_d2 (α := α)) ![a, b, c, d] =
(if allEqual ![a, b, c, d] then (1 : α... |
234 | leanexplore_declaration | leanexplore:384731 | leanexplore_sqlite | leanexplore_declarations | def Witness4_d2 : WeightsN 4 2 α :=
fun e =>
if e = mkEdge 0 1 0 0 then (1 : α) else
if e = mkEdge 2 3 0 0 then (1 : α) else
if e = mkEdge 0 2 1 1 then (1 : α) else
if e = mkEdge 1 3 1 1 then (1 : α) else
(0 : α) |
429 | leanexplore_declaration | leanexplore:384732 | leanexplore_sqlite | leanexplore_declarations | /-- The monochromatic quantum graph equation system for $K_N$.
For every index assignment $\iota : V_N \to \mathrm{Fin}\, D$, the perfect-matching sum equals $1$
if $\iota$ is constant (monochromatic inherited vertex colouring), and equals $0$ otherwise. -/
def EqSystemN {α : Type} [Semiring α] (N D : Nat) (W : Weight... |
220 | leanexplore_declaration | leanexplore:384733 | leanexplore_sqlite | leanexplore_declarations | /-- The perfect-matching sum for $K_N$: use the canonical ordered vertex list `vertices N`. -/
def pmSumN {α : Type} [Semiring α] (N D : Nat)
(W : WeightsN N D α) (ι : V N → Fin D) : α :=
pmSumList W ι (vertices N) |
228 | leanexplore_declaration | leanexplore:384734 | leanexplore_sqlite | leanexplore_declarations | /-- Perfect-matching sum on a list: run `pmSumListAux` with `fuel = L.length`. -/
def pmSumList {α : Type} [Semiring α] {N D : Nat}
(W : WeightsN N D α) (ι : V N → Fin D) (L : List (V N)) : α :=
pmSumListAux W ι L.length L |
740 | leanexplore_declaration | leanexplore:384735 | leanexplore_sqlite | leanexplore_declarations | /-- Auxiliary perfect-matching sum on a vertex list, using a fuel parameter `n` for termination.
When called as `pmSumListAux W ι L.length L`, this computes the weighted sum over all perfect
matchings on the vertices in `L`. The recursion pairs the head vertex with each later vertex and
recurses on the remaining verti... |
148 | leanexplore_declaration | leanexplore:384736 | leanexplore_sqlite | leanexplore_declarations | /-- Instance: `allEqual ι` is decidable. -/
instance {N D : Nat} (ι : V N → Fin D) : Decidable (allEqual ι) := by
unfold allEqual
infer_instance |
264 | leanexplore_declaration | leanexplore:384737 | leanexplore_sqlite | leanexplore_declarations | /-- Instance: `allEqualList ι L` is decidable. -/
instance {N D : Nat} (ι : V N → Fin D) (L : List (V N)) :
Decidable (allEqualList ι L) := by
letI : DecidableRel (fun v w : V N => ι v = ι w) := fun v w => inferInstance
unfold allEqualList
infer_instance |
161 | leanexplore_declaration | leanexplore:384738 | leanexplore_sqlite | leanexplore_declarations | /-- All indices equal on `Fin N` (using the canonical ordered vertex list). -/
def allEqual {N D : Nat} (ι : V N → Fin D) : Prop :=
allEqualList ι (vertices N) |
161 | leanexplore_declaration | leanexplore:384739 | leanexplore_sqlite | leanexplore_declarations | /-- Chain-equality along a list of vertices. -/
def allEqualList {N D : Nat} (ι : V N → Fin D) (L : List (V N)) : Prop :=
List.IsChain (fun v w => ι v = ι w) L |
165 | leanexplore_declaration | leanexplore:384740 | leanexplore_sqlite | leanexplore_declarations | /-- Ordered vertex list $[0, 1, \ldots, N-1]$. -/
def vertices : (N : Nat) → List (V N)
| 0 => []
| N + 1 =>
(0 : Fin (N + 1)) :: (vertices N).map Fin.succ |
147 | leanexplore_declaration | leanexplore:384741 | leanexplore_sqlite | leanexplore_declarations | /-- Helper: build an `EdgeN` from endpoints and endpoint indices. -/
def mkEdge {N D : Nat} (u v : V N) (i j : Fin D) : EdgeN N D :=
⟨u, v, i, j⟩ |
80 | leanexplore_declaration | leanexplore:384742 | leanexplore_sqlite | leanexplore_declarations | /-- Weights on edges. -/
abbrev WeightsN (N D : Nat) (α : Type) := EdgeN N D → α |
340 | leanexplore_declaration | leanexplore:384749 | leanexplore_sqlite | leanexplore_declarations | /-- Edge label for $K_N$ with endpoint indices in `Fin D`.
We *intend* to build edges only with `u < v` (so undirected edges are represented once),
and our enumeration always pairs the first vertex in an ordered list with a later vertex.
-/
structure EdgeN (N D : Nat) where
u : V N
v : V N
i : Fin D
j : Fin D
... |
53 | leanexplore_declaration | leanexplore:384750 | leanexplore_sqlite | leanexplore_declarations | /-- Vertices of $K_N$. -/
abbrev V (N : Nat) := Fin N |
509 | leanexplore_declaration | leanexplore:384751 | leanexplore_sqlite | leanexplore_declarations | /-- For any `k ≥ 2`, let `a₁,...,aₖ` and `b₁,...,bₖ` be integers with `aᵢ > 0`. Suppose that for
every prime `p` there exists an integer `n` such that `p ∤ ∏ i, (aᵢ n + bᵢ)`. Then there exist
infinitely many `n` such that `aᵢ n + bᵢ` is prime for all `i`. -/
@[category research open, AMS 11]
theorem prime_tuples_conjec... |
252 | leanexplore_declaration | leanexplore:384752 | leanexplore_sqlite | leanexplore_declarations | /--
The simplest open case is when $\Delta(G) = 6$ and $\omega(G) = 2$.
-/
@[category research open, AMS 5]
theorem reed_conjecture_Δ_6_ω_2 :
∀ {V : Type} (G : SimpleGraph V), G.emaxDegree = 6 ∧ G.cliqueNum = 2 → G.chromaticNumber ≤ 5 := by
sorry |
597 | leanexplore_declaration | leanexplore:384753 | leanexplore_sqlite | leanexplore_declarations | /--
For a finite graph $G$, we define $\Delta(G)$ to be the maximum degree, $\omega(G)$ to be the
size of the largest clique subgraph, and $\chi(G)$ to be the chromatic number. Reed's omega,
delta, and chi conjecture states that $$\chi(G) \leq \lceil \frac{1}{2}(\omega(G) + \Delta(G) + 1) \rceil.$$
-/
@[category resear... |
525 | leanexplore_declaration | leanexplore:384754 | leanexplore_sqlite | leanexplore_declarations | /--
For a graph $G$, we define $\Delta(G)$ to be the maximum degree, $\omega(G)$ to be the size of the
largest clique subgraph, and $\chi(G)$ to be the chromatic number. Reed's omega, delta, and chi
conjecture states that $$\chi(G) \leq \lceil \frac{1}{2}(\omega(G) + \Delta(G) + 1) \rceil.$$
-/
@[category research open... |
305 | leanexplore_declaration | leanexplore:384755 | leanexplore_sqlite | leanexplore_declarations | /--
Does the Rupert property hold for every convex polyhedron with nonempty interior?
-/
@[category research open, AMS 52]
theorem is_every_convex_polyhedron_rupert :
answer(sorry) ↔ ∀ (vertices : Finset ℝ³),
(interior (convexHull ℝ vertices : Set ℝ³)).Nonempty → IsRupert vertices := by
sorry |
1,185 | leanexplore_declaration | leanexplore:384756 | leanexplore_sqlite | leanexplore_declarations | /--
A convex polyhedron (given as a finite collection of vertices) is Rupert if
there are two rotations in ℝ³ (called "inner" and "outer") and a translation in ℝ²
such that the "inner shadow" (the projection to ℝ² of the inner rotation applied
to the polyhedron, then translated) fits in the interior of the "outer shado... |
244 | leanexplore_declaration | leanexplore:384757 | leanexplore_sqlite | leanexplore_declarations | /--
The result of transforming a subset of ℝ³ by a chosen rotation and offset,
and then projected to ℝ².
--/
def transformed_shadow (X : Set ℝ³) (offset : ℝ²) (rotation : SO3) : Set ℝ² :=
(fun p ↦ offset + (rotation *ᵥ p) ∘ Fin.castSucc) '' X |
53 | leanexplore_declaration | leanexplore:384760 | leanexplore_sqlite | leanexplore_declarations | abbrev SO3 := Matrix.specialOrthogonalGroup (Fin 3) ℝ |
414 | leanexplore_declaration | leanexplore:384761 | leanexplore_sqlite | leanexplore_declarations | /-- Assuming `n` is a multiple of 4, the block sensitivity of `nisanExample`
is `3n/4`, achieved by any `x` with Hamming weight `n/2`.
An optimal block configuration uses all `n/2` 1-bits as singleton blocks
and forms `n/4` disjoint size-2 blocks from the 0-bits. -/
@[category test, AMS 68]
lemma nisanExample_blockSens... |
264 | leanexplore_declaration | leanexplore:384762 | leanexplore_sqlite | leanexplore_declarations | /-- Assuming `n` is a multiple of 4, the sensitivity of `nisanExample`
is `n/2`, achieved by any `x` with Hamming weight `n/2`. -/
@[category test, AMS 68]
lemma nisanExample_sensitivity (n : ℕ) (hn : 4 ∣ n) :
sensitivity (nisanExample n) = n / 2 := by
sorry |
549 | leanexplore_declaration | leanexplore:384763 | leanexplore_sqlite | leanexplore_declarations | /-- Simple test example,
A Boolean function whose block sensitivity is strictly greater than
its sensitivity. Source: [Nisan1989](https://dl.acm.org/doi/10.1145/73007.73038).
`nisanExample(x) = 1` iff the Hamming weight of `x` is either
`n/2` or `n/2 + 1`. We assume `n` is a multiple of 4.
The function is symmetric, s... |
568 | leanexplore_declaration | leanexplore:384764 | leanexplore_sqlite | leanexplore_declarations | /-- Strong Sensitivity Conjecture,
for every Boolean function `f : {0,1}^n → {0,1}`,
`bs(f) ≤ s(f)^2`.
We call this the *strong* sensitivity conjecture because the original sensitivity
conjecture only asked for a polynomial bound in terms of `s(f)`. Huang's
celebrated result (often called the sensitivity theorem) give... |
193 | leanexplore_declaration | leanexplore:384765 | leanexplore_sqlite | leanexplore_declarations | /-- Global block sensitivity of `f`,
maximum block sensitivity of `f` over all inputs. -/
noncomputable def blockSensitivity (f : (Fin n → Bool) → Bool) : ℕ :=
univ.sup (blockSensitivityAt f) |
256 | leanexplore_declaration | leanexplore:384766 | leanexplore_sqlite | leanexplore_declarations | /-- Local block sensitivity bs(f,x),
maximum size of a collection of sensitive, disjoint blocks for `f` at `x`. -/
noncomputable def blockSensitivityAt (f : (Fin n → Bool) → Bool) (x : Fin n → Bool) : ℕ :=
Finset.sup {cB | IsValidBlockConfig f x cB} card |
383 | leanexplore_declaration | leanexplore:384767 | leanexplore_sqlite | leanexplore_declarations | /-- Check validity of block collection (disjoint and sensitive),
A collection of blocks `cB` is valid for `f` at `x` if the blocks are
disjoint and flipping any block changes `f(x)`. -/
def IsValidBlockConfig (f : (Fin n → Bool) → Bool) (x : Fin n → Bool)
(cB : Finset (Finset (Fin n))) : Prop :=
(cB : Set (Finset... |
155 | leanexplore_declaration | leanexplore:384768 | leanexplore_sqlite | leanexplore_declarations | /-- Global sensitivity s(f),
maximum sensitivity of `f` over all inputs. -/
def sensitivity (f : (Fin n → Bool) → Bool) : ℕ :=
univ.sup (sensitivityAt f) |
201 | leanexplore_declaration | leanexplore:384769 | leanexplore_sqlite | leanexplore_declarations | /-- Local sensitivity s(f,x),
number of indices where flipping one bit changes the value of `f`. -/
def sensitivityAt (f : (Fin n → Bool) → Bool) (x : Fin n → Bool) : ℕ :=
#{i | f (flip x {i}) ≠ f x} |
191 | leanexplore_declaration | leanexplore:384770 | leanexplore_sqlite | leanexplore_declarations | /-- Flip operator,
`flip x B` returns input `x` with bits in block `B` inverted. -/
def flip (x : Fin n → Bool) (B : Finset (Fin n)) : Fin n → Bool :=
fun i => if i ∈ B then !(x i) else x i |
259 | leanexplore_declaration | leanexplore:384771 | leanexplore_sqlite | leanexplore_declarations | /-- Under CH, such a space exists as constructed in [Ya1976] by Yakovlev. -/
@[category research solved, AMS 54]
theorem CH.existsWeaklyFirstCountableCompactNotFirstCountable [Fact (ℵ₁ = 𝔠)] :
ExistsWeaklyFirstCountableCompactNotFirstCountable := by sorry |
280 | leanexplore_declaration | leanexplore:384772 | leanexplore_sqlite | leanexplore_declarations | /-- Problem 4 in [Ar2013]: Give an example in ZFC of a weakly first-
countable compact space X which is not first countable. -/
@[category test, AMS 54]
theorem existsWeaklyFirstCountableCompactNotFirstCountable :
ExistsWeaklyFirstCountableCompactNotFirstCountable := by sorry |
316 | leanexplore_declaration | leanexplore:384773 | leanexplore_sqlite | leanexplore_declarations | /-- Problem 3 in [Ar2013]: Give an example in ZFC of a weakly first-
countable compact space which is not first countable. -/
def ExistsWeaklyFirstCountableCompactNotFirstCountable : Prop :=
∃ (X : Type) (_ : TopologicalSpace X), WeaklyFirstCountableTopology X ∧ CompactSpace X ∧
¬ FirstCountableTopology X |
333 | leanexplore_declaration | leanexplore:384774 | leanexplore_sqlite | leanexplore_declarations | /-- Problem 2 in [Ar2013]: Give an example in ZFC of a weakly first-
countable compact space X such that $𝔠 < |X|$. -/
@[category research open, AMS 54]
theorem existsWeaklyFirstCountableCompactBig : answer(sorry) ↔
∃ (X : Type) (_ : TopologicalSpace X),
WeaklyFirstCountableTopology X ∧ CompactSpace X ∧ 𝔠 <... |
1,001 | leanexplore_declaration | leanexplore:384775 | leanexplore_sqlite | leanexplore_declarations | /-- Every first countable space is weakly first countable,
simply take $N x$ as a countable neighborhood basis of $x$. -/
@[category test, AMS 54]
instance FirstCountableTopology.weaklyFirstCountableTopology (X : Type*) [TopologicalSpace X]
[FirstCountableTopology X] : WeaklyFirstCountableTopology X := by
have ha... |
364 | leanexplore_declaration | leanexplore:384776 | leanexplore_sqlite | leanexplore_declarations | /-- There are weakly first countable spaces which are not first countable,
for example the [Arens Space](https://topology.pi-base.org/spaces/S000156). -/
@[category undergraduate, AMS 54]
theorem exists_weakly_first_countable_not_first_countable : ∃ (X : Type) (_ : TopologicalSpace X),
WeaklyFirstCountableTopolog... |
99 | leanexplore_declaration | leanexplore:384777 | leanexplore_sqlite | leanexplore_declarations | nhds_countable_weak_basis : ∃ V : X → ℕ → Set X, (∀ (x : X), Antitone (V x) ∧ ∀ (n : ℕ), x ∈ V x n) |
510 | leanexplore_declaration | leanexplore:384778 | leanexplore_sqlite | leanexplore_declarations | /-- A topological space $X$ is called *weakly first countable* if there exists a function
$N : X → ℕ → Set X, such that:
* For all $x : X, n : ℕ$ we have $x ∈ V x n$
* For all $x : X, n : ℕ$: $V x (n + 1) ⊆ V x n$
* $O ⊆ X$ is open iff $∀ x ∈ O, ∃ n : ℕ, V x n ⊆ O$
-/
class WeaklyFirstCountableTopology (X : Type*) [To... |
117 | leanexplore_declaration | leanexplore:384779 | leanexplore_sqlite | leanexplore_declarations | /-- Indicates where the answer is in a problem statement. -/
syntax (name := Google.answer) "answer(" term ")" : term |
523 | leanexplore_declaration | leanexplore:384780 | leanexplore_sqlite | leanexplore_declarations | /-- Find answers by inspecting an `InfoTree` -/
partial def getAnswers {m} [Monad m] (i : InfoTree) : m (Array AnswerInfo) :=
go none i
where go : _ → InfoTree → _
| ctx?, context ctx t => go (ctx.mergeIntoOuter? ctx?) t
| some ctx, node i cs => do
let ctx := i.updateContext? ctx
if let .ofTermInfo t := i... |
309 | leanexplore_declaration | leanexplore:384781 | leanexplore_sqlite | leanexplore_declarations | /-- Print an answer -/
def AnswerInfo.format (a : AnswerInfo) : Elab.Term.TermElabM MessageData :=
Meta.withMCtx a.ctx.mctx <| Meta.withLCtx a.term.lctx {} do
let t ← Meta.inferType a.term.expr
let m ← Meta.mkFreshExprMVar t
addMessageContextFull m!"{a.term.expr} in context:{indentD m.mvarId!}" |
143 | leanexplore_declaration | leanexplore:384784 | leanexplore_sqlite | leanexplore_declarations | /-- An answer: a term, and the context in which it was elaborated -/
structure AnswerInfo where
ctx : Elab.ContextInfo
term : Elab.TermInfo |
1,427 | leanexplore_declaration | leanexplore:384785 | leanexplore_sqlite | leanexplore_declarations | /-- Indicates where the answer is in a problem statement. -/
@[term_elab answer]
def answerElab : TermElab := fun stx expectedType? => do
match stx with
| `(answer($a:term)) =>
match google.answer.get (← getOptions) with
| AnswerSetting.postpone => elabTermAndAnnotate a expectedType? true
| .withAuxili... |
258 | leanexplore_declaration | leanexplore:384786 | leanexplore_sqlite | leanexplore_declarations | def elabTermAndAnnotate (stx : TSyntax `term) (expectedType? : Option Expr)
(postpone : Bool := false) :=
mkAnswerAnnotation <$> do
if postpone then
postponeElabTerm (← `(by exact $stx)) expectedType?
else
elabTerm stx expectedType? |
66 | leanexplore_declaration | leanexplore:384787 | leanexplore_sqlite | leanexplore_declarations | def mkAnswerAnnotation (e : Expr) : Expr := mkAnnotation `answer e |
142 | leanexplore_declaration | leanexplore:384788 | leanexplore_sqlite | leanexplore_declarations | register_option google.answer : AnswerSetting := {
defValue := .alwaysTrue
descr := "Modifies the behaviour of the answer() elaborator."
} |
280 | leanexplore_declaration | leanexplore:384789 | leanexplore_sqlite | leanexplore_declarations | instance : KVMap.Value AnswerSetting where
toDataValue := DataValue.ofString ∘ ToString.toString
ofDataValue?
| .ofString "postpone" => some .postpone
| .ofString "with_auxiliary" => some .withAuxiliary
| .ofString "always_true" => some .alwaysTrue
| _ => none |
157 | leanexplore_declaration | leanexplore:384790 | leanexplore_sqlite | leanexplore_declarations | instance : ToString AnswerSetting where
toString
| .postpone => "postpone"
| .withAuxiliary => "with_auxiliary"
| .alwaysTrue => "always_true" |
102 | leanexplore_declaration | leanexplore:384796 | leanexplore_sqlite | leanexplore_declarations | /-- Elaborate `answer(foo)` by creating an auxiliary definition with value `foo`. -/
| withAuxiliary |
79 | leanexplore_declaration | leanexplore:384797 | leanexplore_sqlite | leanexplore_declarations | /-- Default mode for `answer(foo)`: just postpones elaboration. -/
| postpone |
99 | leanexplore_declaration | leanexplore:384798 | leanexplore_sqlite | leanexplore_declarations | /--Default mode: `answer(sorry)` defaults to `True` when `sorry` has type `Prop`. -/
| alwaysTrue |
423 | leanexplore_declaration | leanexplore:384799 | leanexplore_sqlite | leanexplore_declarations | /-- A type that captures the current setting for the `answer()` elaborator. -/
inductive AnswerSetting
/--Default mode: `answer(sorry)` defaults to `True` when `sorry` has type `Prop`. -/
| alwaysTrue
/-- Default mode for `answer(foo)`: just postpones elaboration. -/
| postpone
/-- Elaborate `answer(foo)` by ... |
436 | leanexplore_declaration | leanexplore:384800 | leanexplore_sqlite | leanexplore_declarations | /-- The `#AMS` outputs a list of the AMS Math Subjects and their correponding indices -/
elab "#AMS" : command => do
let env ← Lean.getEnv
let lines ← (List.range 97).filterMapM fun n => do
let nm : Name := Name.str ``AMS (ToString.toString n)
if ← Lean.hasConst nm then
if let some doc := ← Lean.findD... |
128 | leanexplore_declaration | leanexplore:384801 | leanexplore_sqlite | leanexplore_declarations | meta unsafe def numToAMSSubjects (n : Nat) : MetaM AMS := do
let nm ← numToAMSName n
Meta.evalExpr AMS q(AMS) (.const nm []) |
105 | leanexplore_declaration | leanexplore:384802 | leanexplore_sqlite | leanexplore_declarations | def AMS.toNat? (a : AMS) : Option Nat := do
let .const (.str _ m) [] := Lean.toExpr a | none
m.toNat? |
261 | leanexplore_declaration | leanexplore:384803 | leanexplore_sqlite | leanexplore_declarations | def AMS.getDesc (a : AMS) : CoreM String := do
let .const n [] := Lean.toExpr a | throwError "this shouldn't happen"
let .some doc := ← Lean.findDocString? (← getEnv) n | throwError m!"{.ofConstName n} is missing a docstring"
return doc.trimAscii.toString |
179 | leanexplore_declaration | leanexplore:384804 | leanexplore_sqlite | leanexplore_declarations | meta def numToAMSName (n : Nat) : MetaM Name := do
let nm : Name := Name.str ``AMS (ToString.toString n)
unless !(← Lean.hasConst nm) do return nm
throwError "Out of bounds" |
41 | leanexplore_declaration | leanexplore:384805 | leanexplore_sqlite | leanexplore_declarations | deriving Inhabited, BEq, Hashable, ToExpr |
55 | leanexplore_declaration | leanexplore:384813 | leanexplore_sqlite | leanexplore_declarations | /-- Information and communication, circuits -/
| «94» |
50 | leanexplore_declaration | leanexplore:384815 | leanexplore_sqlite | leanexplore_declarations | /-- Biology and other natural sciences -/
| «92» |
70 | leanexplore_declaration | leanexplore:384816 | leanexplore_sqlite | leanexplore_declarations | /-- Game theory, economics, social and behavioral sciences -/
| «91» |
61 | leanexplore_declaration | leanexplore:384817 | leanexplore_sqlite | leanexplore_declarations | /-- Operations research, mathematical programming -/
| «90» |
42 | leanexplore_declaration | leanexplore:384819 | leanexplore_sqlite | leanexplore_declarations | /-- Astronomy and astrophysics -/
| «85» |
51 | leanexplore_declaration | leanexplore:384820 | leanexplore_sqlite | leanexplore_declarations | /-- Relativity and gravitational theory -/
| «83» |
58 | leanexplore_declaration | leanexplore:384821 | leanexplore_sqlite | leanexplore_declarations | /-- Statistical mechanics, structure of matter -/
| «82» |
55 | leanexplore_declaration | leanexplore:384823 | leanexplore_sqlite | leanexplore_declarations | /-- Classical thermodynamics, heat transfer -/
| «80» |
46 | leanexplore_declaration | leanexplore:384824 | leanexplore_sqlite | leanexplore_declarations | /-- Optics, electromagnetic theory -/
| «78» |
46 | leanexplore_declaration | leanexplore:384826 | leanexplore_sqlite | leanexplore_declarations | /-- Mechanics of deformable solids -/
| «74» |
50 | leanexplore_declaration | leanexplore:384827 | leanexplore_sqlite | leanexplore_declarations | /-- Mechanics of particles and systems -/
| «70» |
59 | leanexplore_declaration | leanexplore:384831 | leanexplore_sqlite | leanexplore_declarations | /-- Probability theory and stochastic processes -/
| «60» |
54 | leanexplore_declaration | leanexplore:384832 | leanexplore_sqlite | leanexplore_declarations | /-- Global analysis, analysis on manifolds -/
| «58» |
44 | leanexplore_declaration | leanexplore:384833 | leanexplore_sqlite | leanexplore_declarations | /-- Manifolds and cell complexes -/
| «57» |
44 | leanexplore_declaration | leanexplore:384837 | leanexplore_sqlite | leanexplore_declarations | /-- Convex and discrete geometry -/
| «52» |
72 | leanexplore_declaration | leanexplore:384839 | leanexplore_sqlite | leanexplore_declarations | /-- Calculus of variations and optimal control; optimization -/
| «49» |
57 | leanexplore_declaration | leanexplore:384843 | leanexplore_sqlite | leanexplore_declarations | /-- Integral transforms, operational calculus -/
| «44» |
42 | leanexplore_declaration | leanexplore:384844 | leanexplore_sqlite | leanexplore_declarations | /-- Abstract harmonic analysis -/
| «43» |
53 | leanexplore_declaration | leanexplore:384845 | leanexplore_sqlite | leanexplore_declarations | /-- Harmonic analysis on Euclidean spaces -/
| «42» |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.