Closing open wire-network states and component cycle-rank bounds #
Closes any OpenState d W M s (d ∈ {3, 4}) into a CappedWireNet d W M s with degree-one
output leaves and component cycle-rank inequality (OpenState.toCappedWireNet), and compiles
arbitrary active gate lists (exists_cappedWireNet).