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
140
leanexplore_declaration
leanexplore:384493
leanexplore_sqlite
leanexplore_declarations
/-- The standard $d$-dimensional GHZ state on $3$ parties. -/ noncomputable abbrev ghzState (d : ℕ) : StateVector 3 d := diagonalState 3 d
127
leanexplore_declaration
leanexplore:384494
leanexplore_sqlite
leanexplore_declarations
/-- The standard $d$-dimensional Bell state. -/ noncomputable abbrev bellState (d : ℕ) : StateVector 2 d := diagonalState 2 d
323
leanexplore_declaration
leanexplore:384495
leanexplore_sqlite
leanexplore_declarations
/-- Evaluating the diagonal state returns the uniform coefficient on constant strings and `0` otherwise. -/ @[simp, category API, AMS 5 15 81 94] lemma diagonalState_apply {n d : ℕ} (x : Config n d) : diagonalState n d x = if IsConstantConfig x then uniformCoeff d else 0 := by rw [diagonalState, mkStateVector_app...
242
leanexplore_declaration
leanexplore:384496
leanexplore_sqlite
leanexplore_declarations
/-- The diagonal $n$-party state: the uniform superposition over constant computational-basis strings. -/ noncomputable def diagonalState (n d : ℕ) : StateVector n d := mkStateVector fun x => if IsConstantConfig x then uniformCoeff d else 0
283
leanexplore_declaration
leanexplore:384497
leanexplore_sqlite
leanexplore_declarations
/-- A simple binary two-party configuration with different entries is not constant. -/ @[category test, AMS 5 15 81 94] theorem not_isConstantConfig_example : ¬ IsConstantConfig (fun i : Fin 2 => if i = 0 then (0 : Fin 2) else 1) := by intro h have h01 := h 0 1 simp at h01
227
leanexplore_declaration
leanexplore:384498
leanexplore_sqlite
leanexplore_declarations
/-- Every constant configuration is constant. -/ @[category test, AMS 5 15 81 94] theorem isConstantConfig_constantConfig {m d : ℕ} (a : Fin d) : IsConstantConfig (constantConfig (m := m) (d := d) a) := by intro i j rfl
119
leanexplore_declaration
leanexplore:384499
leanexplore_sqlite
leanexplore_declarations
/-- The constant configuration with value $a$. -/ def constantConfig {m d : ℕ} (a : Fin d) : Config m d := fun _ => a
117
leanexplore_declaration
leanexplore:384500
leanexplore_sqlite
leanexplore_declarations
instance {n d : ℕ} : DecidablePred (@IsConstantConfig n d) := by intro x unfold IsConstantConfig infer_instance
137
leanexplore_declaration
leanexplore:384501
leanexplore_sqlite
leanexplore_declarations
/-- A configuration is constant if all coordinates agree. -/ def IsConstantConfig {n d : ℕ} (x : Config n d) : Prop := ∀ i j, x i = x j
134
leanexplore_declaration
leanexplore:384502
leanexplore_sqlite
leanexplore_declarations
/-- The common amplitude of the Bell and GHZ witnesses. -/ noncomputable def uniformCoeff (d : ℕ) : ℂ := (Real.sqrt ((d : ℝ)⁻¹) : ℂ)
389
leanexplore_declaration
leanexplore:384503
leanexplore_sqlite
leanexplore_declarations
/-- The matrix entries of the maximally mixed state are diagonal and equal to the inverse subsystem dimension. -/ @[category API, AMS 5 15 81 94] lemma maximallyMixed_apply {m d : ℕ} (x y : Config m d) : maximallyMixed m d x y = if x = y then ((Fintype.card (Config m d) : ℂ)⁻¹) else 0 := by by_cases h : x =...
227
leanexplore_declaration
leanexplore:384504
leanexplore_sqlite
leanexplore_declarations
/-- The number of computational-basis configurations on $m$ parties of local dimension $d$ is $d^m$. -/ @[simp, category API, AMS 5 15 81 94] lemma card_config (m d : ℕ) : Fintype.card (Config m d) = d ^ m := by simp [Config]
455
leanexplore_declaration
leanexplore:384505
leanexplore_sqlite
leanexplore_declarations
/-- No absolutely maximally entangled state exists in local dimension $0$ once $n \ge 1$. -/ @[category test, AMS 5 15 81 94] theorem not_existsAME_zero_dim {n : ℕ} (hn : 1 ≤ n) : ¬ ExistsAME n 0 := by rintro ⟨ψ, hψ⟩ let i0 : Fin n := ⟨0, hn⟩ letI : IsEmpty (Config n 0) := ⟨fun f => Fin.elim0 (f i0)⟩ have hzero...
134
leanexplore_declaration
leanexplore:384506
leanexplore_sqlite
leanexplore_declarations
/-- Existence of an $\mathrm{AME}(n,d)$ state. -/ def ExistsAME (n d : ℕ) : Prop := ∃ ψ : StateVector n d, IsAME (n := n) (d := d) ψ
848
leanexplore_declaration
leanexplore:384507
leanexplore_sqlite
leanexplore_declarations
/-- A state $\psi$ is absolutely maximally entangled. Standard AME definitions quantify over all subsets $A \subseteq \mathrm{Fin}\, n$ with $|A| \le \lfloor n/2 \rfloor$ and require that the reduction on $A$ be maximally mixed. For pure states it is enough to check subsets of size exactly $\lfloor n/2 \rfloor$; see t...
241
leanexplore_declaration
leanexplore:384508
leanexplore_sqlite
leanexplore_declarations
/-- A state has maximally mixed reduction on the first $m$ parties. -/ def HasMaximallyMixedFirstReduction {n d : ℕ} (m : ℕ) (hm : m ≤ n) (ψ : StateVector n d) : Prop := reducedDensityFirst (n := n) (d := d) m hm ψ = maximallyMixed m d
220
leanexplore_declaration
leanexplore:384509
leanexplore_sqlite
leanexplore_declarations
/-- The maximally mixed state on $m$ parties. -/ noncomputable def maximallyMixed (m d : ℕ) : Matrix (Config m d) (Config m d) ℂ := ((Fintype.card (Config m d) : ℂ)⁻¹) • (1 : Matrix (Config m d) (Config m d) ℂ)
481
leanexplore_declaration
leanexplore:384510
leanexplore_sqlite
leanexplore_declarations
/-- The reduced density matrix obtained by tracing out the last $n-m$ parties. The subsystem is always the first $m$ parties; different subsystems are handled by first permuting the parties. -/ noncomputable def reducedDensityFirst {n d : ℕ} (m : ℕ) (hm : m ≤ n) (ψ : StateVector n d) : Matrix (Config m d) (Config ...
393
leanexplore_declaration
leanexplore:384511
leanexplore_sqlite
leanexplore_declarations
/-- Combining and then restricting to the right block recovers the right input. -/ @[simp, category API, AMS 5 15 81 94] lemma combineFirst_rightIndex {n d m : ℕ} (hm : m ≤ n) (x : Config m d) (y : Config (n - m) d) (i : Fin (n - m)) : combineFirst (n := n) (d := d) m hm x y (rightIndex hm i) = y i := by have...
341
leanexplore_declaration
leanexplore:384512
leanexplore_sqlite
leanexplore_declarations
/-- Combining and then restricting to the left block recovers the left input. -/ @[simp, category API, AMS 5 15 81 94] lemma combineFirst_leftIndex {n d m : ℕ} (hm : m ≤ n) (x : Config m d) (y : Config (n - m) d) (i : Fin m) : combineFirst (n := n) (d := d) m hm x y (leftIndex hm i) = x i := by simp [combineF...
160
leanexplore_declaration
leanexplore:384513
leanexplore_sqlite
leanexplore_declarations
/-- The embedding of the last $n-m$ indices into $\mathrm{Fin}\, n$. -/ def rightIndex {m n : ℕ} (hm : m ≤ n) (i : Fin (n - m)) : Fin n := ⟨m + i.1, by omega⟩
161
leanexplore_declaration
leanexplore:384514
leanexplore_sqlite
leanexplore_declarations
/-- The embedding of the first $m$ indices into $\mathrm{Fin}\, n$. -/ def leftIndex {m n : ℕ} (hm : m ≤ n) (i : Fin m) : Fin n := ⟨i.1, lt_of_lt_of_le i.2 hm⟩
402
leanexplore_declaration
leanexplore:384515
leanexplore_sqlite
leanexplore_declarations
/-- Merge a configuration on the first $m$ parties and a configuration on the remaining $n-m$ parties into a configuration on all $n$ parties. -/ def combineFirst {n d : ℕ} (m : ℕ) (hm : m ≤ n) (x : Config m d) (y : Config (n - m) d) : Config n d := fun i => if hi : i.1 < m then x ⟨i.1, hi⟩ else ...
263
leanexplore_declaration
leanexplore:384516
leanexplore_sqlite
leanexplore_declarations
/-- The identity permutation leaves a state vector unchanged. -/ @[category test, AMS 5 15 81 94] theorem permuteState_refl {n d : ℕ} (ψ : StateVector n d) : permuteState (Equiv.refl (Fin n)) ψ = ψ := by ext x simp [permuteState_apply, permuteConfig_refl]
325
leanexplore_declaration
leanexplore:384517
leanexplore_sqlite
leanexplore_declarations
/-- Evaluating a permuted state vector reads the amplitude at the permuted configuration. -/ @[simp, category API, AMS 5 15 81 94] lemma permuteState_apply {n d : ℕ} (π : Equiv.Perm (Fin n)) (ψ : StateVector n d) (x : Config n d) : permuteState π ψ x = ψ (permuteConfig π x) := by rw [permuteState, mkStateVector_a...
187
leanexplore_declaration
leanexplore:384518
leanexplore_sqlite
leanexplore_declarations
/-- Permute the parties of a state vector. -/ def permuteState {n d : ℕ} (π : Equiv.Perm (Fin n)) (ψ : StateVector n d) : StateVector n d := mkStateVector fun x => ψ (permuteConfig π x)
236
leanexplore_declaration
leanexplore:384519
leanexplore_sqlite
leanexplore_declarations
/-- The identity permutation leaves a configuration unchanged. -/ @[category test, AMS 5 15 81 94] theorem permuteConfig_refl {n d : ℕ} (x : Config n d) : permuteConfig (Equiv.refl (Fin n)) x = x := by ext i simp [permuteConfig]
151
leanexplore_declaration
leanexplore:384520
leanexplore_sqlite
leanexplore_declarations
/-- Permute the parties of a configuration. -/ def permuteConfig {n d : ℕ} (π : Equiv.Perm (Fin n)) (x : Config n d) : Config n d := fun i => x (π i)
630
leanexplore_declaration
leanexplore:384521
leanexplore_sqlite
leanexplore_declarations
/-- A state is normalized iff its squared $L^2$ norm is $1$. -/ @[category API, AMS 5 15 81 94] lemma isNormalized_iff_norm_sq_eq_one {n d : ℕ} (ψ : StateVector n d) : IsNormalized ψ ↔ ‖ψ‖ ^ 2 = 1 := by constructor · intro h rw [IsNormalized] at h calc ‖ψ‖ ^ 2 = (1 : ℝ) ^ 2 := by rw [h] _ = ...
130
leanexplore_declaration
leanexplore:384522
leanexplore_sqlite
leanexplore_declarations
/-- A state vector is normalized if it has $L^2$ norm $1$. -/ def IsNormalized {n d : ℕ} (ψ : StateVector n d) : Prop := ‖ψ‖ = 1
226
leanexplore_declaration
leanexplore:384523
leanexplore_sqlite
leanexplore_declarations
/-- A state built from amplitudes has those amplitudes as its coordinates. -/ @[simp, category API, AMS 5 15 81 94] lemma mkStateVector_apply {n d : ℕ} (ψ : Config n d → ℂ) (x : Config n d) : mkStateVector ψ x = ψ x := rfl
196
leanexplore_declaration
leanexplore:384524
leanexplore_sqlite
leanexplore_declarations
/-- A state vector can be evaluated on a computational-basis configuration to read its amplitude. -/ instance {n d : ℕ} : CoeFun (StateVector n d) (fun _ => Config n d → ℂ) where coe ψ := ψ.ofLp
159
leanexplore_declaration
leanexplore:384525
leanexplore_sqlite
leanexplore_declarations
/-- Build a state vector from its computational-basis amplitudes. -/ abbrev mkStateVector {n d : ℕ} (ψ : Config n d → ℂ) : StateVector n d := WithLp.toLp 2 ψ
157
leanexplore_declaration
leanexplore:384526
leanexplore_sqlite
leanexplore_declarations
/-- A state vector in the computational basis, viewed as a finite-dimensional Hilbert space. -/ abbrev StateVector (n d : ℕ) := EuclideanSpace ℂ (Config n d)
124
leanexplore_declaration
leanexplore:384527
leanexplore_sqlite
leanexplore_declarations
/-- A computational-basis configuration of $n$ parties with local dimension $d$. -/ abbrev Config (n d : ℕ) := Fin n → Fin d
138
leanexplore_declaration
leanexplore:384528
leanexplore_sqlite
leanexplore_declarations
/-- What is the exact value of the constant? -/ @[category research open, AMS 05 11 26] theorem c1a_eq : C1a = answer(sorry) := by sorry
154
leanexplore_declaration
leanexplore:384529
leanexplore_sqlite
leanexplore_declarations
/-- How can the lower bound be improved? -/ @[category research open, AMS 05 11 26] theorem mem_Ioc_c1a : answer(sorry) ∈ Set.Ioc 1.2748 C1a := by sorry
154
leanexplore_declaration
leanexplore:384530
leanexplore_sqlite
leanexplore_declarations
/-- How can the upper bound be improved? -/ @[category research open, AMS 05 11 26] theorem mem_Ico_c1a : answer(sorry) ∈ Set.Ico C1a 1.5029 := by sorry
169
leanexplore_declaration
leanexplore:384531
leanexplore_sqlite
leanexplore_declarations
/-- The best known upper bound, proven by Yuksekgonul et al. in [Y2026] -/ @[category research solved, AMS 05 11 26] theorem c1a_upper_bound : C1a ≤ 1.5029 := by sorry
166
leanexplore_declaration
leanexplore:384532
leanexplore_sqlite
leanexplore_declarations
/-- The best known lower bound, proven by Matolcsi-Vinuesa in [M2010]-/ @[category research solved, AMS 05 11 26] theorem c1a_lower_bound : 1.2748 ≤ C1a := by sorry
458
leanexplore_declaration
leanexplore:384533
leanexplore_sqlite
leanexplore_declarations
/-- **Tao's Optimization constant 1a / An autocorrelation constant related to Sidon sets**: The biggest real number satisfying a certain inequality about (auto)convolutions and $L^2$-norms of functions. This number is related to the maximal size of Sidon sets in additive combinatorics. -/ noncomputable def C1a : ℝ := ...
1,650
leanexplore_declaration
leanexplore:384534
leanexplore_sqlite
leanexplore_declarations
/-- [BMO#5](https://wiki.bbchallenge.org/wiki/Beaver_Math_Olympiad#5._1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE_(bbch)) Let $(a_n)_{n \ge 1}$ and $(b_n)_{n \ge 1}$ be two sequences such that $(a_1, b_1) = (0, 5)$ and $$(a_{n+1}, b_{n+1}) = \begin{cases} (a_n+1, b_n-f(a_n)) & \text{if } b_n \ge f(a_n) \\ (a_n, 3b_n+a_...
1,634
leanexplore_declaration
leanexplore:384535
leanexplore_sqlite
leanexplore_declarations
/-- [BMO#4](https://wiki.bbchallenge.org/wiki/Beaver_Math_Olympiad#4._1RB3RB---1LB0LA_2LA4RA3LA4RB1LB_(bbch)) Bonnie the beaver was bored, so she tried to construct a sequence of integers $\{a_n\}_{n \ge 0}$. She first defined $a_0=2$, then defined $a_{n+1}$ depending on $a_n$ and $n$ using the following rules: * If ...
1,324
leanexplore_declaration
leanexplore:384536
leanexplore_sqlite
leanexplore_declarations
/-- [BMO#3][https://wiki.bbchallenge.org/wiki/Beaver_Math_Olympiad#3._1RB0RB3LA4LA2RA_2LB3RA---3RA4RB_(bbch)_and_1RB1RB3LA4LA2RA_2LB3RA---3RA4RB_(bbch)] Let $v_2(n)$ be the largest integer $k$ such that $2^k$ divides $n$. Let $(a_n)_{n \ge 0}$ be a sequence such that $$a_n = \begin{cases} 2 & \text{if } n=0 \\ a_{n-1...
560
leanexplore_declaration
leanexplore:384537
leanexplore_sqlite
leanexplore_declarations
/-- [BMO#2](https://wiki.bbchallenge.org/wiki/Beaver_Math_Olympiad#2._Hydra_and_Antihydra) formulation variant Alternative statement of beaver_math_olympiad_problem_2_antihydra using set size comparison instead of a recurrent sequence b. -/ @[category research open, AMS 5 11 68] theorem beaver_math_olympiad_problem_2_...
1,447
leanexplore_declaration
leanexplore:384538
leanexplore_sqlite
leanexplore_declarations
/-- [BMO#2](https://wiki.bbchallenge.org/wiki/Beaver_Math_Olympiad#2._Hydra_and_Antihydra) Antihydra is a sequence starting at 8, and iterating the function $$H(n) = \left\lfloor \frac {3n}2 \right\rfloor.$$ The conjecture states that the cumulative number of odd values in this sequence is never more than twice the cu...
1,487
leanexplore_declaration
leanexplore:384539
leanexplore_sqlite
leanexplore_declarations
/-- [BMO#1](https://wiki.bbchallenge.org/wiki/Beaver_Math_Olympiad#1._1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE_(bbch)) Let $(a_n)_{n \ge 1}$ and $(b_n)_{n \ge 1}$ be two sequences such that $(a_1, b_1) = (1, 2)$ and $$(a_{n+1}, b_{n+1}) = \begin{cases} (a_n-b_n, 4b_n+2) & \text{if }a_n \ge b_n \\ (2a_n+1, b_n-a_n) &...
259
leanexplore_declaration
leanexplore:384540
leanexplore_sqlite
leanexplore_declarations
/-- The negation of `Finite.Equation677_not_implies_Equation255`. Probably this is false. -/ @[category research open, AMS 8] theorem Finite.Equation677_implies_Equation255 (G : Type) [Magma G] [Finite G] (h : Equation677 G) : Equation255 G := by sorry
460
leanexplore_declaration
leanexplore:384541
leanexplore_sqlite
leanexplore_declarations
/-- The negation of `Finite.Equation677_implies_Equation255`. Probably this is true. It would be a stronger form of `Equation677_not_implies_Equation255`. Discussion thread here: https://leanprover.zulipchat.com/#narrow/channel/458659-Equational/topic/FINITE.3A.20677.20-.3E.20255 -/ @[category research open, AMS 8] t...
394
leanexplore_declaration
leanexplore:384542
leanexplore_sqlite
leanexplore_declarations
/-- Note that this is a stronger form of `Equation255_not_implies_Equation677`. -/ @[category research solved, AMS 8] theorem Finite.Equation255_not_implies_Equation677 : ∃ (G : Type) (_ : Magma G), Finite G ∧ Equation255 G ∧ ¬ Equation677 G := ⟨Fin 3, ⟨![![1, 2, 0], ![2, 0, 1], ![0, 1, 2]]⟩, Finite.intro (Fintyp...
158
leanexplore_declaration
leanexplore:384543
leanexplore_sqlite
leanexplore_declarations
@[category research solved, AMS 8] theorem Equation677_not_implies_Equation255 : ∃ (G : Type) (_ : Magma G), Equation677 G ∧ ¬ Equation255 G := by sorry
258
leanexplore_declaration
leanexplore:384544
leanexplore_sqlite
leanexplore_declarations
@[category research solved, AMS 8] theorem Equation255_not_implies_Equation677 : ∃ (G : Type) (_ : Magma G), Equation255 G ∧ ¬ Equation677 G := ⟨Fin 3, ⟨![![1, 2, 0], ![2, 0, 1], ![0, 1, 2]]⟩, fun x ↦ by fin_cases x <;> rfl, of_decide_eq_false rfl⟩
80
leanexplore_declaration
leanexplore:384545
leanexplore_sqlite
leanexplore_declarations
abbrev Equation677 (G: Type) [Magma G] := ∀ x y : G, x = y ◇ (x ◇ ((y ◇ x) ◇ y))
72
leanexplore_declaration
leanexplore:384546
leanexplore_sqlite
leanexplore_declarations
abbrev Equation255 (G: Type) [Magma G] := ∀ x : G, x = ((x ◇ x) ◇ x) ◇ x
45
leanexplore_declaration
leanexplore:384549
leanexplore_sqlite
leanexplore_declarations
class Magma (α : Type) where op : α → α → α
678
leanexplore_declaration
leanexplore:384550
leanexplore_sqlite
leanexplore_declarations
/-- **Schur's Theorem (1924):** Let `f_n(x) = ∑_{j=0}^n x^j/j!` be the `n`-th truncated exponential polynomial over `ℚ`. Then for `n ≥ 2`: - If `n ≡ 0 (mod 4)`, the Galois group of `f_n` is isomorphic to the alternating group `A_n` - If `n ≢ 0 (mod 4)`, the Galois group of `f_n` is isomorphic to the symmetric group `S...
295
leanexplore_declaration
leanexplore:384551
leanexplore_sqlite
leanexplore_declarations
/-- The truncated exponential polynomial `truncatedExp n` is given by `∑_{j=0}^{n} x^j / j!` over `ℚ`, which is the `n`-th partial sum of the Taylor series for the exponential function `e^x`. -/ noncomputable def truncatedExp (n : ℕ) : ℚ[X] := ∑ j ∈ Finset.range (n + 1), (1 / j ! : ℚ) • X ^ j
296
leanexplore_declaration
leanexplore:384552
leanexplore_sqlite
leanexplore_declarations
/-- If $n \ge 2$, every convex set in $\mathbb R^{n + 1}$ has $\mathrm{VC}_n$ dimension at most 1. -/ @[category research open, AMS 5 52] lemma hasAddVCNDimAtMost_n_one_of_convex_rn_add_one {n : ℕ} (hn : 2 ≤ n) {C : Set (Fin (n + 1) → ℝ)} (hC : Convex ℝ C) : HasAddVCNDimAtMost C n 1 := sorry
325
leanexplore_declaration
leanexplore:384553
leanexplore_sqlite
leanexplore_declarations
/-- For every $n$ there exists some $d$ such that every convex set in $\mathbb R^{n + 1}$ has $\mathrm{VC}_n$ dimension at most $d$. -/ @[category research open, AMS 5 52] lemma exists_hasAddVCNDimAtMost_n_of_convex_rn_add_one (n : ℕ) : ∃ d : ℕ, ∀ C : Set (Fin (n + 1) → ℝ), Convex ℝ C → HasAddVCNDimAtMost C n d := ...
234
leanexplore_declaration
leanexplore:384554
leanexplore_sqlite
leanexplore_declarations
/-- Every convex set in $\mathbb R^3$ has $\mathrm{VC}_2$ dimension at most 1. -/ @[category research open, AMS 5 52] lemma hasAddVCNDimAtMost_two_one_of_convex_r3 {C : Set ℝ³} (hC : Convex ℝ C) : HasAddVCNDimAtMost C 2 1 := sorry
288
leanexplore_declaration
leanexplore:384555
leanexplore_sqlite
leanexplore_declarations
/-- There exists a set of infinite $\mathrm{VC}_n$ dimension in $\mathbb R^{n + 2}$. -/ @[category research solved, AMS 5 52] lemma exists_convex_rn_add_two_vc_n_forall_not_hasAddVCNDimAtMost (n : ℕ) : ∃ C : Set (Fin (n + 2) → ℝ), Convex ℝ C ∧ ∀ d, ¬ HasAddVCNDimAtMost C n d := sorry
235
leanexplore_declaration
leanexplore:384556
leanexplore_sqlite
leanexplore_declarations
/-- There exists a set in $\mathbb R^3$ shattering an infinite set. -/ @[category research solved, AMS 5 52] lemma exists_infinite_convex_r3_shatters : ∃ A C : Set ℝ³, A.Infinite ∧ Convex ℝ C ∧ Shatters {t +ᵥ C | t : ℝ³} A := sorry
215
leanexplore_declaration
leanexplore:384557
leanexplore_sqlite
leanexplore_declarations
/-- Every convex set in $\mathbb R^2$ has VC dimension at most 3. -/ @[category research solved, AMS 5 52] lemma hasAddVCDimAtMost_three_of_convex_r2 {C : Set ℝ²} (hC : Convex ℝ C) : HasAddVCDimAtMost C 3 := sorry
280
leanexplore_declaration
leanexplore:384558
leanexplore_sqlite
leanexplore_declarations
/-- Is there a Lindelöf space with singletons as Gδ sets with cardinality greater than the continuum? -/ @[category research open, AMS 54] theorem HasGδSingletons.lindelof_card : ∃ (X : Type) (_ : TopologicalSpace X), HasGδSingletons X ∧ LindelofSpace X ∧ 𝔠 < #X := by sorry
811
leanexplore_declaration
leanexplore:384559
leanexplore_sqlite
leanexplore_declarations
/-- The Casas-Alvero conjecture fails in positive characteristic `p` for polynomials of degree `p + 1`. This was shown by Graf von Bothmer, Labs, Schicho, and van de Woestijne. Reference: [The Casas-Alvero conjecture for infinitely many degrees](https://arxiv.org/pdf/math/0605090) Formal proof linked here provided by...
489
leanexplore_declaration
leanexplore:384560
leanexplore_sqlite
leanexplore_declarations
/-- The Casas-Alvero conjecture holds for polynomials of degree `2p^k` where `p` is prime. This was proved by Graf von Bothmer, Labs, Schicho, and van de Woestijne. Reference: [The Casas-Alvero conjecture for infinitely many degrees](https://arxiv.org/pdf/math/0605090) -/ @[category research solved, AMS 12] theorem ca...
464
leanexplore_declaration
leanexplore:384561
leanexplore_sqlite
leanexplore_declarations
/-- The Casas-Alvero conjecture holds for polynomials of prime power degree. This was proved by Graf von Bothmer, Labs, Schicho, and van de Woestijne. Reference: [The Casas-Alvero conjecture for infinitely many degrees](https://arxiv.org/pdf/math/0605090) -/ @[category research solved, AMS 12] theorem casas_alvero.pri...
313
leanexplore_declaration
leanexplore:384562
leanexplore_sqlite
leanexplore_declarations
/-- The Casas-Alvero conjecture states that in characteristic zero, if a monic polynomial `P` has the Casas-Alvero property, then `P = (X - α)ᵈ` for some `α`. -/ @[category research open, AMS 12] theorem casas_alvero_conjecture (hP' : HasCasasAlveroProp P) : ∃ α : K, P = (X - C α) ^ P.natDegree := by sorry
1,295
leanexplore_declaration
leanexplore:384563
leanexplore_sqlite
leanexplore_declarations
/-- Note that whether we use `HasCasasAlveroProp` or `HasCasasAlveroPropᵣ` to state the Casas-Alvero conjecture, we obtain the following equivalent statements. -/ @[category API, AMS 12] lemma casas_alvero_iffᵣ : (∀ {K : Type u} [Field K] [CharZero K] (P : K[X]), P.Monic → HasCasasAlveroProp P → ∃ α : K, P = ...
343
leanexplore_declaration
leanexplore:384564
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 12] theorem hasCasasAlveroProp_iffᵣ {P : K[X]} [IsAlgClosed K] : HasCasasAlveroProp P ↔ HasCasasAlveroPropᵣ P := by refine ⟨?_, HasCasasAlveroPropᵣ.hasCasasAlveroProp⟩ simp_rw [HasCasasAlveroProp, HasCasasAlveroPropᵣ, isCoprime_iff_aeval_ne_zero_of_isAlgClosed K K, coe_aeval_eq_eval] p...
238
leanexplore_declaration
leanexplore:384565
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 12] theorem HasCasasAlveroProp.map_iff {P : K[X]} : HasCasasAlveroProp (P.map f) ↔ HasCasasAlveroProp P := by simp_rw [HasCasasAlveroProp] congr! · exact natDegree_map _ · rw [hasseDeriv_map, isCoprime_map]
315
leanexplore_declaration
leanexplore:384566
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 12] theorem HasCasasAlveroPropᵣ.hasCasasAlveroProp {P : K[X]} (hca : HasCasasAlveroPropᵣ P) : HasCasasAlveroProp P := by intro i hi coprime simp_rw [HasCasasAlveroPropᵣ, ← dvd_iff_isRoot] at hca have ⟨α, hα, hαi⟩ := hca i hi exact not_isUnit_X_sub_C _ (coprime.isUnit_of_dvd' hα hαi)
350
leanexplore_declaration
leanexplore:384567
leanexplore_sqlite
leanexplore_declarations
/-- A stronger version of the Casas-Alvero property, which requires that the polynomial `P` shares a root with each of its Hasse derivatives up to order `deg P - 1`. The subscript `r` indicates "root" in the definition. -/ def HasCasasAlveroPropᵣ (P : K[X]) : Prop := ∀ i ∈ Finset.range P.natDegree, ∃ α : K, IsRoot P...
276
leanexplore_declaration
leanexplore:384568
leanexplore_sqlite
leanexplore_declarations
/-- A polynomial `P` satisfies the Casas-Alvero property if it shares a factor with each of its Hasse derivatives up to order `d-1`, where `d` is the degree of `P`. -/ def HasCasasAlveroProp (P : K[X]) : Prop := ∀ i ∈ Finset.range P.natDegree, ¬ IsCoprime P (P.hasseDeriv i)
395
leanexplore_declaration
leanexplore:384569
leanexplore_sqlite
leanexplore_declarations
/-- Let \(T_N = \sum_{k=1}^{N} k = \frac{N(N+1)}{2}\). If \(T_N\) is even (equivalently \(N \equiv 0 \pmod 4\) or \(N \equiv 3 \pmod 4\)), then under optimal play the game `Catch-Up(\(\{1, \ldots, N\}\))` ends in a draw. -/ @[category research open, AMS 11 91] theorem value_of_even_mul_succ_self_div_two (N : ℕ) (h_...
256
leanexplore_declaration
leanexplore:384570
leanexplore_sqlite
leanexplore_declarations
/-- Public API: The game-theoretic value of Catch-Up on the set `S`, assuming optimal play. Returns `.win` if player 1 wins, `.loss` if player 2 wins, `.draw` if the game is tied. -/ noncomputable def value (S : Finset ℕ) : Outcome := valueAux S 0 0 true
3,549
leanexplore_declaration
leanexplore:384571
leanexplore_sqlite
leanexplore_declarations
/-- `value remaining s_me s_opp isFirstMove` evaluates the position where: * `remaining` is the set `S'` of numbers not yet taken. * `s_me` is the current score of the player who is about to act (the “current player”). * `s_opp` is the opponent’s current score. * `isFirstMove` indicates whether we are in the special v...
319
leanexplore_declaration
leanexplore:384572
leanexplore_sqlite
leanexplore_declarations
/-- Computes the best outcome for the current player from a list of possible outcomes. Win > Draw > Loss. -/ def Outcome.best (os : List Outcome) : Outcome := os.foldl (fun | .win, _ => .win | _, .win => .win | .draw, _ => .draw | _, .draw => .draw | _, _ => .loss) .loss
175
leanexplore_declaration
leanexplore:384573
leanexplore_sqlite
leanexplore_declarations
/-- Negates an outcome, swapping win and loss. Used when switching player perspectives. -/ def Outcome.neg : Outcome → Outcome | win => loss | loss => win | draw => draw
119
leanexplore_declaration
leanexplore:384580
leanexplore_sqlite
leanexplore_declarations
/-- The possible outcomes of a Catch-Up game. -/ inductive Outcome | win | loss | draw deriving DecidableEq, Repr
93
leanexplore_declaration
leanexplore:384581
leanexplore_sqlite
leanexplore_declarations
/-- Returns the other player. -/ def Player.other : Player → Player | p1 => p2 | p2 => p1
138
leanexplore_declaration
leanexplore:384587
leanexplore_sqlite
leanexplore_declarations
/-- An arbitrary two elements type indexing the players in the Catch-Up game. -/ inductive Player | p1 | p2 deriving DecidableEq, Repr
424
leanexplore_declaration
leanexplore:384588
leanexplore_sqlite
leanexplore_declarations
/-- If F is a decreasing family of sets of some finite type α, then there is some element x of α such that the family consisting of all members of F containing x is an intersecting subfamily of F with maximal cardinality. -/ @[category research open, AMS 5] theorem exists_maximal_star : ∀ F : Finset (Finset α), Dec...
175
leanexplore_declaration
leanexplore:384589
leanexplore_sqlite
leanexplore_declarations
/-- A family F of sets is Intersecting if each pair of members has nonempty intersection. -/ def Intersecting (F : Finset (Finset α)) : Prop := ∀ A ∈ F, ∀ B ∈ F, A ∩ B ≠ ∅
170
leanexplore_declaration
leanexplore:384590
leanexplore_sqlite
leanexplore_declarations
/-- A family F of sets is Decreasing if it is closed under taking subsets. -/ def Decreasing (F : Finset (Finset α)) : Prop := ∀ A B : Finset α, B ⊆ A → A ∈ F → B ∈ F
320
leanexplore_declaration
leanexplore:384591
leanexplore_sqlite
leanexplore_declarations
/-- For even `m > 2`, it is open whether the cube digraph on `(ZMod m)³` has a Hamiltonian arc decomposition. -/ @[category research open, AMS 5] theorem cube_hamiltonian_arc_decomposition_even : answer(sorry) ↔ ∀ᵉ (m : ℕ) (_ : NeZero m) (_ : Even m) (_ : 2 < m), HasHamiltonianArcDecomposition m := by sorry
272
leanexplore_declaration
leanexplore:384592
leanexplore_sqlite
leanexplore_declarations
/-- The case `m = 2` is impossible: the cube digraph on `(ZMod 2)³` does not have a Hamiltonian arc decomposition [Aub82]. -/ @[category research solved, AMS 5] theorem cube_hamiltonian_arc_decomposition_impossible_m2 : ¬ HasHamiltonianArcDecomposition 2 := by sorry
377
leanexplore_declaration
leanexplore:384593
leanexplore_sqlite
leanexplore_declarations
/-- For odd `m > 1`, the cube digraph on `(ZMod m)³` has a Hamiltonian arc decomposition into three directed cycles [Knu26]. -/ @[category research solved, AMS 5, formal_proof using lean4 at "https://github.com/kim-em/KnuthClaudeLean"] theorem cube_hamiltonian_arc_decomposition {m : ℕ} [NeZero m] (hm : Odd m) (hm' : 1 ...
487
leanexplore_declaration
leanexplore:384594
leanexplore_sqlite
leanexplore_declarations
/-- The arcs of the cube digraph on `(ZMod m)³` can be decomposed into three directed Hamiltonian cycles: there exist three permutations, each forming a directed Hamiltonian cycle, such that every arc `(v, bumpAt b v)` belongs to exactly one cycle. -/ def HasHamiltonianArcDecomposition (m : ℕ) [NeZero m] : Prop := ∃ ...
373
leanexplore_declaration
leanexplore:384595
leanexplore_sqlite
leanexplore_declarations
/-- A permutation `σ` on vertices is a directed Hamiltonian cycle of a digraph with adjacency `adj` if every arc `(v, σ v)` is an edge, `σ` is a single cycle, and `σ` moves every vertex. -/ def IsDirectedHamiltonianCycle {V : Type*} [Fintype V] [DecidableEq V] (adj : V → V → Prop) (σ : Equiv.Perm V) : Prop := (∀ ...
203
leanexplore_declaration
leanexplore:384596
leanexplore_sqlite
leanexplore_declarations
/-- Adjacency in the cube digraph: `u` is adjacent to `v` if `v` is obtained from `u` by bumping one coordinate. -/ def cubeAdj {m : ℕ} [NeZero m] (u v : Vertex m) : Prop := ∃ b : Fin 3, bumpAt b u = v
175
leanexplore_declaration
leanexplore:384597
leanexplore_sqlite
leanexplore_declarations
/-- Bump coordinate `b` of vertex `v`: add 1 to the `b`-th component. -/ def bumpAt {m : ℕ} [NeZero m] (b : Fin 3) (v : Vertex m) : Vertex m := Function.update v b (v b + 1)
87
leanexplore_declaration
leanexplore:384598
leanexplore_sqlite
leanexplore_declarations
/-- The vertex type: vectors in `(ZMod m)³`. -/ abbrev Vertex (m : ℕ) := Fin 3 → ZMod m
77
leanexplore_declaration
leanexplore:384599
leanexplore_sqlite
leanexplore_declarations
@[category research solved, AMS 5] theorem F_four_le : F 4 ≤ 19 := by sorry
74
leanexplore_declaration
leanexplore:384600
leanexplore_sqlite
leanexplore_declarations
@[category research solved, AMS 5] theorem F_three : F 3 = 7 := by sorry
328
leanexplore_declaration
leanexplore:384601
leanexplore_sqlite
leanexplore_declarations
/-- `F n` is the smallest number of vertices of a triangle-free graph with chromatic number `n` and `f = 3`. -/ @[category research solved, AMS 5] noncomputable def F (n : ℕ) : ℕ := sInf { p | ∃ (G : SimpleGraph (Fin p)) (_ : DecidableRel G.Adj), G.CliqueFree 3 ∧ G.chromaticNumber = n ∧ degreeSequenceMultiplicity...
396
leanexplore_declaration
leanexplore:384602
leanexplore_sqlite
leanexplore_declarations
/-- **Theorem 2.** Every triangle-free graph is an induced subgraph of one with `f = 3`. -/ @[category research solved, AMS 5] theorem theorem2 (G : SimpleGraph α) [DecidableRel G.Adj] (h_conn: G.Connected) (h : G.CliqueFree 3) : ∃ (β : Type*) (_ : Fintype β) (H : SimpleGraph β) (_ : DecidableRel H.Adj) (i : G ...
941
leanexplore_declaration
leanexplore:384603
leanexplore_sqlite
leanexplore_declarations
/-- **Lemma 4.** Let `G` be a triangle-free graph with `n` vertices and let `v` be a vertex of `G`. There exists a triangle-free graph `H` containing `G` as an induced subgraph such that: (i) the degree of `v` in `H` is one more than its degree in `G`; (ii) for every vertex `w` of `G` other than `v` the degree of `w` i...
336
leanexplore_declaration
leanexplore:384604
leanexplore_sqlite
leanexplore_declarations
/-- **Lemma 3.** For every `n` there exists a bipartite graph with `8 n` vertices, minimum degree `n + 1`, and `f = 3`. -/ @[category API, AMS 5] lemma lemma3 (n : ℕ) (hn : 0 < n) : ∃ (G : SimpleGraph (Fin (8 * n))) (_ : DecidableRel G.Adj), G.IsBipartite ∧ G.minDegree = n + 1 ∧ degreeSequenceMultiplicity G =...
403
leanexplore_declaration
leanexplore:384605
leanexplore_sqlite
leanexplore_declarations
/-- **Theorem 1.** If a triangle-free graph has `f = 2`, then it is bipartite, has minimum degree `1`, and its degree sequence is compact. -/ @[category research solved, AMS 5] theorem theorem1 (G : SimpleGraph α) (h_conn: G.Connected) [DecidableRel G.Adj] (h₁ : G.CliqueFree 3) (h₂ : degreeSequenceMultiplicity G = ...