In Isabelle2014 I was able to define a generic function which takes a natural number and a real number and outputs a real number in the following way:
definition example :: "nat ⇒ real ⇒ real"
where "example i = real"
However, I am unable to this in Isabelle2015. I get the following error:
Bad head of lhs: "λx. example i (real x)"
The error(s) above occurred in definition:
"λx. example i (real x) ≡ real"
Has the method of defining a generic real function changed in the newer version of Isabelle? How can I define a generic function as I used to?
I've looked through the newer Isabelle documentation however I have been unable to find anything which relates to the following case.