Documentation

CslibFrontier.Computability.Complexity.Polyhedra.VectorPartition

Vector Partition Functions and Parametric Rational Polytope Lattice Point Counts #

This module proves piecewise quasi-polynomiality of vector partition functions and bounded parametric rational convex polytope lattice-point counts on ℤ^d:

1. Summing a Piecewise Quasi-Polynomial Along an Integer Ray #

2. Vector Partition Functions and Parametric Rational Polytopes #

noncomputable def Cslib.Complexity.Polyhedra.vectorPartitionCount {s k : ℕ} (A : (Fin s → ℤ) →+ Fin k → ℤ) (b : Fin k → ℤ) :

The vector partition function φ_A(b) = #{x ∈ ℕ^s : A x = b} associated to an integer linear map A : (Fin s → ℤ) →+ (Fin k → ℤ).

theorem Cslib.Complexity.Polyhedra.finite_vectorPartitionFiber {s k : ℕ} (A : (Fin s → ℤ) →+ Fin k → ℤ) (ℓ : (Fin k → ℤ) →+ ℤ) (hℓ : ∀ (i : Fin s), 0 < ℓ (A (Pi.single i 1))) (b : Fin k → ℤ) :
Finite { x : Fin s → ℕ // (A fun (i : Fin s) => ↑(x i)) = b }

If ℓ : ℤ^k →+ ℤ is strictly positive on every column of A, then every fiber {x ∈ ℕ^s : A x = b} is finite.

theorem Cslib.Complexity.Polyhedra.vectorPartitionCount_isPiecewiseQuasiPolynomial {s k : ℕ} (A : (Fin s → ℤ) →+ Fin k → ℤ) (ℓ : (Fin k → ℤ) →+ ℤ) (hℓ : ∀ (i : Fin s), 0 < ℓ (A (Pi.single i 1))) :

Vector Partition Function Piecewise Quasi-Polynomiality: for any integer linear map A : ℤ^s →+ ℤ^k admitting a strictly positive separating linear functional ℓ, the vector partition function b ↦ (vectorPartitionCount A b : ℚ) is piecewise quasi-polynomial on ℤ^k.

theorem Cslib.Complexity.Polyhedra.exists_pos_linearFunctional_of_pointed {s u : ℕ} (A : (Fin s → ℤ) →+ Fin u → ℤ) (hpointed : ∀ (x : Fin s → ℝ), (∀ (i : Fin s), 0 ≤ x i) → (∀ (j : Fin u), ∑ i : Fin s, ↑(A (Pi.single i 1) j) * x i = 0) → x = 0) :
∃ (ℓ : (Fin u → ℤ) →+ ℤ), ∀ (i : Fin s), 0 < ℓ (A (Pi.single i 1))

Gordan's Separation Lemma: if the real extension of A : ℤ^s →+ ℤ^u satisfies ker(A_ℝ) ∩ ℝ≥0^s = {0}, then there exists an integer linear functional ℓ : ℤ^u →+ ℤ that is strictly positive on every column A (Pi.single i 1) of A.

noncomputable def Cslib.Complexity.Polyhedra.parametricPolytopeCount {s s' u d : ℕ} (A₁ : (Fin s → ℤ) →+ Fin u → ℤ) (A₂ : (Fin s' → ℤ) →+ Fin u → ℤ) (B : (Fin d → ℤ) →+ Fin u → ℤ) (y : Fin d → ℤ) :

Lattice-point count of a bounded parametric rational polytope Δ_{A,B}(y) = {(x, z) ∈ ℝ≥0^s × ℝ^{s'} : A₁ x + A₂ z = B y}.

theorem Cslib.Complexity.Polyhedra.parametricPolytopeCount_isPiecewiseQuasiPolynomial {s s' u d : ℕ} (A₁ : (Fin s → ℤ) →+ Fin u → ℤ) (A₂ : (Fin s' → ℤ) →+ Fin u → ℤ) (B : (Fin d → ℤ) →+ Fin u → ℤ) (hpointed : ∀ (x : Fin s → ℝ) (z : Fin s' → ℝ), (∀ (i : Fin s), 0 ≤ x i) → (∀ (j : Fin u), ∑ i : Fin s, ↑(A₁ (Pi.single i 1) j) * x i + ∑ l : Fin s', ↑(A₂ (Pi.single l 1) j) * z l = 0) → x = 0 ∧ z = 0) :

Parametric Rational Polytope Piecewise Quasi-Polynomiality: for any integer linear maps A₁ : ℤ^s →+ ℤ^u, A₂ : ℤ^{s'} →+ ℤ^u, and B : ℤ^d →+ ℤ^u whose real kernel intersects ℝ≥0^s × ℝ^{s'} trivially, the lattice-point count y ↦ (parametricPolytopeCount A₁ A₂ B y : ℚ) is a piecewise quasi-polynomial function on ℤ^d.