To understand the math behind Mark S Miller's thesis defense and continued work grok the solving the Locker Problem.
YOUTUBE WdL1EBNZvQ4 Solving the Locker Problem