Over and Under

Relation division

Right division (Over)

Overā€…ā€ŠAā€…ā€ŠBā€…ā€ŠCā€…ā€ŠXā€…ā€ŠY:={ā€…ā€ŠaāˆˆA,cāˆˆC:āˆ€(bāˆˆB:(b,a)āˆˆY:(b,c)āˆˆX):(a,c)ā€…ā€Š}\textbf{Over} \; A \; B \; C \; X \; Y := \{\; a \in A, c \in C : \forall( b\in B : (b,a) \in Y : (b,c) \in X) : (a,c) \;\}

Relationā€…ā€ŠBā€…ā€ŠAā€…ā€ŠX\textbf{Relation} \; B \; A \; X

Relationā€…ā€ŠBā€…ā€ŠCā€…ā€ŠY\textbf{Relation} \; B \; C \; Y


Notation.

  1. Overā€…ā€ŠAā€…ā€ŠBā€…ā€ŠCā€…ā€ŠXā€…ā€ŠY\textbf{Over} \; A \; B \; C \; X \; Y can be written Overā€…ā€ŠXā€…ā€ŠY\textbf{Over} \; X \; Y when AA, BB and CC are clear from the context.

  2. Overā€…ā€ŠXā€…ā€ŠY\textbf{Over} \; X \; Y is written in symbols as X/YX / Y.


fun Over(A,B,C: set univ, X: B->C, Y: B->A) : A->C {
  { a: A, c: C | all b: B | b->a in Y implies b->c in X }
}

Left division (Under)

Underā€…ā€ŠAā€…ā€ŠBā€…ā€ŠCā€…ā€ŠXā€…ā€ŠY:={ā€…ā€ŠcāˆˆC,aāˆˆA:āˆ€(bāˆˆB:(a,b)āˆˆX:(c,b)āˆˆY):(c,a)ā€…ā€Š}\textbf{Under} \; A \; B \; C \; X \; Y := \{\; c \in C, a \in A : \forall( b\in B : (a,b) \in X : (c,b) \in Y ) : (c,a)\;\}

Relationā€…ā€ŠAā€…ā€ŠBā€…ā€ŠX\textbf{Relation} \; A \; B \; X

Relationā€…ā€ŠCā€…ā€ŠBā€…ā€ŠY\textbf{Relation} \; C \; B \; Y


Notation.

  1. Underā€…ā€ŠAā€…ā€ŠBā€…ā€ŠCā€…ā€ŠXā€…ā€ŠY\textbf{Under} \; A \; B \; C \; X \; Ycan be written Underā€…ā€ŠXā€…ā€ŠY\textbf{Under} \; X \; Ywhen AA, BB and CC are clear from the context.

  2. Underā€…ā€ŠXā€…ā€ŠY\textbf{Under} \; X \; Y is written in symbols as X\YX \backslash Y.


fun Under(A,B,C: set univ, X: A->B, Y: C->B) : C->A {
  { c: C, a: A | all b: B | a->b in X implies c->b in Y }
}

Last updated