http://wrap.warwick.ac.uk/
Original citation:Dunne, P. E. (1984) Some results on replacement rules in monotone Boolean networks. University of Warwick. Department of Computer Science. (Department of Computer Science Research Report). (Unpublished) CS-RR-064
Permanent WRAP url:
http://wrap.warwick.ac.uk/60764 Copyright and reuse:
The Warwick Research Archive Portal (WRAP) makes this work by researchers of the University of Warwick available open access under the following conditions. Copyright © and all moral rights to the version of the paper presented here belong to the individual author(s) and/or other copyright owners. To the extent reasonable and practicable the material made available in WRAP has been checked for eligibility before being made available.
Copies of full items can be used for personal research or study, educational, or not-for-profit purposes without prior permission or charge. Provided that the authors, title and full bibliographic details are credited, a hyperlink and/or URL is given for the original metadata page and the content is not changed in any way.
A note on versions:
The version presented in WRAP is the published version or, version of record, and may be cited as it appears here.For more information, please contact the WRAP Team at:
The
Univer-sity
of
Warwick
THEORY
OF
COMPUTATION
REPORT
Some Resulrs
0{
RepLqc$.1EMt-Ruus
rr,tlhlororc
Boor-enr'r NerwoRr<s
No
64
January 1984
Paul
E DunneUniversity
of
WarwickDep artmeDt
of
Conputer ScienceSome
Results
OnReplacement
Rules
In
ltronotone
Boolean
Networks
Panl, E. Dutt'n'e
Department Of Computer Science
University Of Warwick
Coventry CV4'lAL
Great Britain
1.
Introduction
ReplaceraenL n:les were introcluced by Paterson [4] and Mehlhorn [3] and used to prove Light Iower bound.s on the monotone network
complefty
ofboolean matrix multiplieation. Th.e results applied prove that in networks
com-puting boolean matrix product, gates computing certain functions may be
replaced by the eonstants 0 or 1 or by an input of the network. Applications of
replacement rules to otber functions have been made by TTeiss 16] for boolean
convolution anil Dunne [2] for threshold functions.
In this paper we investigate the f ollowing problem:
(P1) Glven a pair of boolean functions/:[0,1J"->[0,1J, ir:[0,11D->[0,1l what are the
monotone boolean functions
h
such that for any monotone network Scom-puLi::g
/,
containing a gate u which computes the function 9 , 5lPrs(-t);=bt11
computes
/?
We prove the folloning results:
RZ) For any pair of funclioBs
t,
g we determ-ine closed lorm expressions for:(i) min s such tbat
g
is replaceable by s in a network comFuting .f(ii) max s sucb that
g
is replaceable bys
in a network compuling/
R3) For any pair of functions
t,g
we determine closed form expressions for:(i) min s such tbat s is replaceable by
g
in a Detwork computir:g/
(ii) max
s
sucb that s is replaceable byg
in a network computing/
Using (RZ) we obtain a complete solution for (P1).The remainder of this paper is organised as follows. Below we give basic
definitions and the notation used. In SecUon(Z) we derive (R1), (RZ) and (R3) above. ln Section(S) we extend our results to multiple-output functions and illus-trate some applications. ln Section(4) we prove the existence of
"pseuclo-complemenLs" for aII single-valued monotone boolean functions and
character-i-se lhese.
Definition 1
A rrLottotone netunrk S is a directed acyclic graph with 2 distinguished sets
ol nodes: X(the inpr.its of S) is the set of norles with in-degree 0. These nodes are
labelled ruith members of the set [t1,...,r,, J. G is the remsinihg set of nodes,
wbich have in-degree 2 (the gdtes of S). Gates are labeUed by
n
or w (Booleanconjunction and disjunction).
-o-Detrnition ?
If S is a monotone network and u is a node of S ,?.AS(u) is the boolean
func-Uon recursively defineil by:
q
iJ u is inputu;
of SRf,s(u) =
|
.Rrs(uJ^.RES(uz) iJ
uis
Br^
gareI
r?n',S(u) v-RE,S(ue) if u is anv
gatewhere ur and u9 are the inputs of uiJ
uis
agate.
tl
cl
Definition 3
,f(!
<g(x)
<=>v
a € [0,11"t(d)= 1 =1 9 (a)=1I)efiniUon 4
A monom m is a function of the f orm:
IIr = zl
r^ltte/\.../\,,ri{
tij
€X
A monom m,is an *npl:i,cotzt of the monotoDe boolean function./' if and only
if
m<t.
m is a prime intgtti,cutt Lt:1)
m is aa implic ant oft
2)
wn
such that m' < m',B
is not aninplicant
of/
Ilefnition
5A clouse c is a function of the f orm;
C
=:rit
wtiz
w... v
q{
zi1€X
A clause
cis
an itr:.pliog;nd, of tl1e honotone boolean function/
if and onlyif
.f
.
c. c isaprime
clanlsa X:1)
c is an implicand of/
2)
w c- such thate
< c,s
is not an i-rrplieanct of/,
Notation
PI(Jf)
= [m
Imis
a prime implicant ofI
JPC(Jf)
= {c
lcisaprimeclauseolJ
}-5-2.
ResultsDef.uition 6
Let/:[0,1]L>[0,11. g :[0,1JD->[0,1J and h:[0,1JL>{o,1J be any monotone
boolean functions.
g
Ls h+efl.o.ceahle ui.threryect to 7k \
n)
n:
Sliss{ ):=h still computes
/
for any monotone network S computing
/
which contains a node u withnf,s(u)=s tr
The following result is the replacement rule due to Mehlhorn [3].
Icmma
1s
{
oiff:
v
m€PI(g)
-3d
suchthatL.J
'We sball now cbaracterise the largest
O-replaceable and smallest 1-replaceable functions
vith
respect to anyfunctiont.
Although the results areimplieil by Theorem(3) below, we shall present these cases separately as the
analysis is clearer, The characterisations use tJre representation of
/
is
acon-junctioD of prime clauses (Coqjunctive Normal Form) or as a ilisjuDction of
prime implicants (Disjunctive Normal Form).
DefihitioD 7
LetJ
be a monotone boolean function overIrr,...,rDl.
Tlnedtnl
of/ f)
isthe monotone function:
7
=
-(j
(
-"r,...,-r"))
where "
-"
deDotes negatioD.. r'tIlefinition
I
Let m be a monom, c be a clause and
t
be a monotone boolean function.lben:
1)
X(m)
=
v
[: In$zl
2)
ocLt)
=
-.t4ax(-)
-?-4)
ICU|)
=
.€Xo,')rr(c)
tr
lbeorem
1(
O,l-replacements)
(A)
OC(t) is the unique largest Dreplaceable function with respect to/.
i.eOCA) <
S
=>
g
is not O-replaceablew.r.t/.
(B)
IC(J) is the unique smallest 1-replaceable function'with respecttojl'.
i.e.ICV)
>g
=>
g is not 1-replaceable w.r.tt.
.koof
Let:
f
Dross
(/)
=
wls
19101
lYe shall show that:oc(J)
=
-Doss(/)(D
ol(f)
<Dross(/)
Suppose m,
<
OC(J), but that m $ Dross(/).
Thentlere
is some monom m'such that m
n
E- €PI(t)
and somis
a sbottening of some prime implieantr
of/.
But:By monot onicity
But m $
y(r)
if m is a shortening of r. CoDtraaliction.(n) Dross
(1)-
oc(J)Let m € PI ( Dross
(/)
), by Lern'na(1) there does not existd
such thatm.
n rn
ePI(/).
Thus:v
r€
PI(/)
m<X(r)
-=n.t{,Dx(n) <
ocv)
Thus;
OCA)
=
Dross(/)and (A) follows as Dross
(/)
is by defnition the largest Freplaceable function witb respect tol.
(B)
It is easy to see tbat:IC(J)
=Thus, by duality, JC(t) ts tJre unique inihirnal l-replaceable fi:ncUon with
respect to .f ,
'YIe shall
nor
consider non-eonstant replacements of the form.f :=s.-
and <Ietermine tninimurn anil lndaimum sotu[oos for these,oc6
-9-Definition
I
l,et
I[=[6r,...,rnrl
be a set ol monoms, andlet/
be a monotone booleanfunction- TJ:e Prim.e- Irnpl:inwt Eztensinz of I[ with respect to
/
(mr(U)) is.
deffneil to be:my(II)
=
[pePI("f)
l=m,e llwithp<
q
JTh.e Pritne-d.anse Extensi.on ol a set of clauses C = [ cr,...,cl i with respect
to/
(c&(c))
is eiven by:cE;(c)
= [p€Pc(/)
l=qe
cwitbq<
pl
A(J'g)
=
-.nyo{ot)-BU
,s)
=
".
q,f;"q";;"
tr
lbeorem 2
Let
/,
gr be monotone booleau functions. Then:t) l|,il
is the minimal functions
such that9
{
s2)
.B(/,9) is the maximals
such tJmt9
{
skoof
1)
Certainlyg
is ,4 (f ,9 )-replaceable when computingl,
as by deffnitionIFy( pt(C) ) is tJre set of all prime implicants of
/
towhichg
could beextended. So suppose some turction
s.
exists, also satisf5ring theserequire-ments and
that,4(/,9)
$ s There must be some prime implicant ofl(f
,g), psay, which is not an implicant of s . Now:
p €
PI(t)
atr.l
!
m € PI(g) such thatp<
mSo; PI(g
^
p) nPI(f)
=
lpJBut; PI(s
n
ps)
nntf) =
$
asp{
sCoatradicUon, as g is not replaceable by s wheD computilg
/,
Thus
A(/,g)
is a minimal function. lf e now establisb uniqueDess. Suppose sr, sB are ilistinct i.e incomparable minirnal funetions. 'Ihen:Pl(gnh)nPl(/) c
PI(sns1
n h)
nPI(/)
c
PI(g nst
n
sz nh)
nPI(/)
asg
nsr
^h
<,
Thus s1
n
ss (< s1,s2) is also a suitable, but smaller funetion. Contrad.ictionl'1
Codfary
2.1)C
!nr"ndonlyif:
D,efinition 1O
PI-*(J,c)
= PI(.f)-IE;( PI(g) )Pc".-f
,c) =Pc(/)-trr'(
Pc(s) )E(f ,g) =
_.4ro/(d
DV,s)
=*rq:rr,!r(.)
tr
-I
1)
EA'c)
I
cBy Cor(z.1) we need only show:
eA,eA,cD<s
<EAg)
(i)
s
<E(J,c)
l,etp<g.Thenby
dennition otPI,.-(f
,g ):-3n
such tbat pn rL
€PI--(.f
,S )Ttrus:
w m e
Pl--(/,g
)
p<
X(-)
By the definition of -O(/,9) this implies the result.
(n)
AU,EU:,s))-s
let: pePI(,a(J,rf
,s)) ). Now:rer(n@VgD
) nIry( pl-"-(.f,s)
)
=
{lTtru6 either p e PI(/), in which case p is a lengthening of some
pribe
tmplicant m ofg
or p=0, In both casesp<
g.e)
.6'(/,9 ) is maximalf
Suppose
u*
E(.f ,c)anttu!
g.'Iben
3 p e PI(u) sucb that
p$
.8(f ,g) thus: E(f ,9) < X(P) ".ct therefore,-13-It'\r
= r
€PI(t)
gr\t*r(Asr€IL-(f,g))
.
Ilrusuis
not g-replaceable rrith respecttof;
Contratliction-
ElCorotlary A1)
n
I
s
ilaad only if:o{nr,lo(c)
=
n =
-o4;o,o,*{-)
tr
Beynoa [1] has considerecl a concept of "computational equivaleDce" within
a difierent framework. g is said to be equivaleDt to h when computinC
t
(l.
,.
t.
C H
h)
if and onlyIlg
lh
anath
=lg.
In this context Cor(z.f) and Cor(3.1)yield;
lheorem 4
Obvious
-15-3. Ilultiple
Ou[rut F]rnctirrn*Let F =
lfr,...l-
J be any set of m monotone boolean functions overX
.
theoren
Soc(F)
=,4
oc(/t
rc(n
=
J,
t"tfrl
l(F,e)
=
wrrr
(rrk))
B(F,g)
=
ncr*
(Pc(g))E(F,s)
=
L
eA',s)
D(F,s)
=
P,
a(J',s)
where;
As an illustration we reprove the replacement rule due to Paterson [4] for
81P
Io,1lhE->[o,1j"?where each output
ct'
is defined by:'
cv
=
,-Y=, (z* ^Uri ) l<a
I.ernrna
g
(Paterson [+])Let BMP = I
crr,.,,,cr-
l, where cV is as defined above. Let 1<i,i<
n (i*
i)
andl<j,j<D(j#il.
BP
3.1)
cp
wzr1
=
|
1BAP 3.2) yX w
yo'
=
|
t
BITP 3.3)
zn
wyr{
=
|
rkoof
.IC(cir)
=
OC("ir-)=
OC(,4*
(a1 w ya) )IC( BMP ) =
,;"
(n
z*y,"
cr, )-11
-It is easy to see that for each of the function s in (3.1)-(3.3):
IC(BMP)
vs
=
s =>
IC(BMP)<
sTI
A k-slice function of
/
is a function of the form:. t
t\TPvTP.r
The following is due to ltegener[5].
Lemma4
If g is a k-slice firnction then:
vrr€X
&t - I,| z5n
Tf($
hoof
Easily deriveil from Theorem(Z)
above,
tr
Gorollary
If
g
is a k-slice function then:E.
koof
tr)
-
rv-4,
Replacement Rules lc Pseuilo.f.omplementsDefnition
11Let;f
be a monotone boolean firnction overX
L pseudo-com4tlernzr* forzlis
a monotone boolean tunction hi, such that in any (,^,v, -,)-network T computing
/,
in which negation is applied only to the iDputs, any instance of-zi,
can bereplaced by hi and the resulting network will still compuLe
/.
theorem.6
w monotone jf , th is a pseudo" complement for zi if anil only if:
.fl"r'=e
=
h,
<
fl"t='
Proof
Let/s
denote the function computed by T after some instance, z say, of-ti
is replacect
by/le'o.
si-il*ly
let;f1 denote the function computed by T aftertlris instaoce, z, is replaced by
tla=t.
No.o"io" e
f
o<
f
tit
is sufficient to provethat:
fr<I<Io
"
.:
In terms of the irxtance z
of
-zi, T compules:where the functions gopT are such that:
1)
vm€PI(
gdF?):("t
)"
(-"i
)P (z)7n m
is a moDom computeil at T.
2) n
does not depend onzi,
-rl-
or z.wbere:
CIe arly:
.f
=
gooov
5i9 roow
-zr ( gorov
9or
v
gorr )Now let z :=
t
la=o so thatt
'= J6. lYe must prove/
..f0.
IYe need only show: -trtgoor\/
-zigorr1
Jo-...--_---...
However;;la=o
^goor
I
goor and-"r.f
la=o gorr
=
-tr
gorl thus/
< /s. Now consider the replaceEent,,=
flt'=',lYe must show tJmt/1
<
t
Simi-l,arly we need. only prove:tlq=tgoo,
v
-rrtln=lgo' v
titlq=lg
lor<
.r But:tfr=t
r.,g.r
=
g oot<
|
-zr
nJll=t
n gorr€
gorr<.f
I
t
uo=o
(')o
=
I-zt-z1
nTlt=t
^gm
<
f
Thus .f
r
<
J,
anil the theoremfollows,
tr)Corollary 6.1)
tet
F = Lfr,...,.f-J be a set of m monotone boolean functions. Then h; is apseuilo-complement for .zi if antl only if:
,Y/,'**<tli<*th=r
L'
'We note
tlat
for sets of monotone boolean functions, in general the intervalof Corollary(6.1) is not well-defined. However for special cases, such as slice
functions, pseuilo-complements exist. For slice fu-nctions Theorem(6) and
5.
Relerences[1]
Beynon, MReplaceability anil computational equivalence in ffnite distributive lattices: Iheory Of Computation Report No.61, Univ. Of lYarwick, Mareh 1984.
[2]
Durne, P.E.A 2.5n tower Bounil OnThe Monotone Network Complexity Of T$, Theory Ot Computation Report No.62, Univ Of Warwick, March 1984
[3]
Mehlhorn, K. & Galit, Z.Monotone Switching Networks and Boolean Matrix Product, CompuUng (f6),
99-111, 19?6
[4]
Paterson" M.S.Complexity Of Monotone Networks r.or Boolean Matrix Product, Theoretical Computer Science (1), 13-20, 19?5
[5]
1{egener, IOn The Complexity Of Slice-Functioos, Internal Report, Univ. Of Frankfurt, Jtrly 1983
[6]
Yieiss. JA nve lower Bor:ncl On Ttre Boolean Convolution, Univ. Of Bielefeltl, West