We present an integrated and testable theory for the spontaneous emergence of life up to the prokaryote with template replication and coding. Collectively autocatalytic small-molecule sets, DNA sets, RNA sets and peptide sets have been discovered or created. R... ...