Imp: Simple Imperative Programs
WEBIn this chapter, we take a more serious look at how to use Coq to study other things. Our case study is a simple imperative programming language called Imp, embodying a tiny core fragment of conventional mainstream languages such as C and Java. Here is a familiar mathematical function written in Imp. Z ::= X ;; Y ::= 1;; WHILE ~ ( Z = 0) DO.