section "A Typed Language" theory Types imports Star Complex_Main begin text ‹We build on \<^theory>‹Complex_Main› instead of \<^theory>‹Main› to access the real numbers.› subsection "Arithmetic Expressions" datatype val = Iv int | Rv real type_synonym vname = string type_synonym state = "vname ⇒ val" text_raw‹\snip{aexptDef}{0}{2}{%›