Documentation

CslibFrontier.Computability.Complexity.Problems.GeneralIntegerProgramming

Integer feasibility with unrestricted integer unknowns #

IntegerProgram stores a unary variable count and signed-binary inequality rows. Every unknown ranges over all integers. A row's coefficient list is padded with zeros or truncated to the declared number of variables. The complete list is charged in the input encoding.

The verifier uses a signed-binary list of integer coordinates. Its completeness follows from the integer small-solution theorem, not the rational basic-solution theorem.

One integer inequality, with coefficients in variable order and an upper bound.

  • coeffs : List ℤ

    Coefficients of variables 0, 1, …, padded or truncated to the variable count.

  • rhs : ℤ

    The upper bound on the linear expression.

Instances For
    theorem Cslib.Complexity.IntegerProgram.encInequality_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → List ℤ} {x1 : γ → ℤ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encIntBin) budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encIntBin budget) :
    Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { coeffs := x0 x, rhs := x1 x }) encIn encInequality budget
    theorem Cslib.Complexity.IntegerProgram.encInequality_rhs_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Inequality} :

    A framed list of signed-binary coefficients followed by the signed-binary upper bound.

    theorem Cslib.Complexity.IntegerProgram.encInequality_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List ℤ} {T0 S0 : γ → ℕ} {x1 : γ → ℤ} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encIntBin) T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encIntBin T1 S1) :
    Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { coeffs := x0 x, rhs := x1 x }) encIn encInequality (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
    @[reducible, inline]

    The tuple of the fields of encInequality.

    A finite system of integer linear inequalities, with unrestricted integer unknowns.

    • numVars : ℕ

      Number of unknowns, encoded in unary so dimension is charged to the input.

    • constraints : List Inequality

      The inequality rows.

    Instances For
      theorem Cslib.Complexity.IntegerProgram.enc_constraints_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → IntegerProgram} :
      theorem Cslib.Complexity.IntegerProgram.enc_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 : γ → ℕ} {x1 : γ → List Inequality} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encUnary budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn (Turing.MultiTapeTM.encList encInequality) budget) :
      Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { numVars := x0 x, constraints := x1 x }) encIn enc budget
      @[reducible, inline]

      The tuple of the fields of enc.

      theorem Cslib.Complexity.IntegerProgram.enc_numVars_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → IntegerProgram} :

      Unary variable count, framed, followed by a framed list of signed-binary inequality rows.

      theorem Cslib.Complexity.IntegerProgram.enc_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 : γ → ℕ} {x1 : γ → List Inequality} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encUnary T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn (Turing.MultiTapeTM.encList encInequality) T1 S1) :
      Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { numVars := x0 x, constraints := x1 x }) encIn enc (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

      Integer feasibility of a system, with a coordinate for every declared variable.

      Verify integer coordinates by padded integer dot products, without division.

      Soundness of the integer verifier, including short certificates padded with zero.

      General integer inequality feasibility is in NP, with unary dimension and signed-binary coefficients. Integer coordinates are unrestricted; their certificate length follows from the integer small-solution bound.