Documentation

CslibFrontier.Computability.Circuit.Arithmetic.KoiranSequence

Koiran's Zero-Avoiding Integer Sequence and Arithmetic Circuits #

This module formalizes Koiran's zero-avoiding integer sequence (doubly exponential for D ≥ 2; stabilizing at D = 0) avoiding the zero set of every nonzero integer polynomial in k variables of total degree at most D and coefficients of absolute value strictly less than 2 ^ L, following Bürgisser and Cucker (arXiv:cs/0312007v1, Section 4.2, Lemma 4.5 and pp. 16–17, where the sequence is attributed to Koiran 1997).

We also construct an explicit division-free, input-free arithmetic circuit koiranSeqCircuit k L D : Circuit (arithSignature Unit) 0 k whose sole constant symbol is 1, evaluating to (koiranSeq L D 0, …, koiranSeq L D (k - 1)) over every semiring in at most 2 + 2 * Nat.log 2 L + 2 * Nat.log 2 (D + 1) + (k - 1) * (2 * Nat.log 2 D + 4) gates, i.e., O(1 + k log(D + 2) + log(L + 2)) uniformly across all parameters (O(k log D + log L) for D, L ≥ 2), reusing Cslib.Circuits.binaryPowerCircuit.

Finally, koiranSeq_mem_of_dense_of_sign_determined records the quantifier-free sign-determination step from the proof of Proposition 4.4 of Bürgisser and Cucker (arXiv:cs/0312007v1, Section 4.2, p. 17; after Koiran 1999, Corollary 1): any Euclidean-dense set S ⊆ ℝ^k determined by the signs of bounded-degree, bounded-coefficient integer polynomials contains the real image of koiranSeq L D. Quantifier elimination for prenex formulas and uniform Turing-machine circuit generation (the rest of Proposition 4.4) are not formalized here.

Main definitions #

Main results #

References #

Koiran's zero-avoiding sequence #

Koiran's zero-avoiding sequence (doubly exponential for D ≥ 2; stabilizing at D = 0), 0-indexed (koiranSeq L D j is α_{j + 1} in [BurgisserCucker2006, Lemma 4.5]): koiranSeq L D 0 = 2 ^ L and koiranSeq L D (j + 1) = 1 + 2 ^ L * (D + 1) ^ (j + 1) * (koiranSeq L D j) ^ D.

Every entry of koiranSeq L D is at least 1.

koiranSeq L D is monotone nondecreasing for all L and D.

Zero-avoidance for bounded-degree integer polynomials #

theorem Cslib.Circuits.Arithmetic.eval_koiranSeq_ne_zero {k L D : ℕ} {h : MvPolynomial (Fin k) ℤ} (h0 : h ≠ 0) (hdeg : h.totalDegree ≤ D) (hcoeff : ∀ (d : Fin k →₀ ℕ), |h.coeff d| < 2 ^ L) :
(MvPolynomial.eval fun (j : Fin k) => ↑(koiranSeq L D ↑j)) h ≠ 0

Zero-avoidance of Koiran's sequence (Bürgisser and Cucker, Lemma 4.5, arXiv:cs/0312007v1, Section 4.2, p. 16; attributed there to Koiran 1997): for all k, L, D : ℕ, every nonzero integer polynomial h in k variables of total degree at most D and coefficients of absolute value < 2 ^ L satisfies h(koiranSeq L D 0, …, koiranSeq L D (k - 1)) ≠ 0. (For L = 0, hcoeff forces h = 0, so the statement is non-vacuous for L ≥ 1.)

Division-free arithmetic circuit for koiranSeq #

Division-free, input-free arithmetic circuit over arithSignature Unit (constant 1 only) computing (koiranSeq L D 0, …, koiranSeq L D (k - 1)) in O(1 + k log(D + 2) + log(L + 2)) gates (O(k log D + log L) for D, L ≥ 2) ([BurgisserCucker2006, Section 4.2, p. 17]).

theorem Cslib.Circuits.Arithmetic.eval_koiranSeqCircuit {R : Type u_1} [Semiring R] (k L D : ℕ) (j : Fin k) :
(koiranSeqCircuit k L D).eval (arithInterpretationWith Unit fun (x : Unit) => 1) Fin.elim0 j = ↑(koiranSeq L D ↑j)

Exact evaluation of koiranSeqCircuit: over any semiring R, the j-th output of koiranSeqCircuit k L D (with the sole constant symbol interpreted as 1 : R) equals (koiranSeq L D j : R).

theorem Cslib.Circuits.Arithmetic.size_koiranSeqCircuit_le (k L D : ℕ) :
(koiranSeqCircuit k L D).size ≤ 2 + 2 * Nat.log 2 L + 2 * Nat.log 2 (D + 1) + (k - 1) * (2 * Nat.log 2 D + 4)

Gate-count bound for koiranSeqCircuit: koiranSeqCircuit k L D has at most 2 + 2 * Nat.log 2 L + 2 * Nat.log 2 (D + 1) + (k - 1) * (2 * Nat.log 2 D + 4) gates, i.e., O(1 + k log(D + 2) + log(L + 2)) operations (O(k log D + log L) for D, L ≥ 2; [BurgisserCucker2006, Section 4.2, p. 17]).

Quantifier-free generic-point membership step #

theorem Cslib.Circuits.Arithmetic.koiranSeq_mem_of_dense_of_sign_determined {k L D : ℕ} {P : Finset (MvPolynomial (Fin k) ℤ)} (hdeg : ∀ h ∈ P, h.totalDegree ≤ D) (hcoeff : ∀ h ∈ P, ∀ (d : Fin k →₀ ℕ), |h.coeff d| < 2 ^ L) {S : Set (Fin k → ℝ)} (hdet : ∀ (x y : Fin k → ℝ), (∀ h ∈ P, SignType.sign (MvPolynomial.eval₂ (Int.castRingHom ℝ) x h) = SignType.sign (MvPolynomial.eval₂ (Int.castRingHom ℝ) y h)) → (x ∈ S ↔ y ∈ S)) (hdense : Dense S) :
(fun (j : Fin k) => ↑(koiranSeq L D ↑j)) ∈ S

Intermediate step (quantifier-free sign-determination core) in the proof of Proposition 4.4 of Bürgisser and Cucker (arXiv:cs/0312007v1, Section 4.2, p. 17; after Koiran 1999, Corollary 1). This is not the full prenex-formula or uniform Turing-machine statement of Proposition 4.4.

If S ⊆ ℝ ^ k is dense in the Euclidean topology (hdense : Dense S, which for a semialgebraic set determined by finitely many polynomials agrees with Zariski-genericity in the sense of [BurgisserCucker2006, Definition 4.2 and Remark 4.3(i)(a)]) and membership in S depends only on the signs of a finite family P of integer polynomials of total degree ≤ D and coefficients of absolute value < 2 ^ L, then the real point (koiranSeq L D 0, …, koiranSeq L D (k - 1)) belongs to S.