Topoi, Heyting algebra and Lawvere's CAT book