Documentation

CslibFrontier.Computability.PolyTime.CNF.DeclaredInput

Polynomial-time declared-input check #

The declared-input guard Cslib.Logic.PL.CNF.validDeclaredInput k N φ checks that every clause of φ has width at most k and every variable of φ is below the declared bound N. This module shows that the guard is polynomial-time computable on encPair encP encCNF when the declared bound is computed from the parameter in unary. Both the native sparse leaf counter and the uniform counting-sparsification resources use it.

Main results #

The declared-input check validDeclaredInput k (NOf p) φ is computable in polynomial time when the declared variable bound NOf is.