Documentation
Circuitlib
.
Circuit
.
Belnap
.
Basic
Search
return to top
source
Imports
Init
Circuitlib.Circuit.Wires
Circuitlib.Circuit.Belnap.Level
Imported by
Circuit
.
Belnap
.
and
Circuit
.
Belnap
.
and_leq
Circuit
.
Belnap
.
and_monotonic
Circuit
.
Belnap
.
or
Circuit
.
Belnap
.
or_leq
Circuit
.
Belnap
.
or_monotonic
Circuit
.
Belnap
.
not
Circuit
.
Belnap
.
not_leq
Circuit
.
Belnap
.
not_monotonic
Belnap circuits
#
References
#
N. D. Belnap,
A Useful Four-Valued Logic
Ghica, Kaye, and Sprunger,
A Complete Theory of Sequential Digital Circuits
source
@[inline]
def
Circuit
.
Belnap
.
and
(
w
:
Wires
BelnapLevel
2
)
:
Wires
BelnapLevel
1
Equations
Circuit.Belnap.and
w
=
#v[
(
Vector.get
w
0
)
.
and
(
Vector.get
w
1
)
]
Instances For
source
@[simp]
theorem
Circuit
.
Belnap
.
and_leq
{
a₁
a₂
b₁
b₂
:
BelnapLevel
}
(
h0
:
a₁
≤
b₁
)
(
h1
:
a₂
≤
b₂
)
:
a₁
.
and
a₂
≤
b₁
.
and
b₂
source
@[simp]
theorem
Circuit
.
Belnap
.
and_monotonic
:
Monotone
and
source
@[inline]
def
Circuit
.
Belnap
.
or
(
w
:
Wires
BelnapLevel
2
)
:
Wires
BelnapLevel
1
Equations
Circuit.Belnap.or
w
=
#v[
(
Vector.get
w
0
)
.
or
(
Vector.get
w
1
)
]
Instances For
source
@[simp]
theorem
Circuit
.
Belnap
.
or_leq
{
a₁
a₂
b₁
b₂
:
BelnapLevel
}
(
h0
:
a₁
≤
b₁
)
(
h1
:
a₂
≤
b₂
)
:
a₁
.
or
a₂
≤
b₁
.
or
b₂
source
@[simp]
theorem
Circuit
.
Belnap
.
or_monotonic
:
Monotone
or
source
@[inline]
def
Circuit
.
Belnap
.
not
(
w
:
Wires
BelnapLevel
1
)
:
Wires
BelnapLevel
1
Equations
Circuit.Belnap.not
w
=
#v[
(
Vector.get
w
0
)
.
not
]
Instances For
source
@[simp]
theorem
Circuit
.
Belnap
.
not_leq
{
x
y
:
BelnapLevel
}
(
h
:
x
≤
y
)
:
x
.
not
≤
y
.
not
source
@[simp]
theorem
Circuit
.
Belnap
.
not_monotonic
:
Monotone
not