Circuits #
References #
- [N. D. Belnap, A Useful Four-Valued Logic][Belnap1977]
- [Ghica, Kaye, and Sprunger, A Complete Theory of Sequential Digital Circuits][Ghica2025]
@[reducible, inline]
abbrev
Circuit.and
{C : Type u}
[(n : ℕ) → OfNat C n]
[CategoryTheory.Category.{u_1, u} C]
[CircuitCategory BelnapLevel BelnapGate C]
:
The AND gate as a circuit morphism.
Instances For
@[reducible, inline]
abbrev
Circuit.or
{C : Type u}
[(n : ℕ) → OfNat C n]
[CategoryTheory.Category.{u_1, u} C]
[CircuitCategory BelnapLevel BelnapGate C]
:
The OR gate as a circuit morphism.
Instances For
@[reducible, inline]
abbrev
Circuit.not
{C : Type u}
[(n : ℕ) → OfNat C n]
[CategoryTheory.Category.{u_1, u} C]
[CircuitCategory BelnapLevel BelnapGate C]
:
The NOT gate as a circuit morphism.
Instances For
@[reducible, inline]
abbrev
Circuit.nand
{C : Type u}
[(n : ℕ) → OfNat C n]
[CategoryTheory.Category.{u_1, u} C]
[CircuitCategory BelnapLevel BelnapGate C]
:
The NAND gate, built as AND followed by NOT.
Instances For
@[reducible, inline]
abbrev
Circuit.nor
{C : Type u}
[(n : ℕ) → OfNat C n]
[CategoryTheory.Category.{u_1, u} C]
[CircuitCategory BelnapLevel BelnapGate C]
:
The NOR gate, built as OR followed by NOT.