Documentation

CslibFrontier.Foundations.NumberTheory.ModularWeights

Modular weights separating pairs of monomials #

For a prime p and a residue a, the weight i ↦ a ^ (i + 1) mod p on n variables takes values below p. Two different exponent vectors m, m' with entries below p get the same weight modulo p only if a is a root of the nonzero polynomial ∑ i, (m i - m' i) * X ^ (i + 1) over ZMod p, which has at most n roots. So for a set of fewer than p / n pairs of different exponent vectors, some a < p gives the two vectors of every pair different weights.

This family of p candidate weights replaces Lemma 4 of [AGKS15], which reduces the weight i ↦ (δ + 1) ^ i modulo many primes and counts primes with the prime number theorem. Here one prime is enough, and the count is the bound on the number of roots of a polynomial over a field.

Main definitions #

Main results #

References #

def Cslib.modWeight {n : ℕ} (p a : ℕ) (i : Fin n) :

The weight i ↦ a ^ (i + 1) mod p on n variables.

theorem Cslib.modWeight_lt {n p : ℕ} (hp : 0 < p) (a : ℕ) (i : Fin n) :
modWeight p a i < p

The values of modWeight p a are below p.

theorem Cslib.exists_modWeight_separating {n p δ : ℕ} [Fact (Nat.Prime p)] (hδ : δ < p) (P : Finset ((Fin n →₀ ℕ) × (Fin n →₀ ℕ))) (hP : ∀ x ∈ P, x.1 ≠ x.2 ∧ (∀ (i : Fin n), x.1 i ≤ δ) ∧ ∀ (i : Fin n), x.2 i ≤ δ) (hcard : P.card * n < p) :
∃ a < p, ∀ x ∈ P, (Finsupp.weight (modWeight p a)) x.1 ≠ (Finsupp.weight (modWeight p a)) x.2

Let p be a prime and P a set of pairs of different exponent vectors on n variables with entries at most δ < p. If P.card * n < p, then for some a < p the weight modWeight p a gives different weights to the two exponent vectors of every pair in P.