Prove by induction that if x and y are nonempty strings and x = y, then the last character of x = the last character of y.
Recall that we are defining string equality by saying that
- two empty strings are equal
- two strings a.z and a.w are equal iff the strings z and w are equal, and
- no other strings are equal
You may use any theorem proved in class.