In the program https://rise4fun.com/Dafny/tlpls Dafny is not able to infer the induction hypothesis from the recursive call to the lemma.
Moreover, what is more surprising is in MVS, if you change assert by assume, and again by assert, then the problem disappears.
Lastly, what astonish me even more is that the second lemma in https://rise4fun.com/Dafny/hNZg works perfectly.
Paqui