LARA

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
sav08:exists-forall_class_definition [2008/04/03 13:41]
vkuncak created
sav08:exists-forall_class_definition [2008/04/03 13:42]
vkuncak
Line 9: Line 9:
   * no function symbols   * no function symbols
  
-=== Example ​===+===== Examples =====
  
 For binary relations $r,s,t$ to express $r \circ s \subseteq t$, we can introduce binary relation symbols $R$, $S$, $T$ and write formula For binary relations $r,s,t$ to express $r \circ s \subseteq t$, we can introduce binary relation symbols $R$, $S$, $T$ and write formula
Line 21: Line 21:
 \] \]
  
-Relation $r$ is a partial function+List contains no duplicates:
 \[ \[
-    ​\forall x, y_1, y_1R(x,y_1) \land R(x,y_2) \rightarrow ​y_1=y_2+   \forall x,yListNode(x) \land ListNode(y) \land data(x) = data(y) \rightarrow ​x=y
 \] \]
  
-List contains no duplicates:+Relation $r$ is a partial function
 \[ \[
-   \forall x,yListNode(x) \land ListNode(y) \land data(x) = data(y) \rightarrow ​x=y+    ​\forall x, y_1, y_1R(x,y_1) \land R(x,y_2) \rightarrow ​y_1=y_2
 \] \]
 +
 +We **cannot** express in this class that $R$ is a total function, or property like $\forall x. \exists y. R(x,y)$ because we need an existential quantifier after a universal one.