Is the concatenation operation on a list associative?
[] = empty list
l and l' = lists
Let's assume that we have to prove that:
l concat (l' concat []) = (l concat l') concat []
How can I prove it using a prof by induction?
I was thinking that:
base case is: [] concat l' = l'
Step case is = (s:l) concat l' = l'
I am not sure if what I wrote is correct and if the base and step cases are correct.
Thank you