Monochromatic solutions of linear equations
DefinitionCanceling partition#✓fully proved
Let \(a_1, \dots, a_k\) be integers, the coefficients of the linear equation \(a_1x_1 + \cdots + a_kx_k = 0\). The equation has a canceling partition when its indices split into pairs of distinct indices \(i, j\) with \(a_i + a_j = 0\); precisely, when there is a permutation \(\sigma\) of the indices \(1, \dots, k\) such that for every \(i\) we have \(\sigma(\sigma(i)) = i\), \(\sigma(i) \ne i\) and \(a_i + a_{\sigma(i)} = 0\).
public def HasCancelingPartition {k : ℕ} (a : Fin k → ℤ) : Prop :=
∃ σ : Equiv.Perm (Fin k), (∀ i, σ (σ i) = i) ∧ (∀ i, σ i ≠ i) ∧ ∀ i, a i + a (σ i) = 0
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Section 1 (definition of canceling partition).
TheoremA canceling partition for \(x_1 + 2x_2 - x_3 - 2x_4 = 0\)#✓fully proved
The equation \(x_1 + 2x_2 - x_3 - 2x_4 = 0\), with coefficient vector \((1, 2, -1, -2)\), has a canceling partition.
public theorem hasCancelingPartition_one_two_neg_one_neg_two :
HasCancelingPartition (![1, 2, -1, -2] : Fin 4 → ℤ)
public def HasCancelingPartition {k : ℕ} (a : Fin k → ℤ) : Prop :=
∃ σ : Equiv.Perm (Fin k), (∀ i, σ (σ i) = i) ∧ (∀ i, σ i ≠ i) ∧ ∀ i, a i + a (σ i) = 0
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:56
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Section 1.
Uses 1
TheoremThe equation \(x_1 + x_2 = 0\) has no canceling partition#✓fully proved
The equation \(x_1 + x_2 = 0\), with coefficient vector \((1, 1)\), has no canceling partition.
public theorem not_hasCancelingPartition_one_one : ¬ HasCancelingPartition (![1, 1] : Fin 2 → ℤ)
public def HasCancelingPartition {k : ℕ} (a : Fin k → ℤ) : Prop :=
∃ σ : Equiv.Perm (Fin k), (∀ i, σ (σ i) = i) ∧ (∀ i, σ i ≠ i) ∧ ∀ i, a i + a (σ i) = 0
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:56
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Section 1.
Uses 1
DefinitionUncommon equations over a finite abelian group#✓fully proved
Let \(G\) be a finite abelian group, let \(a_1, \dots, a_k\) be integers, let \(r\) be a natural number, and let \(S \subseteq G^k\) be the set of solutions of \(a_1x_1 + \cdots + a_kx_k = 0\). The equation is \(r\)-uncommon over \(G\) when there are functions \(w_1, \dots, w_r \colon G \to \mathbb{R}\) with \(w_c(x) \ge 0\) for all \(c\) and \(x\), and \(w_1(x) + \cdots + w_r(x) = 1\) for every \(x \in G\), such that
where \(r^{k-1}\) is read as \(1\) when \(k = 0\).
The functions \(w_c\) form a fractional \(r\)-colouring of \(G\), and the double sum is its weighted count of monochromatic solutions. For \(k \ge 1\) the condition says that this count is below \(r^{1-k}|S|\), its value for the uniform weights \(w_c(x) = 1/r\).
public def IsUncommonOverFiniteGroup (G : Type*) [AddCommGroup G] [Fintype G]
[DecidableEq G] {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ w : Fin r → G → ℝ, (∀ c x, 0 ≤ w c x) ∧ (∀ x, ∑ c, w c x = 1) ∧
(r : ℝ) ^ (k - 1) *
∑ c, ∑ x ∈ univ.filter (fun x : Fin k → G => ∑ i, a i • x i = 0), ∏ i, w c (x i) <
((univ.filter (fun x : Fin k → G => ∑ i, a i • x i = 0)).card : ℝ)
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Sections 1-2 (equation (2.1)).
TheoremNo equation is 1-uncommon over a finite abelian group#✓fully proved
For every finite abelian group \(G\), every \(k \ge 0\) and all integers \(a_1, \dots, a_k\), the equation \(a_1 x_1 + \dots + a_k x_k = 0\) is not \(1\)-uncommon over \(G\).
public theorem not_isUncommonOverFiniteGroup_one (G : Type*) [AddCommGroup G] [Fintype G]
[DecidableEq G] {k : ℕ} (a : Fin k → ℤ) : ¬ IsUncommonOverFiniteGroup G a 1
public def IsUncommonOverFiniteGroup (G : Type*) [AddCommGroup G] [Fintype G]
[DecidableEq G] {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ w : Fin r → G → ℝ, (∀ c x, 0 ≤ w c x) ∧ (∀ x, ∑ c, w c x = 1) ∧
(r : ℝ) ^ (k - 1) *
∑ c, ∑ x ∈ univ.filter (fun x : Fin k → G => ∑ i, a i • x i = 0), ∏ i, w c (x i) <
((univ.filter (fun x : Fin k → G => ∑ i, a i • x i = 0)).card : ℝ)
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:85
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Sections 1-2.
Uses 1
DefinitionUncommon equations over the integers#✓fully proved
Let \(a_1, \dots, a_k\) be integers and let \(r\) be a natural number. For each \(n\), write \([n]\) for the set of integers \(1, \dots, n\) and \(S_n\) for the set of solutions \((x_1, \dots, x_k) \in [n]^k\) of \(a_1x_1 + \cdots + a_kx_k = 0\); for a colouring \(\chi\) of the integers with \(r\) colours, let \(M_\chi(n)\) be the number of solutions in \(S_n\) whose entries all have the same colour. The equation is \(r\)-uncommon over the integers when there is \(\varepsilon > 0\) such that for infinitely many \(n\) some such colouring \(\chi\) satisfies \(r^{k-1} M_\chi(n) < (1 - \varepsilon)|S_n|\), where \(r^{k-1}\) is read as \(1\) when \(k = 0\).
For \(k \ge 1\) this says that the equation is not \(r\)-common: it is not the case that every \(r\)-colouring of \([n]\) has at least \((1 - o(1)) r^{1-k}|S_n|\) monochromatic solutions.
public def IsUncommonOverIntegers {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ ε : ℝ, 0 < ε ∧ ∃ᶠ n : ℕ in Filter.atTop, ∃ χ : ℤ → Fin r,
(r : ℝ) ^ (k - 1) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0 ∧ ∀ i j, χ (x i) = χ (x j))).card : ℝ) <
(1 - ε) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0)).card : ℝ)
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Section 1 (
r-common over the integers).
Used by 5
TheoremNo equation is 1-uncommon over the integers#✓fully proved
For every \(k \ge 0\) and all integers \(a_1, \dots, a_k\), the equation \(a_1 x_1 + \dots + a_k x_k = 0\) is not \(1\)-uncommon over the integers.
public theorem not_isUncommonOverIntegers_one {k : ℕ} (a : Fin k → ℤ) :
¬ IsUncommonOverIntegers a 1
public def IsUncommonOverIntegers {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ ε : ℝ, 0 < ε ∧ ∃ᶠ n : ℕ in Filter.atTop, ∃ χ : ℤ → Fin r,
(r : ℝ) ^ (k - 1) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0 ∧ ∀ i j, χ (x i) = χ (x j))).card : ℝ) <
(1 - ε) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0)).card : ℝ)
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:109
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Section 1.
Uses 1
TheoremUncommonness of odd-length equations over finite abelian groups#●ready to prove
Let \(G\) be a nontrivial finite abelian group, let \(m \ge 1\), and let \(a_1, \dots, a_{2m+1}\) be integers each coprime to the order \(|G|\). Then for every \(r \ge 3\) the equation \(a_1x_1 + \cdots + a_{2m+1}x_{2m+1} = 0\) is \(r\)-uncommon over \(G\).
Since \(|G| \ge 2\), coprimality forces every \(a_i\) to be nonzero.
public theorem_wanted isUncommonOverFiniteGroup_of_odd (G : Type*) [AddCommGroup G]
[Fintype G] [DecidableEq G] [Nontrivial G] (m : ℕ) (hm : 1 ≤ m)
(a : Fin (2 * m + 1) → ℤ)
(hcop : ∀ i, Nat.Coprime (a i).natAbs (Fintype.card G)) (r : ℕ) (hr : 3 ≤ r) :
IsUncommonOverFiniteGroup G a r
public def IsUncommonOverFiniteGroup (G : Type*) [AddCommGroup G] [Fintype G]
[DecidableEq G] {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ w : Fin r → G → ℝ, (∀ c x, 0 ≤ w c x) ∧ (∀ x, ∑ c, w c x = 1) ∧
(r : ℝ) ^ (k - 1) *
∑ c, ∑ x ∈ univ.filter (fun x : Fin k → G => ∑ i, a i • x i = 0), ∏ i, w c (x i) <
((univ.filter (fun x : Fin k → G => ∑ i, a i • x i = 0)).card : ℝ)
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:85
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Theorem 1.
Uses 1
TheoremUncommonness of odd-length equations over the integers#●ready to prove
Let \(m \ge 1\) and let \(a_1, \dots, a_{2m+1}\) be nonzero integers, at least one negative and at least one positive. Then for every \(r \ge 3\) the equation \(a_1x_1 + \cdots + a_{2m+1}x_{2m+1} = 0\) is \(r\)-uncommon over the integers.
The sign condition excludes equations such as \(x_1 + x_2 + x_3 = 0\), which have no solutions in positive integers and for which the proportion of monochromatic solutions is undefined.
public theorem_wanted isUncommonOverIntegers_of_odd (m : ℕ) (hm : 1 ≤ m)
(a : Fin (2 * m + 1) → ℤ) (ha : ∀ i, a i ≠ 0) (hsign : ∃ i j, a i < 0 ∧ 0 < a j)
(r : ℕ) (hr : 3 ≤ r) :
IsUncommonOverIntegers a r
public def IsUncommonOverIntegers {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ ε : ℝ, 0 < ε ∧ ∃ᶠ n : ℕ in Filter.atTop, ∃ χ : ℤ → Fin r,
(r : ℝ) ^ (k - 1) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0 ∧ ∀ i j, χ (x i) = χ (x j))).card : ℝ) <
(1 - ε) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0)).card : ℝ)
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:109
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Corollary 1.
Uses 1
TheoremTwo-colour uncommonness over the integers extends to more colours#●ready to prove
Let \(k \ge 3\) and let \(a_1, \dots, a_k\) be nonzero integers. If the equation \(a_1x_1 + \cdots + a_kx_k = 0\) is \(2\)-uncommon over the integers, then it is \(r\)-uncommon over the integers for every \(r \ge 3\).
public theorem_wanted isUncommonOverIntegers_of_two (k : ℕ) (hk : 3 ≤ k) (a : Fin k → ℤ)
(ha : ∀ i, a i ≠ 0) (h2 : IsUncommonOverIntegers a 2) (r : ℕ) (hr : 3 ≤ r) :
IsUncommonOverIntegers a r
public def IsUncommonOverIntegers {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ ε : ℝ, 0 < ε ∧ ∃ᶠ n : ℕ in Filter.atTop, ∃ χ : ℤ → Fin r,
(r : ℝ) ^ (k - 1) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0 ∧ ∀ i j, χ (x i) = χ (x j))).card : ℝ) <
(1 - ε) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0)).card : ℝ)
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:109
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Theorem 2.
Uses 1
TheoremUncommonness of even-length equations without a canceling partition#●ready to prove
Let \(m \ge 2\) and let \(a_1, \dots, a_{2m}\) be nonzero integers, at least one negative and at least one positive, such that the equation \(a_1x_1 + \cdots + a_{2m}x_{2m} = 0\) has no canceling partition. Then this equation is \(r\)-uncommon over the integers for every \(r \ge 2\).
The sign condition excludes equations such as \(x_1 + x_2 + x_3 + x_4 = 0\), which has no canceling partition and no solutions in positive integers.
public theorem_wanted isUncommonOverIntegers_of_not_hasCancelingPartition (m : ℕ)
(hm : 2 ≤ m) (a : Fin (2 * m) → ℤ) (ha : ∀ i, a i ≠ 0)
(hsign : ∃ i j, a i < 0 ∧ 0 < a j) (hcan : ¬ HasCancelingPartition a) (r : ℕ)
(hr : 2 ≤ r) :
IsUncommonOverIntegers a r
public def HasCancelingPartition {k : ℕ} (a : Fin k → ℤ) : Prop :=
∃ σ : Equiv.Perm (Fin k), (∀ i, σ (σ i) = i) ∧ (∀ i, σ i ≠ i) ∧ ∀ i, a i + a (σ i) = 0
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:56
public def IsUncommonOverIntegers {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ ε : ℝ, 0 < ε ∧ ∃ᶠ n : ℕ in Filter.atTop, ∃ χ : ℤ → Fin r,
(r : ℝ) ^ (k - 1) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0 ∧ ∀ i j, χ (x i) = χ (x j))).card : ℝ) <
(1 - ε) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0)).card : ℝ)
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:109
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Corollary 2.
Uses 2
TheoremUncommonness of \(x + 2y - z - 2w = 0\) over the integers#●ready to prove
For every \(r \ge 2\), the equation \(x + 2y - z - 2w = 0\) is \(r\)-uncommon over the integers.
public theorem_wanted isUncommonOverIntegers_one_two_neg_one_neg_two (r : ℕ) (hr : 2 ≤ r) :
IsUncommonOverIntegers (![1, 2, -1, -2] : Fin 4 → ℤ) r
public def IsUncommonOverIntegers {k : ℕ} (a : Fin k → ℤ) (r : ℕ) : Prop :=
∃ ε : ℝ, 0 < ε ∧ ∃ᶠ n : ℕ in Filter.atTop, ∃ χ : ℤ → Fin r,
(r : ℝ) ^ (k - 1) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0 ∧ ∀ i j, χ (x i) = χ (x j))).card : ℝ) <
(1 - ε) *
(((Fintype.piFinset fun _ : Fin k => Icc (1 : ℤ) n).filter
(fun x => ∑ i, a i * x i = 0)).card : ℝ)
WantedExt/Combinatorics/MonochromaticLinearEquationsWanted.lean:109
Sources
- Laurence P. Wijaya, On Monochromatic Solutions of Linear Equations Using at Least Three Colors, INTEGERS 25 (2025), Article A88, Corollary 2.
Uses 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.