LARA

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
sav07_homework_3 [2007/03/31 19:44]
vkuncak
sav07_homework_3 [2007/03/31 19:48]
vkuncak
Line 18: Line 18:
 \end{equation*} \end{equation*}
 where $r^{-1}$ denotes the inverse of relation $r$.  In other words, computing weakest preconditions corresponds to propagating possible errors backwards. where $r^{-1}$ denotes the inverse of relation $r$.  In other words, computing weakest preconditions corresponds to propagating possible errors backwards.
 +
 +
  
  
Line 30: Line 32:
 \end{equation*} \end{equation*}
 for all $c$ and $a$. for all $c$ and $a$.
 +
 **2.** Show that the condition $(*)$ is equivalent to the conjunction of these two conditions: **2.** Show that the condition $(*)$ is equivalent to the conjunction of these two conditions:
 \begin{eqnarray*} \begin{eqnarray*}
Line 39: Line 42:
 **3.** Let $\alpha$ and $\gamma$ satisfy the condition of Galois connection. ​ Show that the following three conditions are equivalent: **3.** Let $\alpha$ and $\gamma$ satisfy the condition of Galois connection. ​ Show that the following three conditions are equivalent:
  
-  * $c = \gamma(\alpha(c))$ for all $c+  * $\alpha(\gamma(a)) = a$ for all $a
-  * $\gamma$ is a [[wk>​surjective function]] +  * $\alpha$ is a [[wk>​surjective function]] 
-  * $\alpha$ is an [[wk>​injective function]]+  * $\gamma$ is an [[wk>​injective function]] 
 + 
 +**4.** State the condition for $c=\gamma(\alpha(c))$ to hold.
  
 ==== Weakest preconditions and relations ==== ==== Weakest preconditions and relations ====