Documentation

CslibFrontier.Computability.Complexity.Problems.SharpDNF.KarpLubyMadras.PolyTime

The Karp–Luby–Madras estimator runs in probabilistic polynomial time #

Formulas in disjunctive normal form over variables numbered by ℕ are encoded as lists of terms, each a list of literals with the variable in binary (Cslib.Complexity.encDNF, the same encoding as Cslib.Complexity.encCNF for formulas in conjunctive normal form). On this encoding:

Main results #

@[reducible, inline]

Terms over natural-number variables: lists of literals, a variable in binary and a sign.

@[reducible, inline]

Formulas in disjunctive normal form over natural-number variables: lists of terms.

Forced evaluation #

Widths and padding #

Probabilistic polynomial time #

One trial is a strict probabilistic polynomial-time program.

The Karp–Luby–Madras estimator is a strict probabilistic polynomial-time program on the formula and the unary parameters p and t, with the estimate written in binary.