Based on a Japanese science-fiction novel series written by Atsuko Asano and published by Kodansha in nine volumes between October 2003 and June 2011.
No. 6 condenses but largely remains faithful to the the original nine-part light novel series. Changes were made to tone down the amount of violence in the series, in addition to creating an alternate ending.