Belnap circuits #
References #
- [N. D. Belnap, A Useful Four-Valued Logic][Belnap1977]
- [Ghica, Kaye, and Sprunger, A Complete Theory of Sequential Digital Circuits][Ghica2025]
@[inline]
The AND wire-function on a pair of Belnap-valued wires.
Equations
- Circuit.Belnap.and w = #v[(Vector.get w 0).and (Vector.get w 1)]
Instances For
@[simp]
@[inline]
The OR wire-function on a pair of Belnap-valued wires.
Equations
- Circuit.Belnap.or w = #v[(Vector.get w 0).or (Vector.get w 1)]
Instances For
@[simp]
@[inline]
The NOT wire-function on a single Belnap-valued wire.
Equations
- Circuit.Belnap.not w = #v[(Vector.get w 0).not]