Type Theory and Formal Proof: An IntroductionA ground up walk-through for using dependent types for formal proof. What I liked about this book is that it's presented more as mathematics than as computer science: you can work through the whole thing with pen and paper. It doesn't really have any specific prerequisites, just a general degree of mathematical maturity and exposure to proofs.
After reading this book, I felt capable of understanding how dependent-type-based theorem provers (e.g Coq and Lean) might be implemented.