Internal: AND/OR/NOT Completeness Proof #
This internal module proves functional completeness of Basis.unboundedAndOr
via DNF (disjunctive normal form) construction. The basis definitions are
in Complexitylib.Circuits.AndOrNot.Defs; this module is re-exported through
Complexitylib.Circuits.AndOrNot.
Indicator circuit: outputs true iff the input equals s.
A single N-input AND gate where input i is wired to primary input i,
negated when s i = false. No internal gates needed.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Single-output DNF circuit computing f : BitString N → Bool.
For each of the 2^N possible inputs s, internal gate i is the
indicator AND for s when f s = true, or a trivially-false 0-input
OR otherwise. The single output OR gate disjoins all internal gates.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Helper lemmas for andOrNotFor correctness #
Multi-output DNF circuit: andOrNotForM #
Multi-output DNF circuit computing f : BitString N → BitString M.
For each output bit j and each of the 2^N possible inputs, there is
an indicator AND gate (or a trivially-false gate). Each output OR gate
disjoins the 2^N gates for its output bit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Basis.unboundedAndOr is functionally complete: every finite Boolean
function f : BitString N → BitString M is computed by some circuit over it,
witnessed by the DNF construction andOrNotForM.