Relation Inclusion

Includesβ€…β€ŠAβ€…β€ŠBβ€…β€ŠRβ€…β€ŠS\textbf{Includes} \; A \; B \; R \; S

Relationβ€…β€ŠAβ€…β€ŠBβ€…β€ŠR\textbf{Relation} \; A \; B \; R

Relationβ€…β€ŠAβ€…β€ŠBβ€…β€ŠS\textbf{Relation} \; A \; B \; S

βˆ€(x∈A:βˆ€(y∈B:R.x.y:S.x.y))\forall (x \in A : \forall (y \in B : R.x.y : S.x.y))


Notation.

  1. Includesβ€…β€ŠAβ€…β€ŠBβ€…β€ŠRβ€…β€ŠS\textbf{Includes} \; A \; B \; R \; S can be abbreviated by Includesβ€…β€ŠRβ€…β€ŠS\textbf{Includes} \; R \; Swhen AA and BB are clear from the context.

  2. Includesβ€…β€ŠRβ€…β€ŠS\textbf{Includes} \; R \; S can be written RβŠ†SR \subseteq S.


pred Includes(A,B: set univ, R,S: univ->univ) {
  Relation[A,B,R]
  Relation[A,B,S]
  R in S
}
Withinβ€…β€ŠAβ€…β€ŠBβ€…β€ŠRβ€…β€ŠS\textbf{Within} \; A \; B \; R \; S

Includesβ€…β€ŠAβ€…β€ŠBβ€…β€ŠSβ€…β€ŠR\textbf{Includes} \; A \; B \; S \; R


Notation.

  1. Withinβ€…β€ŠAβ€…β€ŠBβ€…β€ŠRβ€…β€ŠS\textbf{Within} \; A \; B \; R \; S can be abbreviated by Withinβ€…β€ŠRβ€…β€ŠS\textbf{Within} \; R \; Swhen AA and BB are clear from the context.

  2. Withinβ€…β€ŠRβ€…β€ŠS\textbf{Within} \; R \; S can be written RβŠ‡SR \supseteq S.


pred Within(A,B: set univ, R,S: univ->univ) {
  Includes[A,B,S,R]
}

Last updated