Combinational 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]
The combinational circuit category over Belnap levels and Belnap gates.
Equations
Instances For
@[reducible, inline]
The AND gate as a combinational circuit.
Equations
Instances For
@[simp]
@[reducible, inline]
The OR gate as a combinational circuit.
Equations
Instances For
@[simp]
@[reducible, inline]
The NOT gate as a combinational circuit.
Equations
Instances For
@[simp]
@[reducible, inline]
The NAND gate as a combinational circuit.
Instances For
@[simp]
@[reducible, inline]
The NOR gate as a combinational circuit.
Equations
Instances For
@[simp]
@[reducible, inline]
The fork (wire duplication) as a combinational circuit.
Instances For
@[simp]
Two forks in parallel, duplicating each of two input wires.
Equations
Instances For
@[simp]
Duplicate a pair of input wires, interleaving so the output is [x, y, x, y].
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]
The XOR gate as a combinational circuit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]
The XNOR gate as a combinational circuit.
Equations
Instances For
@[simp]
A half adder, returning the sum and carry of two input bits.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]
theorem
Circuit.CombinationalCircuit.halfAdder_def
(x y : Bool)
:
↑halfAdder #v[WithBotTop.coe x, WithBotTop.coe y] = #v[WithBotTop.coe (x && !y || !x && y), WithBotTop.coe (x && y)]
A full adder built from two half adders, returning the sum and carry of three input bits.
Equations
- One or more equations did not get rendered due to their size.