For example
Record posreal : Type := mkposreal {pos :> R; cond_pos : 0 < pos}.
what does the ":>" mean? I hope this isn't a duplicate, but a symbol is hard to search for.
For example
Record posreal : Type := mkposreal {pos :> R; cond_pos : 0 < pos}.
what does the ":>" mean? I hope this isn't a duplicate, but a symbol is hard to search for.
In this particular case it inserts a Coercion from the
posreal
record to its fieldpos
. This means you can use aposreal
for anR
in most cases.Try:
See https://coq.inria.fr/refman/Reference-Manual021.html#Coercions-and-records