this is an exposition showing that particular design problems in
computer architecture can be seen as directly as an application of boolean algebra.
there are a number of possible links that one can drawn between these two (very related) topics:
my focus here is very specific to deriving combinatory logic from
f : 𝔹n → 𝔹mC sorcery Luke Wren
x & (x - 1) == 0
or
x & -x == x
BNF
in ?,
the number representation is bitvectors
x + 1 = ¬x
∑
take signed numbers,
embed in an infinite binary string
first, popcount sticks out here:
I think it's shortened from population count
and conventionally means counting the number of set bits in a bitvector.
the encoding of signed arithmetic has footguns
but its structure is mostly conventional
that's because the encoding is designed well
all on their own act exactly as expected:
if in diagramming the algebra any more unexpected properties are experessible.
in Agda
(see why Agda? for a background and primer.)
assume boolean logic
supplement
type calculus
boolean calculus
if these terms are meaningless to you,
I can recommend this resource
but this post is intended as
not in practice