Quiz. Assessing provability [0047]

Using the correct proof rule for assignments, asses which of the hoare triples are provable i.e. valid.

  1. \(\{y = 4\}\ x:= 4\ \{y = x\}\)
  2. \(\{x + 1 = n\}\ x := x + 1\ \{x = n\}\)
  3. \(\{y = x\}\ y := 2\ \{y = x\}\)
  4. \(\{z = 3\}\ y := x\ \{z = 3\}\)