Documentation

CslibFrontier.Logics.Propositional.ClauseSet.Sparsification.PolyTime

Sparsification -- the step is polynomial-time #

The list-level sparsification step (Cslib.Logic.PL.CNF.Sparsification.next), the test for sparseness (Cslib.Logic.PL.CNF.Sparsification.isSparse) and normalization (Cslib.Logic.PL.CNF.Sparsification.normalize) are polynomial-time on the framed encoding of formulas (Cslib.Logic.PL.encCNFOver), for any encoding of the variables. The width k is fixed, so a clause has a constant number of candidate hearts; the thresholds enter only through comparisons θ j ≤ n, which must themselves be polynomial-time in unary. They are for the explicit thresholds (Cslib.Logic.PL.ClauseSet.Sparsification.computableInPolyTime_threshold_le).

The thresholds may also be read from a runtime parameter p, as θ p: the …With certificates take the parameter as part of the input and charge its encoding, so one machine serves every parameter value. The certificates for fixed thresholds are their specializations to a constant parameter.

Main definitions #

Main results #

References #

@[reducible, inline]

The input (p, j, n) of a threshold comparison θ p j ≤ n, with j and n in unary: the framed runtime parameter p, then the framed j, then n.

@[reducible, inline]

A candidate (c, H) of a clause size and a heart, with c in unary: the framed c, then the heart H as a clause (encClause encV).

Removing duplicate clauses with identical literal sets is polynomial-time.

Computing the flower of a clause size and heart is polynomial-time.

Testing a candidate against runtime thresholds. Testing whether a candidate (c, H) is heavy for thresholds θ p read from a runtime parameter p is polynomial-time, charging the encoding of p.

A fixed threshold comparison, read through a constant runtime parameter. This specializes the …With certificates to fixed thresholds.

Listing the candidate pairs (c, H) of a formula is polynomial-time.

The choice for runtime thresholds is polynomial-time, charging the encoding of the parameter.

The test for sparseness against runtime thresholds is polynomial-time, charging the encoding of the parameter.

A step at the computed choice for runtime thresholds is polynomial-time: if computing a child f ψ c H b of a node for a supplied choice (c, H) is polynomial-time, then so is computing the child for the computed choice choice (θ p) k ψ, charging the encoding of the parameter p. This is shared by the step next and the counting step countingNext.

The list-level step for runtime thresholds is polynomial-time, charging the encoding of the parameter.