A Primer on Homotopy Type Theory Part 1: The Formal Type Theory