Quiz. Hoare triple evaluation [003y]

Asses the validity of each of the following Hoare triples.

  1. \(\{x = 0 \}\ x := x + 1\ \{x = 1\}\)
  2. \(\{x = 0 \land y = 1\}\ x := x + 1\ \{x = 1 \land y = 2\}\)
  3. \(\{x = 0 \land y = 1\}\ x := x + 1 \{x = 1 \lor y = 2\}\)
  4. \(\{x = 0\}\ \texttt {while}\ \top \ \texttt {do}\ x := x + 1\ \{x = 1\}\)