1 |
1. T : Type
2. l : T List
3. x : T
4. i,j: . i<||l||+1  j<||l||+1  i = j  [x / l][i] = [x / l][j]
5. i :
6. j :
7. i<||l||
8. j<||l||
9. i = j
l[i] = l[j]
 | 2 steps |
2 |
1. T : Type
2. l : T List
3. x : T
4. i,j: . i<||l||+1  j<||l||+1  i = j  [x / l][i] = [x / l][j]
(x l)
 | 3 steps |
3 |
1. T : Type
2. l : T List
3. x : T
4. i,j: . i<||l||  j<||l||  i = j  l[i] = l[j]
5. (x l)
6. i :
7. j :
8. i<||l||+1
9. j<||l||+1
10. i = j
[x / l][i] = [x / l][j]
 | 1 step |