Rows-first bipartiteness in polynomial time #
Rows-first bipartiteness of a described network at a number of rows
(DescribedNetwork.IsRowsFirstBipartite) is decidable in polynomial time, from the number of rows
in binary and the network as encoded by DescribedNetwork.encDescribed. The test checks that every
port names an edge and counts, for each edge, its ports among the first r vertices and among the
others. It is the rows-first part of the guards of the contraction machines, for explicit networks
and for entry procedures.
Main results #
Cslib.Circuits.Frontier.DescribedNetwork.rowsFirst_polyTime: rows-first bipartiteness is decidable in polynomial time.
theorem Cslib.Circuits.Frontier.DescribedNetwork.rowsFirst_polyTime {T : Type} {encT : T ↪ List Bool} :
Turing.MultiTapeTM.ComputableInPolyTime
(fun (x : ℕ × DescribedNetwork T) =>
match x with
| (r, d) => decide (d.IsRowsFirstBipartite r))
(Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encNat (encDescribed encT)) Turing.MultiTapeTM.encBool
Rows-first bipartiteness is decidable in polynomial time, from the number of rows and the network.