Enchantment - Study
Archive 0 (As this enters the battlefield, shuffle the top zero cards of your main library into a new face up library. Sacrifice this after the archived library is empty.)
As Undue's Study enters the battlefield, shuffle your graveyard into the archived library.
The lich finds little interest in anything that hasn't died at least once.