I didn't immediately recognize the scenes with the Egyptian and Japanese magical girls.
There's a movie series - Puella Magi Madoka Magica: The Movie - that's something of recap of season 1-2. The "Rebellion" arc is a season 3, of sorts, that officially ends the series. Some of those scenes might be from there.
I've seen absolutely no evidence that Ayn Rand has ever been educated.