A Curry-Howard interpretation of homotopy type theory as a programming language with decidable type-checking