Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.ClauseNetworkPolyTime

The clause network in polynomial time #

The clause network of a formula (Cslib.Circuits.Frontier.ClauseNetwork.clauseNetwork) is computable in polynomial time from the encoded formula, with its number of rows in binary and the network in the encoding of the contraction algorithm (ExplicitTensorNetwork.encExplicitNetwork). It is computed from the literal occurrences (Cslib.Logic.PL.computableInPolyTime_occurrences): every port, previous occurrence and falsifying word is a search or a map over the occurrences, and every table is a map over the first 2 ^ max k 4 numbers, a constant list. The network of an occurrence list is polynomial-time for any row tables whose entries are (Cslib.Circuits.Frontier.ClauseNetwork.computableInPolyTime_network).

Main results #

@[reducible, inline]

The encoding of occurrence lists: unary clause and position indices and a binary literal.

Row vertices are polynomial-time when every entry of the row tables, at a fixed word value, is polynomial-time in the input and the unary row number.

The entries of the clause tables are polynomial-time at every fixed word value.

The network of an occurrence list is polynomial-time, with its number of rows in binary, when the entries of its row tables are.