Article · Wikipedia archive · Last revised Jun 4, 2026

Demonic composition

In mathematics, demonic composition is an operation on binary relations that is similar to the ordinary composition of relations but is robust to refinement of the relations into (partial) functions or injective relations.

Last revised
Jun 4, 2026
Read time
≈ 1 min
Length
247 w
Citations
Source

In mathematics, demonic composition is an operation on binary relations that is similar to the ordinary composition of relations but is robust to refinement of the relations into (partial) functions or injective relations.

Unlike ordinary composition of relations, demonic composition is not associative.

Definition

Suppose R {\displaystyle R} is a binary relation between X {\displaystyle X} and Y {\displaystyle Y} and S {\displaystyle S} is a relation between Y {\displaystyle Y} and Z . {\displaystyle Z.} Their right demonic composition R ; S {\displaystyle R{\textbf {;}}^{\to }S} is a relation between X {\displaystyle X} and Z . {\displaystyle Z.} Its graph is defined as { ( x , z )   :   x ( S R ) z  and for all  y Y   ( x R y  implies  y S z ) } . {\displaystyle \{(x,z)\ :\ x\mathrel {(S\circ R)} z{\text{ and for all }}y\in Y\ (x\mathrel {R} y{\text{ implies }}y\mathrel {S} z)\}.}

Conversely, their left demonic composition R ; S {\displaystyle R{\textbf {;}}^{\leftarrow }S} is defined by { ( x , z )   :   x ( S R ) z  and for all  y Y   ( y S z  implies  x R y ) } . {\displaystyle \{(x,z)\ :\ x\mathrel {(S\circ R)} z{\text{ and for all }}y\in Y\ (y\mathrel {S} z{\text{ implies }}x\mathrel {R} y)\}.}

References

References