- First of all I wanna point out a that L's conterplan against memory loss plan is bad and works only because of a plot hole.
"If a god of death decides to use the DEATH NOTE to kill the assassin of an individual he favours, the individual's life will be extended, but the god of death will die."
See the issue? No?
Then here it is:
Rem should not perish after she writes down L's name. Since L wrote his name with the future date Rem's note can't kill L to extend Misa's life. L is not even an assassin cause "Light Up the New world" confirms she is alive after the events of this movie. Light sees Rem's ashes, so if the ending followed the note's rules Light would see Rem and be confused then he would change plans and L's trap wouldn't work.
- But let's ignore that, LUTNW takes place 10 Years after "Last Name" and the whole movie is planned out by Light, so I conclude that losing to L was the plan the entire time to win in the long run.
Before "falling" into L's trap Light makes a kid, Hikari and records him a message, he gives both to Ryuk and tells him to give them to Hikari when he's 10. He chooses Teru Mikami as it's guardian and proceeds with the "Last Name's" plotline, we can safely conclude that the child isn't Misa's cause it would probably go to her.
10 years Later Hikari gets the note and starts acting as a new Kira, Hikari obviously goes insane and much more narcissistic than Light to the point he treats Mikami as a slave. Light predicted that Hikari would go crazy and that Mikami would have to kill him with the note and that the detective Mishima (Ryo Nakagami) would track down Hikari and Mikami and kill Mikami after he killed Hikari, Mishima takes the note along with the message from Light to Hikari and becomes Neo-Kira his goal being surpassing Light. He uses cyber terrorist in order to negotiate with the countries and when he hears Ryuzaki, L's successor is joining the investigation, he uses Shinigami eyes to get his name and scheduales his death on 25th of December. Then he decides to give away his Note and pass it onto the cyberterrorist along with a message from Light he modified to manipulate him to gather all Death Notes.

