I am trying to generate code from a very simple Isabelle-program.
typedef point = "{p::(real*real). True}" by(auto)
definition xCoord :: "point ⇒ real" where "xCoord P ≡ fst(Rep_point P)"
export_code xCoord in Haskell module_name Example file code
but get the error:
No code equations for Rep_point
anyway I do not understand. What exactly is missing?