Search code examples
coqcoq-tacticssreflect

Coerce rat to realType im math-comp/analysis


Is there a way to coerce a rat into a realType (from the math-comp/analysis library)? For example, the notation for coercing a nat is %:R.


Solution

  • According to the documentation ratr coerces a rat to any unit ring (hence any realType).